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

The thermometer of the increased accuracy with the DS18S20 sensor. 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

A temperature measuring device based on an ATmega8515 microcontroller and a DS18S20 temperature sensor is proposed, which is characterized by a simple circuit and design with increased measurement accuracy.

Today, many different temperature sensors are produced, both analog and digital. However, many analog sensors have a significantly non-linear dependence of the output parameter on temperature (thermistors), the signals of others (thermocouples) must be significantly amplified before use.

All of them often require that the manufactured temperature meter be calibrated against a reference thermometer in order to eliminate the systematic error. Digital sensors are usually calibrated at the factory and have a linear temperature scale.

A common digital sensor DS18S20 was chosen for use in the device. According to [1], it is capable of measuring temperature in the range from -55 to +125°C. Unfortunately, almost all known thermometers with this sensor (for example, in [2]) do not use the ability to obtain temperature values ​​from it with a resolution of less than 0,5 °C. This is apparently due to the need to read additional information from the sensor and perform calculations using a division operation that is difficult for a simple microcontroller. In the proposed thermometer, this possibility is realized. The temperature is measured with a resolution of 0,1 °C, which allows you to more accurately track the trends in its change.

Thanks to the use of a 40-pin ATmega8515-16PU microcontroller, the temperature meter circuit shown in fig. 1 turned out to be relatively simple. The DS18S20 sensor (VK1) is connected to the microcontroller via the 1-Wire interface. To control the sensor in the microcontroller, the PE1 output is selected, and the PE0 input receives information from the sensor. The use of two pins instead of one greatly simplified the microcontroller program.

High accuracy thermometer with DS18S20 sensor
Rice. 1. Diagram of the temperature meter

The operation of the 1-Wire interface is based on encoding the logical zeros and ones transmitted over it at certain time intervals. The duration of these intervals is set quite rigidly, so the microcontroller is clocked from a generator stabilized by an external quartz resonator ZQ1 and providing a machine cycle duration of 0,25 μs.

Having given the sensor a command to start the temperature measurement cycle, the microcontroller waits for its completion. It then reads from the sensor's internal registers not only the commonly used temperature measured value Tamended with the price of the least significant bit 0,5 оC, but also two correction factors to it. K factor1 (COUNT_PER_C) - number of pulses generated inside the sensor per one degree of temperature. Coefficient K2 (COUNT_REMAIN) - the remainder in the internal counter after counting the integer part of the measured temperature value. The microcontroller performs the calculation of the adjusted temperature value T according to a formula similar to that given in the reference data of the DS18S20 sensor:

T = int(Tamended) - 0,25 + (K1 -K2)/K1

The temperature value is output through ports A, B and C of the microcontroller, the outputs of which are connected through current-limiting resistors R2-R9, R12-R25 with the cathodes of the elements of the HG1-HG3 seven-element LED indicators with a common anode. The temperature is displayed from -55 to +99,9 °C. Negative temperature values ​​lying within -55...-10°C are displayed as integers with a minus sign (Fig. 2, a). In the range of -9,9 ... -0,1 ° С, the temperature is displayed with tenths of a degree and a minus sign (Fig. 2,6). Positive values ​​in the range 0...+99,9°С are displayed without a sign with tenths of a degree (Fig. 2, c).

High accuracy thermometer with DS18S20 sensor
Rice. 2.Temperature display

The thermometer is assembled on a fiberglass technological board with metallized holes arranged along a grid with a step of 2,5 mm (Fig. 3). A panel is installed on the board for the microcontroller. Capacitors C1-C3 are ceramic. Installation was carried out on the reverse installation of parts on the side of the board with the MGTF wire. The VK1 temperature sensor can be made remote by connecting it to the board with a triple of twisted wires no longer than 5 m.

High accuracy thermometer with DS18S20 sensor
Rice. 3. The thermometer is assembled on a fiberglass technological board with metallized holes

The current consumed by the thermometer, depending on the temperature value displayed on the indicators, varies from 50 to 110 mA. When using the microcontroller indicated on the diagram, the thermometer can be powered from any source of constant voltage 4,5 ... 5,5 V. When powered by a battery, it is advisable to replace the microcontroller with

ATmega8515L-8PU, which operates at a supply voltage of 2,7 ... 5,5 V, which practically coincides with the allowable supply voltage of the DS18S20 sensor (3 ... 5,5 V).

The microcontroller program can be downloaded from ftp://ftp.radio.ru/pub/2014/05/mega8515.zip.

Literature

  1. High precision 1-Wire Digital Thermometer - URL: robotstorehk. com/sensors/doc/DS18S20.pdf.
  2. Samokhin I. Digital thermometer with thermostat control function. - Radio, 2007, No. 7, p. 35, 36.

Authors: E. Lukyanenko, N. Nikitina, A. Starykh

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

Too much sleep is more harmful than too little sleep 11.10.2021

American scientists from the Academy of Sleep Medicine came to the conclusion that too much sleep is fraught with a much greater danger to the human body than its deficiency.

Ten hours of sleep can "reward" a sleeper with such unpleasant consequences as the development of diseases of the cardiovascular system, diabetes, obesity and severe unreasonable anxiety.

Experts have long deduced the optimal norm: the sleep of a person over 45 years of age should last from 7 to 9 hours. If you regularly adhere to just such a rhythm, over time, your well-being improves significantly and many chronic diseases are cured.

The researchers were convinced of this fact after a thorough analysis of the medical records of 54 thousand 6-year-old Americans. Almost a third of study participants complained of lack of sleep (their sleep was 7 hours or less). Two-thirds of the subjects adhered to the norm (sleep 9-10 hours), and the duration of sleep of all the rest was more than XNUMX hours.

According to Janet Croft, an expert at the American Centers for Disease Control and Prevention, part of the relationship between too much sleep and chronic disease can be explained by factors such as mental disorders and obesity.

Other interesting news:

▪ Highly sensitive camera will search for extraterrestrial life and dark matter

▪ 5G standard

▪ Interactive panel for classrooms with motion sensors

▪ Elephants on a treadmill

▪ Methane on Mars is not a sign of life

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ website section Television. Article selection

▪ article Annibalov (Gannibalov) oath. Popular expression

▪ article Which counterfeiter became so famous that fakes of his fakes appeared on sale? Detailed answer

▪ article Personnel during work on endoscopic diagnostics. Standard instruction on labor protection

▪ article Measuring inductance with a combined instrument. Encyclopedia of radio electronics and electrical engineering

▪ article Radio station on 5650-5670 MHz. 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