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

Economy timer. 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 proposed timer is an attempt by the author to find a compromise between the complexity of the device and its functionality. The problem was solved by making a relatively cheap PIC12C508A microcontroller use just one input and three output signals to control a multi-output LCD and determine the state of a large number of controls.

The device is very economical and can work autonomously, beeping the end of the specified shutter speed. The control of an external actuator is also provided, from which the timer can also receive power. In the latter case, its capabilities are greatly expanded. The minimum exposure time is 1s, the maximum is 100 hours.

Schematic diagram of the timer is shown in fig. 1. A crystal oscillator is assembled on the DD1.1 element. From the output of the DD1.2 element, which reduces the influence of the input circuit of the DD3 microcontroller on the generator (it is especially noticeable when the supply voltage is less than 3,5 V), a signal with a frequency of 32768 Hz is fed to the input of the timer / counter built into the DD3 microcontroller.

Economy Timer
(click to enlarge)

The codes of the program that should be entered into the memory of the microcontroller using the programmer are shown in the table. After turning on the power, acting on this program, it will configure the lines of its I / O port GP2 and GP3 to work as inputs, and GPO, GP1, GP4 and GP5 - outputs and put the built-in timer / counter into the pulse counting mode received at the input GP2. The countdown is based on interrupts generated when the counter overflows. Therefore, exposure accuracy does not depend on the stability of the 4 MHz clock generator built into the microcontroller.

Economy Timer
(click to enlarge)

At the output GP0, the microcontroller generates a signal intended for the common electrode (COM) of the LCD HG1. A 32-bit shift register on DD4-DD7 microcircuits is used to generate signals applied to the segments of all indicator digits, as well as polling signals for the SB1-SB 12 buttons and the S1 configuration switch. The codes required for this are sent in serial form to the input D of the DD4 microcircuit from the output GP1 of the microcontroller. At the output of GP4, they are accompanied by shift pulses. It should be noted that such an application of a shift register with a combination of the functions of controlling the indicator and polling the controls became possible due to the significant inertia of the LCD. Short-term "extra" pulses on its outputs do not cause distortion of the symbols displayed by the indicator.

To poll the controls at the outputs of the shift register DD4-DD7, a "running zero" sequence is formed. As a result, in cycles corresponding to the pressed buttons or closed contacts of switch S1, the logic level at the GP3 input of the microcontroller is low, and in the rest it is high. At a low logic level at pin 10 of the DD6 microcontroller, the microcontroller analyzes the signal generated by the DA1 undervoltage detector and coming to the GP3 input through the elements DD1.3, DD1. 4 and diode VD3.

The exposure end signal generated by the microcontroller at the GP5 output is fed to the device output (pin 2 of the XS1 socket) through the protective resistor R4. The same signal controls the generator on the DD2 chip, tuned to 4200 Hz - the resonant frequency of the HA1 piezoelectric emitter. As a result, the timer beeps. The sound can be turned off by closing contacts S1.7.

In autonomous mode, the device is powered by a galvanic battery GB1. The winding of relay K1 is de-energized, and its open contacts K1.2 switch S1 (with the exception of the group of contacts mentioned above) is disconnected from the input of the microcontroller. This is done to reduce the current consumed by the device by approximately 0,5 mA, which in this case does not exceed! mA (plus another 2 mA when the sound generator is running). Savings cost - the timer works autonomously in a single mode: countdown time - in seconds, the signal about the end of the exposure - a continuous duration of 1 minute, before the expiration of which it can be stopped by pressing any button. Pressing the buttons in this mode is accompanied by short beeps.

If you apply a voltage of 1 V from an external source to pins 3 and 1 of the XS5 socket, relay K1 will work, disconnecting the battery and connecting switch S1 to the microcontroller. Diodes VD1, VD2 reduce the voltage on the relay winding K1 to an acceptable value. They also prevent the timer from switching to external power if the polarity of the latter is reversed.

Now, by closing contacts S1.1, you can count the time in minutes, and using S1.2 change its direction from reverse to direct (the indicator readings will increase during the counting process). The next four groups of contacts control the format of the end-of-exposure signal. S1.3 makes the signal continuous or intermittent, S1.4 removes or sets the signal duration limit, S1.5 inverts it (the beep, if enabled, will sound during the exposure and stop after it expires). And with closed contacts S1.6, the forced shutdown of the end of exposure signal will occur only with the start of a new cycle of its countdown by pressing the "Start" button.

The assignment of contacts S1.7, which was mentioned above, remains unchanged. With the help of S1.8, the "soundtrack" of keystrokes and the corresponding short pulses on pin 2 of socket XS1 are turned off.

Since the microcontroller analyzes the state of the switch S1 only once (immediately after turning on the power), in order to activate the changes made during the operation of the device, you need to turn off and then turn on the power.

With external power, the audio signal generator is blocked by the open transistor VT1. If blocking is not necessary, the transistor and resistors R1 and R3 are not installed.

Immediately after turning on the device, zeros are displayed in all digits of the indicator, and the decimal points are flashing, indicating that the timer is waiting for the shutter speed to be entered. After entering each digit, the dot in the corresponding digit stops flashing. Attempts to enter the numbers 6-9 in the third digit will remain unsuccessful. This must be a number not greater than 5. The maximum value that can be set (9959) is 99 min. 59 s or 99 h 59 min depending on the selected unit of account (second or minute). If an error is made during entry, press the SB 11 ("Set") button and enter the desired value again.

The timer starts counting the shutter speed by pressing the SB12 ("Start") button. The fact that the countdown is in progress is evidenced by the value on the indicator changing once per second or minute and the dot continuously "running" through its digits. To stop the timer, just press the "Start" button again. With a running count, the device reacts only to it. "Set" button valid only when the account is stopped.

If the supply voltage drops to 2,8 V before the end of the count, decimal points will be turned on in all digits of the indicator. When the count does not go, the inscription displayed on the indicator will warn about the voltage drop of the following

- stylized "low battery". The operation of the timer at a lower voltage is not guaranteed and depends on the properties of the microcircuits installed in it. The volume of the sound signal decreases sharply already at a voltage of 3,5 V.

Economy Timer

The timer is assembled on a double-sided printed circuit board. On fig. 2 shows its side, on which the indicator HG1, buttons SB1-SB12 (TS-A3PS-130 or similar), switch SA1 and sound emitter HA1 are placed. All other elements are installed on the reverse side, shown in fig. 3, and the GB1 battery (three AA batteries) is in a container outside the board.

Economy Timer

Instead of the PIC12C508A microcontroller, the PIC12C508, PIC12C509 or PIC12C509A will fit without changing the program. Relay K1 - RES60, version RS4.569.435-04 or RS4.569.435-09. Quartz resonator ZQ1- in a small-sized cylindrical case. Please note that large resonators do not work well with a reduced supply voltage.

When setting up the device, the constant resistor R8 is temporarily replaced with a variable value of 100 kOhm and with its help the frequency of the sound signal is selected at the maximum volume. By measuring the input resistance of the variable resistor, a constant value of the nearest value is set instead. For stable operation of the crystal oscillator over the entire range of supply voltage changes, it may be necessary to select the resistor R5.

Author: A. Ermakov, Nizhny Novgorod

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

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

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

The threat of space debris to the Earth's magnetic field 01.05.2024

More and more often we hear about an increase in the amount of space debris surrounding our planet. However, it is not only active satellites and spacecraft that contribute to this problem, but also debris from old missions. The growing number of satellites launched by companies like SpaceX creates not only opportunities for the development of the Internet, but also serious threats to space security. Experts are now turning their attention to the potential implications for the Earth's magnetic field. Dr. Jonathan McDowell of the Harvard-Smithsonian Center for Astrophysics emphasizes that companies are rapidly deploying satellite constellations, and the number of satellites could grow to 100 in the next decade. The rapid development of these cosmic armadas of satellites can lead to contamination of the Earth's plasma environment with dangerous debris and a threat to the stability of the magnetosphere. Metal debris from used rockets can disrupt the ionosphere and magnetosphere. Both of these systems play a key role in protecting the atmosphere and maintaining ... >>

Solidification of bulk substances 30.04.2024

There are quite a few mysteries in the world of science, and one of them is the strange behavior of bulk materials. They may behave like a solid but suddenly turn into a flowing liquid. This phenomenon has attracted the attention of many researchers, and we may finally be getting closer to solving this mystery. Imagine sand in an hourglass. It usually flows freely, but in some cases its particles begin to get stuck, turning from a liquid to a solid. This transition has important implications for many areas, from drug production to construction. Researchers from the USA have attempted to describe this phenomenon and come closer to understanding it. In the study, the scientists conducted simulations in the laboratory using data from bags of polystyrene beads. They found that the vibrations within these sets had specific frequencies, meaning that only certain types of vibrations could travel through the material. Received ... >>

Random news from the Archive

Heat to electricity 27.08.2008

Scientists from the USA have created a good material with which you can turn the heat of an internal combustion engine into electricity.

The efficiency of an internal combustion engine does not exceed 35%, which means that 65% of the energy of the burned fuel is converted into heat and warms up the environment. However, it can be recycled by turning it into electricity and storing it in a hybrid car battery. For this, the Seebeck effect is used - the generation of electricity in a semiconductor, the edges of which are maintained at different temperatures.

The most common material for such generators is lead telluride with sodium additives. At the temperature to which the external surface of the engine is heated, it converts about 8% of the thermal energy into electricity.

Scientists from Ohio University, led by Joseph Heremans, have been working for a long time to improve this efficiency, for which they decided to use nanotechnology: they began to make a telluride generator from nanofibers - thanks to this trick, they hoped to reduce the thermal conductivity of the material. It did not work out: the nanofibers turned out to be too capricious. Then they took a different path - they began to learn how to use the heat that is inside the semiconductor more efficiently.

"I came across an article where it was said that thallium atoms are capable of entering into quantum mechanical resonance with tellurium atoms when heated, exciting their electrons. This was the very solution that we had been looking for for ten years. By adding thallium to lead telluride, we have significantly increased the efficiency," says Joseph Heremans. At an initial engine operating temperature of about 200°C, it is the same 8%, but at normal temperature, 500°C, it rises to 15%.

Other interesting news:

▪ Nanocomposite on graphene and silicon will improve lithium-ion batteries

▪ Asteroid found

▪ Super thin battery material

▪ Flexible electrically conductive ceramic paper

▪ Transcend USB 3.0 Flash Drives 128GB and 256GB

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Application of microcircuits. Article selection

▪ article Votes are weighed, not counted. Popular expression

▪ article What is an artesian well? Detailed answer

▪ article Working in sterilization rooms. Standard instruction on labor protection

▪ article Antenna current meter. Encyclopedia of radio electronics and electrical engineering

▪ article Low-voltage load current interrupter. 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