Wednesday, October 17, 2007

LED sequencer


PARTS AND MATERIALS
4017 decade counter/divider (Radio Shack catalog # 276-2417)
555 timer IC (Radio Shack catalog # 276-1723)
Ten-segment bargraph LED (Radio Shack catalog # 276-081)
One SPST switch
One 6 volt battery
10 kΩ resistor
1 MΩ resistor
0.1 µF capacitor (Radio Shack catalog # 272-135 or equivalent)
Coupling capacitor, 0.047 to 0.001 µF
Ten 470 Ω resistors
Audio detector with headphones
Caution! The 4017 IC is CMOS, and therefore sensitive to static electricity!
Any single-pole, single-throw switch is adequate. A household light switch will work fine, and is readily available at any hardware store.
The audio detector will be used to assess signal frequency. If you have access to an oscilloscope, the audio detector is unnecessary.
INSTRUCTIONS
The model 4017 integrated circuit is a CMOS counter with ten output terminals. One of these ten terminals will be in a "high" state at any given time, with all others being "low," giving a "one-of-ten" output sequence. If low-to-high voltage pulses are applied to the "clock" (Clk) terminal of the 4017, it will increment its count, forcing the next output into a "high" state.
With a 555 timer connected as an astable multivibrator (oscillator) of low frequency, the 4017 will cycle through its ten-count sequence, lighting up each LED, one at a time, and "recycling" back to the first LED. The result is a visually pleasing sequence of flashing lights. Feel free to experiment with resistor and capacitor values on the 555 timer to create different flash rates.
Try disconnecting the jumper wire leading from the 4017's "Clock" terminal (pin #14) to the 555's "Output" terminal (pin #3) where it connects to the 555 timer chip, and hold its end in your hand. If there is sufficient 60 Hz power-line "noise" around you, the 4017 will detect it as a fast clock signal, causing the LEDs to blink very rapidly.
Two terminals on the 4017 chip, "Reset" and "Clock Enable," are maintained in a "low" state by means of a connection to the negative side of the battery (ground). This is necessary if the chip is to count freely. If the "Reset" terminal is made "high," the 4017's output will be reset back to 0 (pin #3 "high," all other output pins "low"). If the "Clock Enable" is made "high," the chip will stop responding to the clock signal and pause in its counting sequence.
If the 4017's "Reset" terminal is connected to one of its ten output terminals, its counting sequence will be cut short, or truncated. You may experiment with this by disconnecting the "Reset" terminal from ground, then connecting a long jumper wire to the "Reset" terminal for easy connection to the outputs at the ten-segment LED bargraph. Notice how many (or how few) LEDs light up with the "Reset" connected to any one of the outputs:

No comments: