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

Clock-alarm clock with a thermometer on the microcontroller. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Microcontrollers

Comments on the article Comments on the article

The functions of the actual clock in the presented device are performed by the DS1307 chip. Such microcircuits in foreign literature are usually called RTC - Real Time Clock (real time clock). RTC backup power from a lithium cell allows you not to interrupt the time count when the main power supply is turned off. There is no need to reset the time each time. The current drawn by the DS1307 is comparable to the cell's self-discharge current, so it won't need to be replaced for several years. The set alarm time is stored in the non-volatile memory of the microcontroller. Once a minute, the indicator displays the temperature value in the room for three seconds. An audible signal sounds at the beginning of every hour.

The clock scheme is shown in fig. 1.

Alarm clock with a thermometer on a microcontroller
Fig. 1

Microcontroller DD3 (PIC16F84A) initializes RTC DD2, reads and, if necessary, corrects the current time. It performs similar operations with the temperature sensor VK1 (DS1621). Both microcircuits are connected to the microcontroller via the I bus.2C. In addition, it controls the dynamic display and polls the keyboard. When the power is turned on, the microcontroller, in addition to other necessary operations, transfers the value of the alarm time stored there to the RAM from the non-volatile memory. Dynamic indication is organized as follows. The microcontroller loads the serial code into the shift register DD1 information for output to the indicator HG1, then turns on this indicator for a certain time, opening the transistor VT1. The same operations are alternately performed with indicators HG2 - HG4. In the display cycle, the state of the buttons SB1 - SB6 is also polled. Having detected a low level at its input PA0, which signals a pressed button, the microcalculator executes the pressing processing subroutine.

The purpose of the buttons is as follows:

SB1 - turns on and off the sound signal given at the beginning of each hour. When the signal is turned off, the dot on the HG4.SB2 indicator is on - after the first press of the button, the HG3 and HG4 indicators (digits of minutes) start flashing. In this state, using the buttons SB4 and SB6, you can increase or decrease the value in these bits. The same operations with clock bits (indicators HG1 and HG2) are performed after the second press of the SB2 button. By the third click on it, the updated value of the current time is written to the RTC and the clock is returned to the operating mode.

SB3 - turns on and off the alarm signal and the HL1 LED, which starts blinking in time with the HL2 LED. Within three seconds after pressing the SB3 button, the set alarm time is displayed on the indicators.

SB4 - increases the value displayed on the indicator. SB5 - after the first press of this button, the indicators display the set alarm time. After further pressing, the set time can be changed in the same way as setting the current time. After the fourth pressing, information about the operation time is entered into the non-volatile memory of the microcontroller and the clock returns to the operating mode.

SB6 - reduces the value displayed on the indicator.

The watch is assembled in a case from the watch "QUARTZ-025". A transformer was also used from them, the voltage on its secondary winding was reduced to 8 V by unwinding the turns. The details of the new watch are mounted on a printed circuit board made of foil fiberglass, the drawing of which is shown in fig. 2.

Alarm clock with a thermometer on a microcontroller

The jumper shown by a dashed line is made of an insulated wire (for example, MGTF-0,12) and installed on the side of the printed conductors. The remaining jumpers (non-insulated) are installed on the side of the parts. The board is designed to install fixed resistors MLT or C2-33, oxide capacitors K50-35 or imported ones. Capacitors C3, C5, C6 - ceramic or film.

L-34GD LEDs can be replaced with others with a housing diameter of 3 mm, and FYS-10012BUG indicators can be replaced with any suitable size with common element anodes. Color of a luminescence of light-emitting diodes and indicators - green. For indicators, panels are provided made from panels for microcircuits. Sound signaling device HA1 is installed on the side of printed conductors. Throttle L1 - DPM-0,2. The DS1621 temperature sensor is installed in a panel outside the watch case and connected to the printed circuit board with a four-wire harness. G1 lithium cell holder removed from an old computer motherboard.

Download program and firmware for MK

Author: V. Kiba, Kamensk-Shakhtinsky, Rostov Region; Publication: cxem.net

See other articles Section Microcontrollers.

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

Why are prions needed? 11.10.2010

It has long been proven that some human and animal diseases, in which microscopic pores form in the brain, arise due to special proteins - prions. The most famous of these diseases is the sensational "rabies of cows" in its time.

Prions are normally present on the surface of all nerve cells, but the disease begins when some of the prions change their configuration for some unknown reason. These pathogenic molecules can infect normal ones, causing them to also reconfigure to pathogenic ones.

Why does the body need these potentially dangerous proteins? Adriano Aguzzi, a neurologist at the University of Zurich (Switzerland), genetically engineered a breed of mice devoid of prions. It turned out that in such individuals, the "isolation" of the nerves is broken, as a result, the propagation of signals along them slows down.

The insulating sheath of nerve fibers consists of myelin, a lipid-protein complex deposited by special cells. This process, apparently, is controlled by prions.

Other interesting news:

▪ Mosquito trap

▪ SteelSeries Siberia Elite Gaming Headset

▪ Huawei Ascend P1 is the thinnest smartphone

▪ Health record

▪ Refractory clay supercapacitor

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site History of technology, technology, objects around us. Article selection

▪ article General biology. Crib

▪ article What is a boycott? Detailed answer

▪ article Fitting in the cap of the fuel tank. Personal transport

▪ article Modern electronic ballast on the IR2520 chip. Encyclopedia of radio electronics and electrical engineering

▪ article A session with magic boxes (several tricks). Focus Secret

Leave your comment on this article:

Name:


Email (optional):


A comment:




Comments on the article:

Gennady
It is not clear how the minus temperature is displayed.


All languages ​​of this page

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

www.diagram.com.ua

www.diagram.com.ua
2000-2024