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

Two-channel thermometer-thermostat 5-95 °С. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Power regulators, thermometers, heat stabilizers

Comments on the article Comments on the article

This device, built on the ATmega8 microcontroller, can be configured as a thermometer or as a thermostat independently for each of the two channels. It is possible to set the heater switch-off temperature within the range from +5 to +95 °C, the difference between the heater switch-off and switch-on temperatures from 0 to 4 °С, and to compensate for the systematic error of the temperature sensors from -2 to +2 °С. The diagram of the thermometer-thermostat is shown in the figure.

Two-channel thermometer-thermostat 5-95 °С. Thermometer circuit

Two DS18B20 sensors are connected to connectors X1 and X2, and the numbers of the sockets correspond to the numbers of their outputs. A three-wire connection scheme was used. I have been convinced many times that this is the only way to achieve the maximum length of the connecting wires, and wherever possible, I try to avoid parasitic power supply to the sensors. With copper wires with a cross section of 0,5 mm2, it was possible to provide a stable connection at a distance of up to 40 m. The readings of the sensors are displayed on HG1 - a three-digit LED indicator with common anodes of the LEDs of each category. Two-color LEDs HL1 and HL2 display the status of each channel. Control signals for heaters in thermostat mode are generated at the microcontroller outputs РВ6 (first channel) and РВ7 (second channel). Two-position control; the heater is on or off.

Optocouplers U1 and U2 are installed for galvanic isolation of the device from actuators. In my version, the control circuits of two BT4 triacs that switch the heating elements are connected to the X5 and X139 connectors. If necessary, optocouplers can be replaced by transistors by including electromagnetic relay windings in their collector circuits. Within 4...5 s after power is supplied to the device, the sensors are initialized and their readings are initially collected. At this time, all elements of the HG1 indicator flash alternately. Next, the temperature measurement and display mode is set. In this mode, the heaters are off. The readings of the sensors on the indicator alternate with a period of 5 s. If the temperature is measured by the sensor connected to the X1 connector, the HL1 LED lights up, and the one connected to the X2 connector - HL2. In this case, if the corresponding channel is configured as a thermometer, the glow color is yellow, if as a thermostat, then when the command to turn on the heater is given, it is red, and in its absence - green. After pressing the SB2 button, the readings of only the first sensor are displayed, and after pressing the SB3 - only the second. If any sensor is not connected, its circuit has an open circuit, a short circuit, or the temperature has gone beyond 0,1 ... 99,9 °С, the indicator displays "Err" instead of the temperature value, and the corresponding heater is turned off.

If, while displaying the temperature measured, for example, by the first sensor, you press the SB2 button several times, then with each press the corresponding channel will switch from thermostat mode to thermometer mode and vice versa. With a short press on the SB1 button, the mode of alternately displaying the temperature in two channels is restored. But if you keep the SB1 button pressed for a long time, the thermometer-thermostat will enter the setting mode of that channel, during the display of the temperature of which the button was pressed.

In this mode, buttons SB2 and SB3 select the desired parameter:

ut1 (ut2) - setting the heater switch-off temperature in channel 1 (2);
dt1 (dt2) - setting the temperature difference between turning off and turning on the heater in channel 1 (2).

For example, if the switch-off temperature is set to 35 °С and the difference is 1,5 °С, the heating will occur until the temperature reaches 35 °С, when it is reached, the heater will be switched off and switched on again when the temperature drops to 33,5 °С. The optimal choice of the difference is achieved by a compromise between the accuracy of maintaining the temperature and the frequency of switching on the heater.

co1 (co2) - correction of sensor 1 (2) readings. The entered value is added (signed) to these readings before they are sent for further processing. This allows you to compensate for the possible error of the sensor. In the case of repeated short-term pressing of the SB1 button, the value of the selected parameter stored in the microcontroller memory is displayed on the indicator, after which the SB2 and SB3 buttons (respectively, decrease and increase by 0,1 ° C) set its new value. If you keep holding these buttons for a long time, the parameter change starts to happen faster (approximately 10 times per second). 5 seconds after the last pressing of any button, the set value is stored in the non-volatile memory of the microcontroller, and the current temperature is displayed on the indicator. The program codes from the Termo2ch.hex file are written to the program (FLASH) memory of the microcontroller, and the information from the Termo2ch.epp file is written to its EEPROM. The bits of the microcontroller configuration are programmed in accordance with the table.

Discharge Value Discharge Value
GROUND 0 SKCEL0 0
BODLEVEL 1 SKCEL1 0
BOOTRST 1 SKCEL2 1
BOOTSZ0 1 SKCEL3 0
BOOTSZ1 1 SPIE 0
CKOPT 1 SUT0 0
EESAVE 1 SUT1 1
RSTDISBL 1 WDTON 0

A watchdog timer must be enabled in the microcontroller to prevent the program from freezing. Since the 1-Wire interface used by the sensors is critical to the microcontroller's clock speed, it is necessary to fine-tune its internal clock generator to 8 MHz. To do this, by connecting the used instance of the microcontroller to the programmer, read the calibration constant located in the high byte of the word located at address 0x0003 of the microcontroller signature. After loading the Termo2ch.epp file into the programmer, but before programming, this constant is written to the zero cell of the EEPROM buffer of the programmer. The ATmega8 microcontroller can be replaced by the ATmega8L. When replacing the CPD-05211SR2/A indicator with a similar one of a different type, it may be necessary to select resistors R8-R15 to ensure acceptable brightness.

Download microcontroller programs

Author: I. Kotov, Krasnoarmeysk, Donetsk region, Ukraine; Publication: cxem.net

See other articles Section Power regulators, thermometers, heat stabilizers.

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

robot 14.12.2000

The robot, created by IBM, can make faces. With the help of a television camera, he catches the facial expression of the person standing in front of him, and accordingly changes the position of his pupils, eyebrows and lips.

So far, this is only a toy, but it was created to demonstrate and debug the principle of operation of household appliances of the near future, which will be able to obey the movement of the eyebrows and eyes of their owner. This method of control will be especially convenient for the disabled.

Other interesting news:

▪ Asphalt cleans the air

▪ Intravascular surgery

▪ Water from the air

▪ New LED drivers from RECOM

▪ Best time of day to get vaccinated

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Mobile communications. Article selection

▪ article by Charles Warner. Famous aphorisms

▪ article What is the difference between a broker, a dealer, a broker? Detailed answer

▪ article Foxglove rusty. Legends, cultivation, methods of application

▪ article Types and characteristics of solar panels. Encyclopedia of radio electronics and electrical engineering

▪ article Materials for the manufacture of antennas. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024