Subscribe
Showing posts with label Clocks / Timers. Show all posts
Showing posts with label Clocks / Timers. Show all posts

Toothbrush Timer

Posted by Circuit Labs on Friday, November 14, 2008

Author: Friedrich Weigand

050146ukIt has been known since Einstein that time is relative. This seems to apply particularly to children, who can make seconds and minutes seem like days and years when faced with unpopular chores like cleaning their teeth. To get the little dears to spend the three minutes recommended by experts on their teeth, parents concerned for the dental health of their children can resort to electronic means. And so much the better if you can get your children to help out with building the device!

The circuit of the toothbrush timer (Figure1) uses the familiar Atmel RISC AT90S2313 microcontroller, together with an oscillator formed by X1, C1 and C2. The microcontroller is available ready-programmed (order code 050146-41). It drives a row of LEDs. Green LED D1 flashes every second. The green ten-second LEDs and the red one minute LEDs light in sequence and remain on until three minutes have elapsed. Then all the LEDs go out and the blue ‘finished’ LED D9 starts flashing every second, indicating the end of brushing time. The port currents are limited to 2 mA to 3 mA by the array of 1 kΩ resistors: this is enough for the low-current LEDs, which are used in order to ensure a long battery life. A 5 V fixed voltage regulator (IC2) and decoupling and smoothing capacitors C3 to C5 round off the circuit. Diode D10 prevents damage should the 9 V PP3 (6F22) type battery be accidentally connected the wrong way around.

Figure 1

The whole circuit can be built on the printed circuit board shown in Figure 2. There are a few wire links near to the resistor array. The voltage regulator, crystal, C4 and C5 are mounted flat on the board to allow the LEDs to stand above the other components and poke through holes in the enclosure. A socket should be used for the microcontroller. Almost all the components are polarity-sensitive: check carefully before you solder!

Figure 2a Figure 2b

Figure 2.

PCB layout

COMPONENTS LIST

Resistors
R1 = 9-way 1kΩ SIL array
Capacitors
C1,C2 = 22pF
C3 = 100nF
C4,C5 = 10μF, 63V, radial

Semiconductors
D1 = LED, green, low current, 5mm
D2-D6 = LED, yellow, low current, 5mm
D7,D8 = LED, red, low current, 5mm
D9 = LED, blue, 5mm
D10 = 1N4001
IC1 = AT90S2313-10PC
(programmed, order code 050146-41)
IC2 = 7805

Miscellaneous
X1 = 4MHz quartz crystal
Case: e.g. Bopla type BOS 503
1 wire link
PCB, order code 050146-1

 (Elektor Electronics Magazine – 07/2006)


Download this article (#050146-uk.pdf)
 050146-11.zip >> or direct link

--> Read more...

Binary clock

Posted by Circuit Labs on Thursday, November 13, 2008

Author: Marco Freitag

Unusual clocks are not uncommon in Elektor Electronics. The version presented here is based on the binary clock (not yet on display) in the new Museum of Mathematics in Gießen, Germany (www.mmgi.de/htdocs/mathematikum/index.php?513), but it is entirely compatible with an ordinary living room. However, the hours, minutes and seconds have been further divided into units and tens to make them easier to read, which yields six columns: tens of hours, units of hours, tens of minutes, units of minutes, tens of seconds, and units of seconds. The values are read row by row from top to bottom: one, two, four, and eight — in other words, binary. With a bit of practice, it’s even possible to quickly and easily read the time in a single glance.

020390uk[7]

The supply voltage for the circuit comes from a simple mains adapter with an ac output voltage of 8–15 V at a maximum output current of 300 mA. The voltage must not be rectified, since the microcontroller uses the frequency of the ac voltage (50 Hz) as a clock signal with long-term stability. As PIC16C54 does not have enough output ports to individually drive all of the LEDs, and doing so would also require several additional components, the display is multiplexed. In order to nevertheless make the low-current LEDs nice and bright, the magnitude of the current pulses is made significantly higher than the rated current.

020390

Buttons S1 and S2 can be used to set the time. If you press S2, you will arrive at the setting menu after a brief LED test (all LEDs on). The value of the first column can now be set to any desired value using S2. Pressing S1 takes you to the next column. This continues in the same manner until the configuration mode is exited after the final column. The clock will continue to run, starting with the newly set value.

We have designed a printed circuit board layout for the binary clock. Fitting the components to the board couldn’t be easier, although you mustn’t overlook the set of nine wire bridges. As one of them is underneath the microcontroller, the latter must be fitted with a socket. The LEDs should initially be fitted with only one lead soldered in place, after which they must be aligned. The remaining leads should only be soldered after the LEDs are all nicely lined up. The board can be displayed ‘bare’ or fitted into a small plastic enclosure. A transparent enclosure is quite practical, since it eliminates the need to drill holes for the LEDs.

020390uk[5]

COMPONENTS LIST

 

Resistors:
R1-R4,R12 = 220Ω
R5-R10 = 1kΩ
R11 = 390Ω
R13,R14,R15 = 4kΩ7
R16 = 10kΩ

Capacitors:
C1,C2,C5 = 100nF
C3 = 470μF 25V radial
C4 = 47μF 16V radial
C6 = 10μF 16V radial
C7,C8 = 15pF

Semiconductors:
B1 = B80C1500 (80V piv, 1.5A)
D1-D20 = LED, low current, colour to
                                                personal taste
D21 = LED
D22,D23 = 1N4148
D24 = zener diode 4.7V, 0.5W
IC1 = LM7805
IC2 = PIC16C54-04/P (programmed,
order code 020390-41)
T1-T6 = BC550C

Miscellaneous:
K1 = 2-way PCB terminal block, lead pitch 5mm
S1,S2 = pushbutton, 1 make contact
X1 = 4MHz quartz crystal
Project software on disk: order code 020390-11 or Free Download
PCB, order code 020390-1 from The PCBShop

 (Elektor Electronics Magazine – 07-08/2006)



Download this article #020390-uk.pdf  >> or SkyDrive link

--> Read more...

Subscribe to: Posts (Atom)