Showing posts with label clock. Show all posts
Showing posts with label clock. Show all posts

Thursday, July 11, 2013

Digital Clock with Timer and Solar Panel Regulator

This is a combination digital clock timer and solar panel charge controller used to maintain a deep cycle battery from a solar panel. The timer output is used to control a 12 volt load for a 32 minute time interval each day. Start time is set using 9 dip switches and ends 32 minutes later. The 32 minute duration is set by selecting the 5th bit (2^5 = 32) of a 4040 binary counter (pin 2). The timer also has a manual toggle switch so the load can be manually switched on or off and automatically shuts off after 32 minutes. The time duration can be longer or shorter (8,16,32,64,128,256 minutes etc.) by selecting the appropriate bit of the counter. The timer circuit is shown in the lower schematic just above the regulator.  

Basic Clock Circuit diagram


Digital Clock with Timer and Solar Panel Regulator


The basic clock circuit (top schematic below) is similar to the binary clock (on another page) and uses 7 ICs to produce the 20 digital bits for 12 hour time, plus AM and PM. A standard watch crystal oscillator (32,768) is used as the time base and is divided down to 1/2 half second by the 4020 binary counter. One half of a 4013 data latch is used to divide the 1/2 second signal by 2 and produce a one second pulse that drives the seconds counter (74HC390 colored purple). The minutes are advanced by decoding 60 seconds (40 + 20) and then resetting the seconds counter to 0 and at the same time advancing the minutes counter. The same procedure is used to advance the hours. The second half of the 4013 latch is used to indicate AM or PM and is toggled by decoding 13 hours and resetting the hours to 0 and then advancing the hours to "one".


Clock Display Circuit diagram
Digital Clock with Timer and Solar Panel Regulator


The clock display circuit is shown in the second drawing below and uses 6 more ICs to decode the binary data and drive four seven segment LED displays. The 10s of hours digit is driven with a single 3904 transistor. Two multiplexer circuits (4053) are used to manually select either minutes or seconds for the right two display digits. The two switches shown between the 4053s and below the left 4053 are both part of one DPDT switch which selects either seconds or minutes for the 1X and 10X digits. This switch is shown in the seconds position and the hours digits are blanked with a low signal on pin 4 of the 4511.

The display can also be toggled on and off (totally blank) using a set/reset latch made from a couple 74HC00 NAND gates. A momentary DPDT switch is used to control the latch and toggle the display on or off. The second pole of this switch is used on the upper drawing (connected to the run/stop switch) to set the hours and minutes. Thus this same switch performs both functions of blanking the display and setting the time. The run/stop switch is shown in the normal running mode and supplies a low signal to a NAND gate which prevents accidental setting the time while the clock is running.

 Clock Timer Circuit diagram


Digital Clock with Timer and Solar Panel Regulator


The run/stop switch also turns on the display (through the diode D2) when in the stop position. The procedure for setting the clock would be to set the (run/stop) switch the stop position and the (seconds/minutes) switch to the minutes position. Then toggle the momentary switch to set minutes and hours of the current time plus one minute. The clock can then be started with the run/stop switch at precisely the right time (+/- 0.5 seconds).

Voltage Regulator (13.6 volts)

Digital Clock with Timer and Solar Panel Regulator


The voltage regulator in the lower drawing maintains the battery at 13.6 volts and also supplies the clock and timer circuits with 4.3 volts. The charge LED indicator only comes on when the regulator is supplying max charge to the battery. When the battery voltage reaches 13.6 the regulator reduces the current to whatever is necessary to maintain the voltage and the charge indicator will turn off. The unit I built also included a battery condition indicator (voltmeter using 4 LEDs) to indicate the battery condition so that a failure of the regulator would be indicated by the charge indicator LED turned off and less than 4 LEDs lit on the voltmeter.
Read More..

Thursday, July 4, 2013

28 LED Clock Timer

This is a programmable clock timer circuit that uses individual LEDs to indicate hours and minutes. 12 LEDs can be arranged in a circle to represent the 12 hours of a clock face and an additional 12 LEDs can be arranged in an outer circle to indicate 5 minute intervals within the hour. 4 additional LEDs are used to indicate 1 to 4 minutes of time within each 5 minute interval. The circuit is powered from a small 12.6 volt center tapped line transformer and the 60 cycle line frequency is used for the time base. The transformer is connected in a full wave, center tapped configuration which produces about 8.5 volts unregulated DC. A 47 ohm resistor and 5.1 volt, 1 watt zener regulate the supply for the 74HCT circuits.  

28 LED Clock Timer Circuit Diagram

28 LED Clock Timer

A 14 stage 74HCT4020 binary counter and two NAND gates are used to divide the line frequency by 3600 producing a one minute pulse which is used to reset the counter and advance the 4017 decade counter. The decade counter counts the minutes from 0 to 4 and resets on the fifth count or every 5 minutes which advances one section of a dual 4 bit binary counter (74HCT393). The 4 bits of this counter are then decoded into one of 12 outputs by two 74HCT138 (3 line to 8 line) decoder circuits. The most significant bit is used in conjunction with an inverter to select the appropriate decoder. During the first eight counts, the low state of the MSB is inverted to supply a high level to enable the decoder that drives the first 8 LEDs. During counts 9 to 12, the MSB will be high and will select the decoder that drives the remaining 4 LEDs while disabling the other decoder.

The decoded outputs are low when selected and the 12 LEDs are connected common anode with a 330 ohm current limiting resistor to the +5 volt supply. The 5th output of the second decoder (pin 11) is used to reset the binary counter so that it counts to 11 and then resets to zero on the 12th count. A high reset level is required for the 393 counters, so the low output from the last decoder stage (pin 11) is inverted with one section of a 74HCT14 hex Schmitt trigger inverter circuit. A 10K resistor and 0.1uF cap are used to extend the reset time, ensuring the counter receives a reset signal which is much longer than the minimum time required. The reset signal is also connected to the clock input (pin 13) of the second 4 bit counter (1/2 74HCT393) which advances the hour LEDs and resets on the 12th hour in a similar manner.

Setting the correct time is accomplished with two manual push buttons which feed the Q4 stage (pin 7) of the 4020 counter to the minute and hour reset circuits which advance the counters at 3.75 counts per second. A slower rate can be obtained by using the Q5 or Q6 stages. For test purposes, you can use Q1 (pin 9) which will advance the minutes at 30 per second. The time interval circuit (shown below the clock) consists of a SET/RESET flipflop made from the two remaining NAND gates (74HCT00). The desired time interval is programmed by connecting the anodes of the six diodes labeled start, stop and AM/PM to the appropriate decoder outputs. For example, to turn the relay on at 7:05AM and turn it off at 8:05AM, you would connect one of the diodes from the start section to the cathode of the LED that represents 7 hours, the second diode to the LED cathode that represents 5 minutes and the third diode to the AM line of the CD4013. The stop time is programmed in the same manner. Two additional push buttons are used to manually open and close the relay.

The low start and stop signals at the common cathode connections are capacitively coupled to the NAND gates so that the manual push buttons can override the 5 minute time duration. That way, you can immediately reset the relay without waiting 5 minutes for the start signal to go away. The two power supply rectifier diodes are 1N400X variety and the switching diodes are 1N914 or 4148s but any general purpose diodes can be used. 0.1 uF caps (not shown on schematic) may be needed near the power pins of each IC. All parts should be available from Radio Shack with the exception of the 74HCT4017 decade counter which I didnt see listed. You can use either 74HC or 74HCT parts, the only difference between the two is that the input switching levels of the HCT devices are compatible with worst case TTL logic outputs.

The HC device inputs are set at 50% of Vcc, so they may not work when driven from marginal TTL logic outputs. You can use a regular 4017 in place of the 74HCT4017 but the output current will much lower (less than 1 mA) and 4 additional transistors will be required to drive the LEDs. Without the buffer transistors, you can use a 10K resistor in place of the 330 and the LEDs will be visible, but very dim. Using the 4017 to drive LEDs with transistor buffers is shown in the "10 Channel LED Sequencer" at the top of this page.
Read More..