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

Wall clock-thermometer. 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

The wall clock-thermometer offered to the attention of readers is made according to the simplest scheme and does not contain expensive elements. On a large indicator, assembled from single LEDs, the current time in hours and minutes is periodically replaced by the temperature values ​​in the street and in the room.

Wall clock-thermometer
Fig. 1

The diagram of the watch-thermometer is shown in fig. 1. They are based on the AT89C2051-12PU (DD1) microcontroller. The clock frequency of the microcontroller is set by the ZQ1 quartz resonator at 3,6864 MHz. It is chosen from the condition of dividing its value in hertz by 12 without a remainder. This is necessary for the accurate running of the clock - in the microcontroller used, the duration of the machine cycle is equal to twelve periods of the clock frequency. Fine adjustment of the stroke is made by a tuning capacitor C4. It can be performed on a frequency meter connected to one of the outputs of the ZQ 1 quartz resonator through a 1 pF capacitor.

Wall clock-thermometer
Fig. 2

The clock-thermometer indicator consists of four seven-element familiarity (digits). Each element contains three LEDs connected in parallel. As an example, in fig. 2 shows the location and connection of the tens of hours LEDs (leftmost). The microcontroller directly controls the voltage supplied through resistors R8-R14 to the cathodes of the LEDs of the same-name elements of each category. Dynamic indication is organized with the help of switches on transistors VT1 -VT4, switching on the signals of the microcontroller the common anodes of the LEDs of the indicator discharges. Two LEDs (HL43 and HL44), separating the digits of hours and minutes on the indicator, flash with a period of 1 s, indicating the progress of the clock.

When the clock is turned on by the SA2 switch, the indicator displays the time 00:00. Its exact value is set with the buttons SB1 and SB2. After pressing SB2 for the first time, the tens of hours digit starts flashing. The number displayed in it is changed by pressing SB1. The next presses on the SB2 button alternately proceed to setting the units of hours, tens and units of minutes. While holding SB1 pressed, the variable value increases at a rate of about two units per second, and when it reaches the maximum number for this bit, it returns to zero. After setting the units of minutes, pressing the SB2 button starts the clock.

The microcontroller communicates via a 1-Wire interface organized by software with two digital temperature sensors DS18B20 - installed on the street BK1 and placed in the room BK2. If the room temperature is not of interest, then the BK2 sensor can be turned off by the SA1 switch.

After 10 s of time display, the microcontroller program sends a command to the BK1 sensor to measure the temperature and within 2 s displays its value in whole degrees Celsius in the two right digits of the indicator,

accompanying it with the letter U (street) in the leftmost digit. Then the same procedure is performed with the BK2 sensor, the readings of which are accompanied by the letter P (room). In both cases, the measured temperature range is from -55 to +99 °C. Its negative values ​​are marked with a minus in the second digit of the indicator from the left.

If there is no BK1 sensor or BK2 is off, the microcontroller program determines this and skips the corresponding procedure for measuring the temperature and displaying it on the indicator. Please note that at the beginning of its work, the program enters into the non-volatile memory of the sensors the values ​​of some parameters that are required for their correct operation in the described device. Therefore, after the first connection of the sensor (for example, in case of its replacement), it is necessary to turn off and then turn on the power of the watch-thermometer.

Wall clock-thermometer
Fig. 3

The printed circuit board of the watch-thermometer is shown in fig. 3. It is made of fiberglass laminated on one side. All elements on it are mounted on the side of printed conductors. This made it possible to use the board as the back cover of the watch case. The case itself is glued from organic glass. The board with LEDs is located at its transparent front wall, between them there is a light filter made of a colored (red or green) film. Blue LEDs, the type of which is indicated in the diagram, can be replaced by others of any color, but of increased brightness, so as not to increase the current consumed by the watch-thermometer. The temperature sensor BK1 should be placed in a small casing to protect it from the sun's rays, and fixed outside the window at a distance of about a meter from the wall.

The microcontroller program (file prog.asm) was written in assembly language for microcontrollers of the MCS-51 family and translated into the boot file prog.hex using the 8051 IDE for Windows (acebus. com/download/win8051.zip). Microcontroller programming can be done with any programmer capable of working with AT89 series microcontrollers.

The constant voltage of the external power supply supplied to connector X1 can be in the range of 7 ... 24 V. I used a cell phone charger. In the event of an external power failure, the clock switches to a backup battery GB1, composed of five to six galvanic cells of AA size. The low current consumption of the LEDs used (a few milliamps) made it possible to refuse to turn off the indicator when switching to backup power.

The microcontroller program can be downloaded from ftp://ftp.radio.ru/pub/2013/10/prog.zip.

Author: A. Samus

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

<< 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

Eight elements synthesized in one nanoparticle 01.04.2018

Scientists from the University of Maryland conducted a series of studies, during which they managed to develop a technique for assembling several elements in a nanoparticle. With this discovery, they will be able to synthesize eight elements that have never been mixed before.

In accordance with the results of the latest test tests, the mentioned metals now begin to interact with each other without interference, while being evenly distributed along the perimeter of the particles. This method is based on the so-called thermal shock, which is caused by heating a saline solution of certain metals, reaching a record high of two thousand degrees Celsius. But this process has a short-term effect, since rapid heating is followed by a sharp cooling.

During work, specialists use a special substrate, which is dominated by carbon nanofibers. In turn, heating is possible only at a speed of 100 thousand degrees per second for a period of 55 milliseconds.

Other interesting news:

▪ Revealed the secret of longevity of turtles

▪ Protein found to prevent preterm birth

▪ Protecting spin qubits from external noise

▪ Genes for gray hair, beard and eyebrows found

▪ Biostar Accessory for Cryptocurrency Mining

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Visual illusions. Article selection

▪ article Information wars and information terrorism. Basics of safe life

▪ article What are pigeons? Detailed answer

▪ Article First Vice-Rector (Vice-Rector for Teaching and Educational Work) of the Higher

▪ article Organization of 1-Wire-systems. Encyclopedia of radio electronics and electrical engineering

▪ article Amphibian Man. Focus Secret

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