About real circuit pocket watches functionality

Jan 10
10:05

2012

LiuJiajia

LiuJiajia

  • Share this article on Facebook
  • Share this article on Twitter
  • Share this article on Linkedin

There are many ways to approach pocket watches. This is a great invention. The circuit is even majestic. It consist of a microcontroller oscillator used as clock pulse generator 4 MHz crystals, with two 22PF capacitor, connected to pins 15 and 16. The push managers to set the time and mode selection are connected to pins 10, 11, 12 and 13, which correspond to the bits 4, 5, 6 and 7 of PORTB. Each of these pins to GND has been through a 10K resistor. Each time you press a pocket watches button, the corresponding pin is set to + V.

mediaimage

There are many pocket watches on the market. Yet,About real circuit pocket watches functionality  Articles most consist of the same system. To maintain the accuracy of the clock, experts use a small integrated circuit, also of Dallas, which is responsible for counting the time for us. This is the DS1307, 8-pin, which has its own glass (to 32,768 Hz) and a CR-2032 battery backup 3V. This battery provides the energy necessary for the DS1307 continues to operate in the event of failure or disconnection of the mains supply.

This avoids having to put in an hour the pocket watches every time you unplugged it from the mains. To display information for both the hours and minutes as the temperature data, we used four 7-segment LED display approximately 3.5 cm in height. A common cathode displays the time, where each segment consists of two red LEDs in series.  The ":" core consists of two 3mm LEDs connected in series, the color of the displays, and are handled from pin 7 of microcontroller. This can be used for many purposes.

You can create your own! Since the multiplex display by using traditional techniques would have required a large number of pins of E / S PIC16F628A microcontroller, we used a shift register built from four chips connected in cascade. Each of the outputs of these integrated controls has one of the segments of the displays. The microcontroller pin 17 (bit 0 of PORTA) is responsible for providing the data to the shift register, while the pin 18 (bit 1 of PORTA) provides the necessary clock pulses.

The same trick of the shift register is used to control 60 LEDs that make up the second hand. This time it took 74HC164N 8 integrated circuits. This will apply to modern models. The circuits can be quite complex. This record has 64 outlets, of which only exploit the first 60. Each of these output controls one of the LEDs through a resistor that limits the current that passes through them.

Since the maximum possible consumption of this pocket watches project is quite high for what we are accustomed, we divided the power stage into three parts, each responsible for providing power to a section of the clock. Thus, a stage built around a LM7805 voltage regulator provides the power needed by the microcontroller, temperature sensor and real time clock. Another stage feeds the displays and the shift register that controls it, and the third does the same with the LEDs on the second hand and control integrated circuits.

Categories: