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

Thermometer with matrix LED indicators. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Measuring technology

Comments on the article Comments on the article

In this thermometer, temperature values ​​are displayed using matrix LED modules. It is possible to adjust the brightness of the indicator and select the discreteness of the readings.

The thermometer uses a microcontroller PIC16F630-I/P Temperature sensor - DS18B20. Interval of measured temperature from -55 оC to + 125 оC. The error of its measurement is ± 0,5 оC. Readings may be rounded up to 1. оC.

On fig. 1 shows the appearance of the thermometer. It is attached to the wall with double-sided adhesive tape, the sensor is installed outside the window in the shade of trees.

Thermometer with dot matrix LED indicators
Rice. 1. Appearance of the thermometer

The thermometer circuit is shown in fig. 2. By pressing the SB1 button, increase the brightness of the indicator, and by pressing the SB2 button, decrease it. There are 16 grades in total. When the brightness changes, the microcontroller saves the new value in its non-volatile memory. The indicator is based on three matrix modules A1-A3 FZ0148 [1]. Each of them consists of an 8x8 LED matrix and a MAX7219 chip [2], which controls the LEDs according to microcontroller commands. The modules are connected in parallel along the power lines VCC and GND and control signals CLK and CS (these lines pass from the first module connector to the second "through"), and sequentially along the information line. The information at the DOUT output is delayed relative to the input DIN by 16 cycles, set by the CLK pulses. The DOUT of each module except the last one is connected to the DIN input of the next one.

Thermometer with dot matrix LED indicators
Rice. 2. Diagram of a thermometer

The last 16 bits of information sent to the module are always in the shift register of the MAX7219 chip. The transfer of the state of the DIN input to the low bit of the register occurs on the rising edge of the CLK pulse, but only when the CS input is low. With a rising edge at the CS input, information from the shift register is displayed by LEDs and remains on them until the next such edge.

In the device under consideration, the low level of the CS signal is set for the time of transmission of 48 (16x3) bits of information loaded sequentially into three FZ0148 modules. Upon its completion, the rising edge of this signal allows the output of information to the LEDs to three modules simultaneously. On fig. 3 shows the placement of the output symbols on their matrices. Setting the jumper S1 puts the device in the mode of rounding the reading to an integer value. In this mode, there is no need for the A3 module, which displayed tenths of a degree, and it can be excluded from the device. If this module is left, it will always show 0.

Thermometer with dot matrix LED indicators
Rice. 3. Placement of output symbols on their matrices

The nominal supply voltage of the thermometer is 9 V, however, in fact, it can be in the range from 7,5 V to 25 V. The 5 V voltage required for the operation of the device is provided by the integrated positive voltage regulator DA1.

On fig. 4 shows a drawing of the printed circuit board of the thermometer and the location of parts on it. For the DD1 microcontroller, a panel must be provided into which it is inserted already programmed. FZ0148 modules are installed in slots X1, X2 (A1), X3, X4 (A2) and X5, X6 (A3).

Thermometer with dot matrix LED indicators
Rice. 4. Drawing of the printed circuit board of the thermometer and the location of parts on it

Connector X6 on the board, which is missing in the diagram, serves only for reliable mechanical fixation of the A3 module.

The board with removed modules is shown in fig. 5. FZ0148 modules were purchased disassembled. The pin blocks of the connectors installed on them in the kit were angled, but during assembly I replaced them with straight ones. The gap formed due to the height of the connectors between the main board and the boards of the modules makes it possible to better remove heat from the integrated stabilizer DA1.

Thermometer with dot matrix LED indicators
Rice. 5. Board with removed modules

The temperature sensor BK1 is placed in a metal housing protected from moisture penetration and connected to the board with a bundle of three wires up to several meters long. Place the sensor in a place protected from direct sunlight and far from heating and other devices that generate a lot of heat during operation.

The full set of displayed characters, including the minus sign and space, is shown in fig. 6, and in fig. 7 shows the contents of the microcontroller's EEPROM image storing these symbols. It has four bytes of memory for each character. Byte at address 30H is used to store the set brightness value.

Thermometer with dot matrix LED indicators
Rice. 6. Full set of displayed characters, including minus sign and space

Thermometer with dot matrix LED indicators
Rice. 7. Contents of microcontroller EEPROM character image storage

The microcontroller program was created in the PIC Simulator IDE v7.21. The temperature values ​​read from the BK1 sensor every 0,7 s are programmatically smoothed before being displayed on the indicator - each new value is written to an array of four two-byte words instead of the oldest one. Thus, this array always contains the results of the last four measurements. Their average value is displayed on the indicator.

In the used version of the development environment, it is possible to simulate the operation of the DS18B20 sensor (Fig. 8), which greatly simplifies the debugging of the program. To organize the communication of the microcontroller with devices with an SPI interface, similar to that used in LED modules, the environment has a set of standard procedures and functions.

Thermometer with dot matrix LED indicators
Rice. 8. Microcontroller program

The microcontroller program can be downloaded from ftp://ftp.radio.ru/pub/2015/04/max7219.zip.

Literature

  1. MAX7219 Module Dot Matrix Modules for Arduino Control FZ0148. - URL: dhgate.com/store/product/5pcs-lot-max 7219-module-dot-matrix-modules/ 196738799.html (04/11/14).
  2. Serially Interfaced, 8-Digit LED Display Drivers. - URL: adafruit.com/datasheets/MAX7219.pdf.

Author: K. Abdukarimov

See other articles Section Measuring technology.

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

Slow clock deer 08.03.2011

Most terrestrial organisms adjust their biological clocks according to diurnal changes in illumination (marine coastal species are also guided by the rhythm of the tides).

Norwegian zoologists became interested in the question: how does a reindeer regulate its biorhythms, living where it is dark for half a year around the clock, and the other half a year the sun does not set below the horizon?

It turned out that the deer still adjusts to the sun, only its life cycles (for example, the breeding season) are based not on the daily, but on the annual rhythm of changes in illumination. We can say that the reindeer's biological clock ticks only twice a year.

Other interesting news:

▪ Self-cleaning surfaces

▪ Magnets help in love

▪ Revealed the secret of tangling headphones

▪ Stream S03 portable hard drives with USB 3.0 interface

▪ Three-layer image sensor with DRAM memory for smartphones

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Note to the student. Article selection

▪ article Gifts of Pomona and Flora. Popular expression

▪ article Why is alternating current rather than direct current used for the transmission and distribution of electrical energy? Detailed answer

▪ article Freeberry prickly. Legends, cultivation, methods of application

▪ article Refinements of the VHF FM receiver MAMVO. Encyclopedia of radio electronics and electrical engineering

▪ article Selection of capacitors for pulse voltage converters. 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