ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING Universal device on a microcontroller: clock, thermometer, thermostat, alarm clock, remote control system. Encyclopedia of radio electronics and electrical engineering Encyclopedia of radio electronics and electrical engineering / Microcontrollers Устройство "Universal device" (Universal Device) contains the functions of several devices that make life easier for people by automating the living space. Since the device is rapidly improving, it has its own USB bootloader, so to update the firmware, you just need to connect Universal device to the computer, turn on the self-programming mode and run the firmware update program on the PC. At the same time, there is no danger of blocking the device "forever", as is sometimes the case when updating the firmware of mobile phones. 1. Brief description of device features Universal device has the following functions:
Also, the device is connected to a computer via a USB interface, while, in addition to the above functions, the following are available:
The basis of the device is the ATmega16 microcontroller, it operates at a frequency of 16 MHz. Its power can be from a USB port or an external power supply (power selection by jumper J9). The device has 2 displays: character 16x2, and segment (2 pieces of 4 segments). Segment is designed to display time and temperature. Symbolic - for the convenience of managing some device functions, but it is not necessary to set it at all. Chip IC6 is a ROM AT24C64 designed to save alarm settings, ROM addresses of temperature sensors and some other settings. TSOP1738 (it is better to install TSOP1736) - IR signal receiver from the remote control. USB - connector for connecting the device to a computer. BUZZER - a signaling device for an alarm clock. Mandatory with a built-in generator. IR-Led - infrared LED. In the alarm settings, you can select it as an alarm. What is it for? If, for example, there are several people in the room, but only you need to wake up in the morning, then you can assemble a simple IR signal receiver that will vibrate when infrared rays appear, and attach it to your hand, then in the morning the device will activate the IR transmitter and your device will vibrate , waking you up. 4 shift registers 74HC595. Designed to control LEDs, segment display and loads. 8 LEDs (LED1 - LED8) - see their purpose in the instructions for the program. ULN2003 is a Darlington build. The microcircuit is designed to control loads, so each output (except the eighth one) can be connected to a load of up to 500mA. IRFZ44N (I accidentally put another on the diagram) - a field-effect transistor, controls the eighth load. IC5 is a 5V linear regulator. I HIGHLY recommend replacing it with a switching regulator (for example, R-78xx), then the efficiency of the device will increase greatly. Download scheme in *.sch format (Open via EAGLE) PCB in Sprint Layout 5 format.
Download board in *.lay format (in order to see the value of the component, hover over the component you are interested in). As segment displays I took KW4-563ASA as it is very bright and costs about $1. And as a connector for connecting an external temperature sensor - an audio jack. Here's what happened:
For a very long time I went shopping and the bazaar to find the most suitable remote control, there were different remote controls in different stores, but one remote control was in all the stores I visited. It will not be difficult for you to purchase this remote control, since it is very common and its cost is no more than $ 3. Here is his photo:
The remote control has 35 buttons. Red (Pon) turns on / off the command reception mode. If the second LED is NOT lit on the device, the device will only respond to the Pon button (red at the bottom). If the second LED is on, but the third one is off, then the commands will be processed by the device. The green button turns on / off the command receiving mode for the computer (when turned on, the third LED lights up). This subsection will tell you how to control the device (you need to have the second LED on and NOT the third one). Remote control button functions In device control mode, 5 buttons are used for control:
The device menu is still underdeveloped, but will be developed in future firmware versions. Now it has only 2 points and several sub-points.
In the first menu item (Alarms), you can view the schedule of alarm calls (there are 5 of them). If in subparagraphs "Alarm 1" - "Alarm 5" press BTN_TXT then the alarm will turn on or turn off. In subparagraphs "load timing" и "Save timing" you can save or load alarm settings from ROM. In the second menu item, you can format the ROM chip. ATTENTION: after formatting, be sure to disconnect the external temperature sensor and press the RESET button, after that the device will determine the address of the internal temperature sensor and the display will show "Reset Device", press the RESET button, connect the external temperature sensor and press the RESET button again. Also on the device in the lower left corner there are 4 buttons for moving through the menu items. 5. Communication with a computer. Working with the program "UD Control connection "Universal device" has the ability to connect to a computer. A program has been created specifically for working with the device. "UD Control", this manual will describe how to work with version 1.0.2.2 of the program. The program runs on operating systems Windows Home Edition and higher (including Windows 7 and Windows Vista). To install the program, run the UDC_Setup.exe file and specify the folder (C:\Program Files\Universal Device\UD Control by default). After that, connect the device to the PC, Windows will find new hardware and ask for drivers, specify the folder with the driver (c:\Program Files\Universal Device\UD Control\windows-driver\ ). After successfully installing the driver, run the program "UD Control" from desktop. If "Device not connected" is written in the lower left corner of the program, then check the reliability of the USB cable connection and the correct installation of the drivers, it is also advisable to restart the PC. UD Control Program UD Control created by the author of this project (that is, me). For convenience, it has several tabs to quickly navigate. The program settings are stored in the system registry. When you first run the program, it may show an error warning, just click OK and restart the program. This article will describe how to work with version 1.0.2.2 of the program. Setting
Polling frequency. The delay with which the program polls the device. The recommended value is 50 ms. Show big message. When switching tracks in Winamp or selecting a managed program, a large message appears on the monitor with two lines. Update device firmware. Firmware of the device, if at the start of the program a message appears about the incompatibility of the current version of the program with the current version of the firmware, then click this button and follow the further instructions of the program. Thus, the device firmware will be updated to the latest firmware supported by the current version of the program. The functions that are located in the third frame, I think, are clear to everyone. Alarm clock
Timing. The duration of the call signal.
repetition. Signal and pause length.
Source. You can choose the built-in buzzer, IR LED or any of the eight outputs to which the alarm is connected as an alarm.
Set the alarm parameters, then click "Record" and the call schedule will be transferred to the device, if you check the box next to "Record to ROM", then the schedule will be saved to the ROM (non-volatile memory) of the device. Temperature
On this tab, you can see the temperature of both thermal sensors, on the left - external, on the right - internal. Below is a temperature graph. Every minute the graph is updated and the number below increases by 1.
If you move the cursor to the temperature mark, a window will appear in which the time and date of the program start, the minimum and maximum temperatures on the selected temperature sensor and the time + date when it was recorded are written.
The names of the sensors (those that are now Inside and Outside) can be changed. To do this, click on the temperature mark, a window will pop up with an input form, enter a new name in it and click OK. Load management
Loads can be controlled not only with the remote control, but also with the help of a computer (when connected to a computer, loads can also be controlled from the remote control). Buttons for controlling loads are placed on top, if a green marker is near the button - the output is active, red - is not active. To turn on / off the load, you just need to press the appropriate button. The button for each load can be renamed, to do this, click on the corresponding button, before that, holding down the left "Shift", the same window will appear as when renaming the temperature mark. Automatic load management The PC program is able to independently manage loads, that is, in automatic mode. For each load, you can set your own control method, the program has 4 algorithms:
You also need to set the control condition, the program has six conditions:
Attention! In order to control a more powerful load than 500mA, you need to assemble a key on a triac, thyristor or electromagnetic relay. Here is the relay diagram: PCB for relay 943-1C-xD in *.lay
Remote control (RC)
The remote control can control many computer functions. On the right is a listing with accepted commands, a little lower is the last accepted command, even if it is not intended for a computer!
And another very nice feature. UD Control - displaying a large message.
After that, you need to press the number button on the remote to select the application:
After that, the same message will appear, only the bottom line will be "Winamp selected".
The message is scrolling
Download the file with the installation archive UD Control 1.0.2.2.
Download the archive with help for working with the device in *.chm. I will support the project, so the UD Control program, and accordingly, the firmware of the device will improve, all updates will be available on the website unidev.ho.ua/.
For a flashed microcontroller (in the future, the device, as mentioned above, can be flashed directly from the program), as well as for all questions related to the device (including the purchase of a finished device), please contact the email: univdevice {dog} ya.ru (replace "{dog}" with @) .
Attention! The author of the project accepts orders for the development of devices on microcontrollers, for development, please contact devices2000 {dog} ya.ru. Author: Brazhnikov Mikhail; Publication: cxem.net See other articles Section Microcontrollers. Read and write useful comments on this article. Latest news of science and technology, new electronics: Machine for thinning flowers in gardens
02.05.2024 Advanced Infrared Microscope
02.05.2024 Air trap for insects
01.05.2024
Other interesting news: ▪ Emotions differ by complexion ▪ A new way to chemically convert plastic into fuel ▪ Healthy sleep eliminates sugar cravings ▪ Honor Earbuds 3i Wireless Headphones ▪ 500 terabits per square inch News feed of science and technology, new electronics
Interesting materials of the Free Technical Library: ▪ site section Measuring equipment. Article selection ▪ article How does a turtle breathe underwater? Detailed answer ▪ article Office cleaner. Job description ▪ article Antenna QUAD for three bands. Encyclopedia of radio electronics and electrical engineering ▪ article Transformation of three cards. Focus secret
Leave your comment on this article: All languages of this page Home page | Library | Articles | Website map | Site Reviews www.diagram.com.ua |