Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

Improvement of a weekly eight-channel timer with a WEB-interface. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Clocks, timers, relays, load switches

Comments on the article Comments on the article

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.

Improvement of a weekly eight-channel timer with a WEB-interface
Rice. 1. Schematic diagram of connecting sensors

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.

Improvement of a weekly eight-channel timer with a WEB-interface
Rice. 2. GY-68 module

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.

Improvement of a weekly eight-channel timer with a WEB-interface
Rice. 3. WEB interface

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.

Improvement of a weekly eight-channel timer with a WEB-interface
Rice. 4. Settings Page

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

  1. Gnitiev V. Weekly eight-channel timer with WEB-interface. - Radio, 2016, No. 6, p. 42-44.
  2. Gnitiev V. Clock with meteorological parameters measurement and Ethernet interface. - Radio, 2015, No. 1, p. 37-39; No. 2, p. 33-37.

Author: V. Gnitev

See other articles Section Clocks, timers, relays, load switches.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Machine for thinning flowers in gardens 02.05.2024

In modern agriculture, technological progress is developing aimed at increasing the efficiency of plant care processes. The innovative Florix flower thinning machine was presented in Italy, designed to optimize the harvesting stage. This tool is equipped with mobile arms, allowing it to be easily adapted to the needs of the garden. The operator can adjust the speed of the thin wires by controlling them from the tractor cab using a joystick. This approach significantly increases the efficiency of the flower thinning process, providing the possibility of individual adjustment to the specific conditions of the garden, as well as the variety and type of fruit grown in it. After testing the Florix machine for two years on various types of fruit, the results were very encouraging. Farmers such as Filiberto Montanari, who has used a Florix machine for several years, have reported a significant reduction in the time and labor required to thin flowers. ... >>

Advanced Infrared Microscope 02.05.2024

Microscopes play an important role in scientific research, allowing scientists to delve into structures and processes invisible to the eye. However, various microscopy methods have their limitations, and among them was the limitation of resolution when using the infrared range. But the latest achievements of Japanese researchers from the University of Tokyo open up new prospects for studying the microworld. Scientists from the University of Tokyo have unveiled a new microscope that will revolutionize the capabilities of infrared microscopy. This advanced instrument allows you to see the internal structures of living bacteria with amazing clarity on the nanometer scale. Typically, mid-infrared microscopes are limited by low resolution, but the latest development from Japanese researchers overcomes these limitations. According to scientists, the developed microscope allows creating images with a resolution of up to 120 nanometers, which is 30 times higher than the resolution of traditional microscopes. ... >>

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

Random news from the Archive

Ultra-low force measured with a single atom 03.04.2018

Australian physicists led by Dr. Erik W. Streed of Griffith University in Brisbane have measured an ultra-low force of less than 0,0000000000000000001 N by manipulating a single atom.

Scientists took an atom of ytterbium (the 70th element of the Periodic Table, belongs to the group of lanthanides), removed one electron from it and trapped the atom in a "trap" of electric fields. After that, using a laser beam, the atom was cooled almost to the temperature of absolute zero: -273.15 ° C, using a laser. At the same time, the atom emitted radiation, the beams of which were focused using Fresnel lenses.

By studying the movement of an atom in this way, Dr. Strid and colleagues were able to record its response to electric fields, as well as measure the ultra-low force when a photon bounced off a ytterbium atom. It turned out to be equal to 95 zeptonewtons (0,000000000000000000095 N).

This is approximately equal to the force of the gravitational interaction that exists, for example, between two people, one of whom is in Washington, and the other is in Dallas.

The achievement of the Australians, firstly, shows the increased possibilities of modern quantum physics, and, secondly, gives new interesting information about how our world works at this level.

Other interesting news:

▪ eGPU Breakaway Puck Radeon RX 5500 XT and eGPU Breakaway Puck Radeon RX 5700 Docks

▪ Wood can cause allergies

▪ Health forecast for 2030

▪ 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 Mast for a large windage antenna. Encyclopedia of radio electronics and electrical engineering

▪ article Focus with a set of holes. Focus Secret

Leave your comment on this article:

Name:


Email (optional):


A comment:




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

www.diagram.com.ua
2000-2024