I can't get the 4017 to output enough power to operate either a lamp or a relay coil. I can get the output to switch on a transistor but I then burn up the transistor...
If you burn a transistor you certainly did a fatal mistake (e.g. too high base current). Please post your schematic with a transistor connected to a 4017 output.
Also, could someone explain in layman's terms what the 74ls192 chip does? I can't find any good example circuits that use it and explain what's happening.
The 74LS192 is a BCD up/down counter. Depending on the count direction (pin4=down, pin5=up) the counter value increases/decreases by the decimal value of 'one' with each clock pulse arriving at one of its inputs.
For your application with a fixed value to load into the counter you can load any number between 0 and 9 which will be displayed on a 7-segment display (with a BCD to 7-segment decoder driving the display) and counts down to zero where the counter has to be stopped from rolling over. (similar to the 4017 which counts from zero through nine and restarts if not stopped)
I didn't see the power supply for the IC. You must connect pin16 to +5V and pin8 to circuit ground. Don't omit the decoupling capacitor (C1, 100nF).
It won't be wrong to decouple the +12V rail as well using a 47 to 100µF electrolytic capacitor.
Using Q1 (pin3 for counter output) the relay will pull in after reset and remain pulled until you press S1 which advances the counter by one.
You did not use a free wheeling diode anti-parallel with the relay coil. Back EMF will kill the transistor most probably - if it hasn't died yet from excessive base current.
To properly clock the input (pin14) you must use a pull down resistor of 10KΩ. Pin13 (Enable) must be connected ground. Otherwise the counter is disabled.
You might save on the supply source of +5V by connecting the IC (pin16) to the +12V rail and also connect the push button to +12V.
When connecting the entire circuit to +12V increase the value of the base resistor to 6.8 .. 8.2KΩ.
A small hint: The "thingy" labeled IC1P has pin numbers belonging to the IC, which are most probably supply pins since they are connected to VDD and ground.
Another small hint: Consult your eye surgeon. (Don't insult me!)
I don't remember seeing a pin for the power in the Yenka program (it's on my home computer, I'll check when I get home). So attached is a scan of a proposed circuit using Boncuk's design but including a few more lights. The clock itself is powered by a 12 volt car battery so if the 4017 can handle the 12 volts, I'd just as soon drop the 5 volt rail. I need to use lamps for the lights that are bright enough to see in daylight from 80-100 ft away. That might be 10-20 watts per bulb(???). Looking at my drawing, can I use diodes (D4 and D5 highlighted in yellow) set up like I have drawn? The logic is that when Q1 opens it powers K1 relay which then supplies power to all three lights (2 of them though the diodes). Then when the clock hand has made a circle and Q2 opens it trips K2 and supplies power to lamp 2 directly and lamp 3 though diode 5 but can't supply backwards to lamp 1 because of diode 4. I would want 4 lamps in total though.
Also does my clock motor start/stop circuit look ok?
Boncuk, the clock is that large white box in the lower right hand corner of the picture. It's analog and typically only used for a single revolution (1 min).
here is a circuit design which probably suit your needs.
It uses a Hall sensor mounted to the mechanical part of the timer. The timer must be fitted with a small magnet facing the sensor with its south pole. Each time the timer wheel passes the sensor the counter circuit will increase by one count.
The display works as follows: Starting the clock all four lights will be on, with three on after the first minute, two on after the second minute and so on until one light remains on. As soon as the second to last minute has elapsed all four lights will flash at a rate of approximately 1 second and flashing will cease when the counter has reached the count of five.
The timer is then stopped and has to be reset by reset button for a new race.
Attached are schematic and board design. The small baord contains the Hall sensor and has to be mounted with the sensor facing the clock wheel with the magnet.
Instead of using relays I preferred using logic level MosFet transistors which switch silently with no mechanical wear and tear. Additionally they are cheaper than relays. Their RDS(ON) is 9mΩ, meaning little voltage (36mV at 2A) loss for the connected light bulbs.
Boncuk, you're awesome! That's more help than I was expecting. I like the solid state set-up using the FETs directly to power the lamps too. And I was thinking about using a automobile flasher relay to blink all four lights. You circuit is much cleaner. Thanks again. I might have a couple questions of clarification tomorrow when I get a chance to look closer at it, but currently my wife is telling me to get off the computer Merry Christmas all!
I assumed that it is already connected and running. If you don't have an accurate time base of one minute I'll change the design for an accurate digital time base.
Currently the clock only makes a single revolution and stops due to a mechanical limit switch. With a 5 minute countdown there needs to be some sort of logic to start and stop the clock motor. But I think I can figure it out using/modifying your circuit. Thanks again!
I wouldn't be against a digital based countdown, but I couldn't find any cheap large displays. Do you know where a large cheap display could be found? Could I make one from a bunch of LEDs?