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

Household thermometer-hygrometer based on the SHT21 sensor and LCD from the Nokia 3310 phone. 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

The authors of the article invite readers to make a portable device useful in everyday life, the basis of which are the components indicated in the title.

At present, a huge number of descriptions of electronic thermometers have appeared in amateur radio literature. Most of these devices (for example, [1-3]) use the DS18B20 digital temperature sensor, which is due to its widespread use, relatively low cost, simple connection to the microcontroller using only one output, and high accuracy (about 0,5 °C).

But for assessing the conditions of the human environment, in addition to temperature, other parameters are also important, especially the relative humidity of the air. Until recently, separate sensors were used to measure it, mostly analog, requiring painstaking calibration. But today, combined digital sensors that measure both temperature and humidity have become available to radio amateurs.

An example is the SHT21 sensor [4]. According to the manufacturer, this is the smallest humidity and temperature sensor in the world. It comes in a miniature six-pin surface-mount package and connects to the microcontroller via the widely used I2C interface. Relative humidity measurement interval - 0...100% with a typical error of ±2%. The temperature in the range -40...+125 °C is measured with a typical error of ±0,3 °C. All this makes it very attractive for use as a sensor for a household moisture thermometer. The disadvantages include too small dimensions (3x3x1,1 mm) - not every radio amateur can easily cope with mounting it on a board, as well as a rather high cost. However, in 2011, the Sensirion company (developer of the sensor) sent these sensors to everyone for advertising purposes, and many Ukrainian and Russian radio amateurs managed to get them. According to the authors, the proposed article will be very useful to them.

To display information in most amateur microcontroller devices, sign-synthesizing indicators on LEDs or liquid crystals are used. The former consume a lot of power, while the latter either require complex interfacing with the microcontroller, or do not differ in large digits, which makes it difficult to read their readings from a long distance or by people with impaired vision. Recently, radio amateurs have begun to use in their developments graphic LCDs from cell phones, which, with small dimensions and high efficiency, allow synthesizing rather large numbers on the screen. The most popular of them was the LCD from the Nokia 3310 cell phone. This is due to the ease of its connection to the microcontroller (only four or five wires are required, and the information exchange protocol is very simple) and the simple way to form an image on a screen with a resolution of 84x48 pixels. In addition, this LCD is much cheaper than commonly used products from Winstar and MELT.

The ATtiny2313 microcontroller was chosen as the controller of the proposed device due to its prevalence, low cost, small size and wide allowable supply voltage range (2,7...5,5 V).

Household thermometer-hygrometer based on SHT21 sensor and LCD from Nokia 3310 phone
Fig. 1

The scheme of the thermometer-hygrometer is shown in fig. 1. It is very simple - in addition to the already mentioned sensor (B1), LCD (HG1) and microcontroller (DD1), it has only three capacitors, two resistors and three connectors.

Sensor B1, as mentioned above, measures the current temperature and humidity and transmits the received information to the microcontroller via the I2C interface. Since the I2C hardware module is not provided in the ATtiny23l3 microcontroller, the information exchange is organized by software. Resistors R1 and R2 connected to the SDA and SCL lines are required by the interface specification. They maintain a high logic level on them when the output transistors of the interface transmitters are closed. Capacitors C1 and C2 are blocking circuits for supplying the sensor and the microcontroller. They should be as close as possible to sensor B1 and microcontroller DD1, respectively. Capacitor C3 is necessary for the correct operation of the LCD and must have the one shown in Fig. 1 container.

Sensor B1 and capacitor C1 are placed on a separate board, which is connected to the main board via a four-wire flat cable and connector X2. This is done in order to be able to place the sensor in a place convenient for measuring temperature and humidity. The HG1 LCD is connected to the microcontroller using a flat eight-wire cable and connector X3. Information is transmitted to the indicator via the implemented software interface SPI. The X1 plug is a two-row plug with a 5x2 pin arrangement. It is intended for programming the microcontroller, as well as for supplying the device with a supply voltage via the VCC and GND circuits. The purpose of the pins of the X1 plug is the same as that of the STK200/300 development board cable socket that is mated with it.

Household thermometer-hygrometer based on SHT21 sensor and LCD from Nokia 3310 phone
Fig. 2

The moisture thermometer is assembled on two printed circuit boards: the main one (Fig. 2) and the sensor board (Fig. 3). Both are made of textolite foiled on one side.

Household thermometer-hygrometer based on SHT21 sensor and LCD from Nokia 3310 phone
Fig. 3

The indicator from the Nokia 3310 phone is usually sold together with a keyboard unit and a microphone in the form of an assembly shown in fig. 4. It has a built-in PCD8544 controller, information about which can be found in [5]. On the reverse side of the indicator module there are spring contacts, the numbering of which is shown in fig. 5. It is to them that the wires of the flat cable connecting the LCD to the X3 connector should be soldered.

Household thermometer-hygrometer based on SHT21 sensor and LCD from Nokia 3310 phone
Fig. 4

Household thermometer-hygrometer based on SHT21 sensor and LCD from Nokia 3310 phone
Fig. 5

Of course, to reduce the dimensions, the indicator can be removed from the case and the wires can be soldered directly to the pads applied to the glass. But at the same time, the risk of accidentally damaging it is extremely high, so this option is not recommended. It is better to saw off the upper and lower parts from the indicator housing. In this case, soldering will be safer, and the indicator will remain protected from damage. But even in this case, it is worth remembering that it is impossible to overheat the spring contacts when soldering. If their plastic holder melts, it may cause a loss of contact or a short circuit.

After assembling the main board, it is necessary to load the codes from the ht_meter.hex file into the program memory of the DD1 microcontroller. The microcontroller configuration should be set in accordance with Fig. 6.

Household thermometer-hygrometer based on SHT21 sensor and LCD from Nokia 3310 phone
Fig. 6

It is important to remember that the maximum supply voltage of the sensor and LCD is 3,6 V, so you must disconnect them from connectors X2 and X3 before programming the microcontroller using a programmer with a supply voltage of 5 V. Having finished programming and disconnected the programmer, LCD and sensor are connected back, then supply voltage (no more than 3,6 V) is applied to pins 2 and 4 of connector X1. The authors used two AA size galvanic cells connected in series to power the device.

Household thermometer-hygrometer based on SHT21 sensor and LCD from Nokia 3310 phone
Fig. 7

A properly assembled thermometer-hygrometer does not need to be adjusted. HG1 LCDs during its operation are displayed in two lines (Fig. 7): temperature values ​​in degrees Celsius and relative humidity in percent. Below the LCD in the front panel of the device, a window is cut out and covered with a loose cloth, directly behind which a board with sensor B1 is installed. A power switch is not required in the device, since the current consumed by it is extremely small, which allows it to operate continuously from one set of galvanic cells for six months.

PCB files in Diptrace format and the microcontroller program can be downloaded from ftp://ftp.radio.ru/pub/2013/09/ht-meter.zip.

Literature

  1. Melnikov A. Thermometer with LCD and DS18B20 sensor. - Radio, 2007, No. 1, p. 46.
  2. Frolov D. Computer thermometer with DS18B20 sensor. - Radio, 2004, No. 9, p. 28, 29.
  3. Sokol S. Digital thermometer. - sokolsp.at.ua/publ/cifrovoj_termom etr/1-1-0-6.
  4. SHT21 Humidity and Temperature Sensor IC. - sensirion.com/fileadmin/user_upload/customers/sensirion/Dokume nte/Humidity/Sensirion_Humidity_SHT21_Datasheet_V3.pdf.
  5. PCD8544 48 84 pixels matrix LCD controller/driver. - chipfind.ru/datasheet/pdf/philips/pcd8544.pdf.

Author: P. Kuznetsov, S. Sokol

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

Gamers make decisions faster and more accurately 18.07.2022

American neuroscientists from the University of Georgia gathered a group of 47 young people, 28 of whom often played video games, and the remaining 19 rarely or never.

Participants were placed in an MRI machine with a mirror inside that reflected a screen with moving dots. Volunteers had to press the button with the right or left hand, corresponding to the movement of the dot. Sometimes the point stopped - in which case the participant did not have to press the button at all.

The scientists found that video game enthusiasts performed the task faster and more accurately than others. What's more, subsequent analysis of brain scans showed clear differences associated with increased activity in certain areas of the brains of gamers.

There was no difference between the speed and accuracy of the response. Gamers were better at both.

According to the researchers, in the future, computer games can be used as a tool for cognitive decision-making training based on visual perception.

Other interesting news:

▪ Oppo 5G router

▪ Evolution already takes into account urbanization

▪ Nanosensor detects pesticides on fruits

▪ YouOn Hydrogen Electric Bike

▪ LED strip for smart home Aqara LED Strip T1

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Protection of electrical equipment. Article selection

▪ Article Balalaykin. Popular expression

▪ article Why is the Hawaiian language one of the most melodic in the world? Detailed answer

▪ article State administration of labor protection

▪ article All-metal delta antenna. Encyclopedia of radio electronics and electrical engineering

▪ article A simple adapter for recording a conversation from a telephone line. 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