LED sequencer

Not rated 7,510

LED sequencer
LED sequencer

The model 4017 integrated circuit is a CMOS counter with ten output terminals. At any given time, one of these ten terminals will be in a "high" state, while all others remain "low," resulting in a "one-of-ten" output sequence. When low-to-high voltage pulses are applied to the "clock" (Clk) terminal of the 4017, it increments its count, activating the next output to a "high" state. By connecting a 555 timer configured as an astable multivibrator (oscillator) with a low frequency, the 4017 cycles through its ten-count sequence, illuminating each LED sequentially and returning to the first LED, creating a visually appealing sequence of flashing lights. Adjusting the resistor and capacitor values in the 555 timer can yield different flash rates. Disconnecting the jumper wire from the 4017's "Clock" terminal (pin #14) to the 555's "Output" terminal (pin #3) and holding it can allow the 4017 to detect ambient 60 Hz power-line noise as a fast clock signal, causing rapid LED blinking. Two terminals on the 4017 chip, "Reset" and "Clock Enable," are connected to the negative side of the battery (ground) to allow free counting. If the "Reset" terminal is set to "high," the 4017's output resets to 0 (pin #3 "high," all other outputs "low"). Setting the "Clock Enable" to "high" halts the chip's response to clock signals, pausing its counting sequence. Connecting the "Reset" terminal to one of its output terminals truncates the counting sequence. Experimentation can be conducted by disconnecting the "Reset" terminal from ground and using a jumper wire to connect it to the outputs of a ten-segment LED bargraph. Observing how many LEDs illuminate when the "Reset" is connected to any output provides insight into the counter's functionality. The 4017 can also serve as a digital frequency divider, producing a pulse at an integer factor of the clock frequency. For instance, with a 200 Hz clock signal from the 555 timer and the 4017 in full-count mode (the "Reset" terminal grounded), a 20 Hz signal will appear at any of the 4017's output terminals, cycling once for every ten clock cycles. To explore this, connect an audio detector between output 0 (pin #3) of the 4017 and ground through a small capacitor (0.047 µF to 0.001 µF) to couple AC signals, allowing audible detection of pulses without applying a DC load to the counter chip output. With the "Reset" terminal grounded, a full-count sequence will produce a "click" in headphones each time the "0" LED lights up, corresponding to 1/10 of the 555's output frequency. This relationship allows for measuring the clock frequency with reasonable precision. Counting the clicks heard in a minute at the 4017's "0" output, using a stopwatch, facilitates frequency measurement. For example, using a 1 MΩ resistor and 0.1 µF capacitor in the 555 timing circuit with a power supply voltage of 13 volts (instead of 6), 79 clicks were counted in one minute. The number of pulses counted at the "0" output multiplied by 10 yields the total cycles produced by the 555 timer during that time (e.g., 79 x 10 = 790 cycles). Dividing this result by 60 provides the timer cycle frequency.

The model 4017 is a versatile CMOS decade counter, ideal for applications requiring sequential output control, such as LED displays, frequency division, and event counting. The counter operates by incrementing its output state in response to clock pulses, with a unique output activated at each step. The integration of a 555 timer as an oscillator allows for easy manipulation of the output frequency, making it suitable for various timing applications.

In practical applications, the 4017 can be interfaced with various components, including LEDs, relays, and other digital logic devices. The outputs can drive small loads directly or control larger loads through transistors or other driver circuits. The reset and clock enable functionalities provide additional control over the counting sequence, allowing for flexible operation in dynamic environments.

For circuit design, ensure proper power supply decoupling to maintain stable operation, especially when driving multiple outputs or when subjected to varying load conditions. The use of bypass capacitors close to the power supply pins of the 4017 can help mitigate noise and ensure reliable performance. Furthermore, careful selection of timing components in the 555 timer circuit will yield desired flashing rates and enhance the visual effect of the LED sequence.

Overall, the 4017 integrated circuit, when paired with a 555 timer, presents a robust solution for generating controllable sequences of events, making it a popular choice in educational projects, hobbyist applications, and even in professional designs requiring simple counting and timing functions.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: Counters such as the 4017 may be used as digital frequency dividers, to take a clock signal and produce a pulse occurring at some integer factor of the clock frequency.

For example, if the clock signal from the 555 timer is 200 Hz, and the 4017 is configured for a full-count sequence (the "Reset" terminal connected to ground, giving a full, ten-step count), a signal with a period ten times as long (20 Hz) will be present at any of the 4017`s output terminals. In other words, each output terminal will cycle once for every ten cycles of the clock signal: a frequency ten times as slow.

To experiment with this principle, connect your audio detector between output 0 (pin #3) of the 4017 and ground, through a very small capacitor (0. 047 µF to 0. 001 µF). The capacitor is used for "coupling" AC signals only, to that you may audibly detect pulses without placing a DC (resistive) load on the counter chip output.

With the 4017 "Reset" terminal grounded, you will have a full-count sequence, and you will hear a "click" in the headphones every time the "0" LED lights up, corresponding to 1/10 of the 555`s actual output frequency: In fact, knowing this mathematical relationship between clicks heard in the headphone and the clock frequency allows us to measure the clock frequency to a fair degree of precision. Using a stopwatch or other timepiece, count the number of clicks heard in one full minute while connected to the 4017`s "0" output.

Using a 1 M © resistor and 0. 1 µF capacitor in the 555 timing circuit, and a power supply voltage of 13 volts (instead of 6), I counted 79 clicks in one minute from my circuit. Your circuit may produce slightly different results. Multiply the number of pulses counted at the "0" output by 10 to obtain the number of cycles produced by the 555 timer during that same time (my circuit: 79 x 10 = 790 cycles).

Divide this number by 60 to obtain the number of timer cycle 🔗 External reference