ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING Improvement of a weekly eight-channel timer with a WEB-interface. Encyclopedia of radio electronics and electrical engineering Encyclopedia of radio electronics and electrical engineering / Clocks, timers, relays, load switches After the publication of article [1], readers were asked to provide for the measurement of meteorological parameters in the timer in the same way as it was done in the device of the same author described in article [2]. The proposed article tells about such a refinement carried out by him. To measure meteorological parameters, it is necessary to connect the appropriate sensors to the microcontroller of the device described in [1] and modify its software. As in article [2], DS18B20 digital sensors were chosen for temperature measurement, and BMP180 for atmospheric pressure. The device turned out to be very versatile, one pressure sensor and up to sixteen temperature sensors can be connected to it. Schematic diagram of sensor connection is shown in fig. 1. The points of their connection with the device are indicated according to its diagram shown in fig. 1 in [1]. The modified microcontroller program allows the device to work not only with connected sensors, but also in their absence without any modifications and reconfiguration.
Due to the extremely small size of the BMP180 pressure transmitter, the one shown in fig. 2 ready-made GY-68 module, in which this sensor and a voltage regulator for it are installed. It is desirable to place the module inside the device by gluing or screwing it to the case, or by fixing it in a free place on the main board, connecting it to it with pieces of a mounting wire. Temperature sensors are connected through a connector not shown in the diagram. It is better to mount the resistor R5 directly on the contacts of this connector, which is connected to the main board with the MGTF-0,12 wire.
After updating the device, it is necessary to load a new program into the memory of the microcontroller DD1, setting its configuration the same as in [1]. Upon completion of programming, the device starts working without any additional settings and adjustments. The program checks the presence of a connected pressure sensor each time it is accessed. Therefore, in the case of a "hot" connection, information about the pressure will appear in the first measurement cycle after this. The program checks the presence of temperature sensors only once when the device is turned on. Therefore, after the "hot" connection of new sensors, their information will remain inaccessible until the microcontroller is reset to its original state, for example, by turning the power off and on again. However, if the same temperature sensor is "hot" disconnected and reconnected, information from it will be received in the next measurement cycle in about a second. When the sensor is disabled, the corresponding parameter is no longer displayed on the display. And from the WEB-interface (Fig. 3), at the next page refresh, the line with the parameter that measured the disabled sensor is excluded. When the sensor is connected back, everything resumes.
It should be noted that the indicator panel displays information only from the first temperature sensor, and in the WEB interface - from all. The settings page (Fig. 4) additionally contains detailed information about each temperature sensor - its serial number, a unique number stored in its ROM, the measured temperature and an error code. Error codes are decoded in the ds18x20.h file, code 0 corresponds to the absence of errors.
Setting the time, TCP / IP parameters, indicator brightness, reading change period and setting the timer are possible only through the WEB interface, since setting all this with the buttons is considered too laborious, and in the WEB interface it is intuitive. Redesigned microcontroller program: ftp://ftp.radio.ru/pub/2017/02/web-timer-meteo.zip. Literature
Author: V. Gnitev See other articles Section Clocks, timers, relays, load switches. 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: ▪ eGPU Breakaway Puck Radeon RX 5500 XT and eGPU Breakaway Puck Radeon RX 5700 Docks ▪ An electric current will help you remember ▪ Philips Hue Secure series cameras and sensors News feed of science and technology, new electronics
Interesting materials of the Free Technical Library: ▪ site section Electrical work. Article selection ▪ article Emergencies in case of accidents at hydraulic structures. Fundamentals of safe life ▪ article Why do we need oxygen? Detailed answer ▪ article Providing water in the tropics. Travel Tips ▪ article Focus with a set of holes. Focus Secret
Leave your comment on this article: Comments on the article: Sergei Hello. Is it possible to use a Chinese module instead of DS1307? Will the page open if the clock is not initialized? I tried to assemble on a breadboard, with Mega32 in a DIP package. Something didn't work out. ENC28J60 is OK. All languages of this page Home page | Library | Articles | Website map | Site Reviews www.diagram.com.ua |