The 4017 Decade Counter Projects
Knight Rider Circuit
What to Expect:
The six LEDs will flash from left to right and then right to left and repeat. Note how the four middle LEDs are linked to two outputs. This is because they blink in order according to their outputs and then need new outputs on the way back.
How it Works:
Pin 16 is a positive power supply and pin 8 is a ground.
Pin 13 has Clock enabled pins to control the clock. When it is 0 logic, the clock is enabled and the counter advances one count for each clock pulse. When the input is 1 the clock input is stopped and the counter does nothing even when a clock pulse arrives.
Pin 14 is the clock. If it triggers “one count” it moves the output to the next pin in line.
Pin 15 is the reset pin. Normally, it is 0. When it is 1, the counter is reset to 0.
Pins 1-7 and 9-11 are the decoded output pins. The active count pin goes high and all others remain low.
For more information on Integrated Circuits and the 4017 Decade Counter, check out our page on Integrated Circuits.
LED Dice Circuit
What to Expect:
When you click the button, you will activate the 555 timer so that it puts out a clean high output to pin 14 on the 4017. Pin 14 is the clock on the 4017 and when its input is high, it allows the 4017 to start the count.
The LEDs will flash until 4017’s pin 14 no longer gets input from pin 3 and will settle on a “random” set of lit LEDs. When the LEDs are positioned in the shape of the layout to the right, you can use that output to create a dice face. Each time the button is pressed the LEDs will randomly show a roll of one through six.
How it Works
Pressing the button allows the polarized capacitor to connect to ground which allows it to charge. When you let go of the button, the polarized capacitor begins discharging into the base of the PNP.
When the PNP’s base has electric pressure on it, the flow of electricity through it stops. This allows the nonpolarized capacitor to drain into the 555 timer’s pins. During this time, output from pin 3 is high making the LEDs flash.
When the capacitor is empty, the output from pin 3 is low which causes pin 3 to be low. This low output into pin 14 on the 4017 stops the count.
When the count stops on the 4017, the LEDs stop flashing and the 4017 pins stay high or low based on the random timing the clock stops.
The reason the LEDs aren’t flashing constantly before you press the button is because the oscillator chip is resetting itself when the output from pin 3 into pin 14 starts high.
For more information on Integrated Circuits and the 4017 Decade Counter, check out our page on Integrated Circuits.
Music Box
What to Expect:
When you turn on this music box circuit, a harmonious symphony of electronic creativity unfolds. The heart of the circuit, a 4017 Decade Counter, orchestrates a mesmerizing dance of musical notes. Upon turning on this circuit, anticipate an enchanting journey of sound, where the marriage of digital precision and analog harmony brings forth a musical tapestry that captivates the senses. Adjustments to resistors and capacitors allow for the crafting of different tunes, offering a delightful and tuneful experience every time the circuit comes to life. It's a symphony of electronics that turns a simple circuit into a miniature, personalized music box.
How it Works
Clock Generation with 555 Timer (IC1):
The first 555 Timer (IC1) is configured as an astable multivibrator to generate a clock signal.
This clock signal is fed into the clock (pin 14) of the 4017 IC.
The frequency of the clock signal determines the speed at which the music plays.
Counting Sequence with 4017 (IC2):
The 4017 Decade Counter is used to sequentially activate its ten output pins (Q0 to Q9) in response to each clock pulse.
Connect the Q0 to Q9 outputs to different resistors, each leading to the base of a transistor.
As the 4017 counts, each transistor allows current to pass through it, activating different musical notes.
555 Timer for Note Generation (IC3):
The second 555 Timer (IC3) is configured in astable mode to generate a square wave for each musical note.
Connect the output of each transistor (from step 2) to the control voltage (pin 5) of IC3.
The changing control voltage adjusts the frequency of IC3, producing different musical notes.
Circuit Adjustments and Customization:
The values of resistors, capacitors, and potentiometers in the timing circuits of the 555 Timers can be adjusted to achieve the desired musical notes and tempo.
Experiment with different resistor and capacitor combinations to customize the tune played by the music box.
Variable Resistor for Pitch Control:
Include a variable resistor (potentiometer) in the circuit to control the pitch of the music.
Adjusting the potentiometer changes the resistance in the timing circuit of the second 555 Timer, thereby altering the pitch of the generated notes.
Roulette
What to Expect:
As you press the start button, the 10 LEDs illuminate, mimicking the anticipation of a spinning roulette wheel. The 4017 Decade Counter IC gracefully cycles through the numbers, creating an electrifying visual display. Release the button, and the counter gradually slows, settling on one lucky LED that signifies your winning number. The simplicity of this 10-LED roulette game, coupled with customizable features, promises an engaging and entertaining experience for all enthusiasts. Bet on fun and excitement with this unique electronic twist to the classic game of chance! Keep in mind that this is a DIY project for entertainment purposes and should not involve any real gambling or betting. Additionally, follow legal and ethical guidelines in your area when designing and using such projects.
How it Works
Clock Generation with 555 Timer (IC1):
The 555 Timer (IC1) generates a clock signal for the 4017 IC.
The clock signal will control the spinning motion of the "roulette wheel."
Decade Counter for Number Sequence:
Connect the 4017 Decade Counter to 10 LEDs representing the roulette numbers (0 to 9).
The 4017 will sequentially activate the output pins, simulating the spinning motion and indicating the winning number.
Button to Start Spin:
Use a push button to initiate the spinning sequence.
Pressing the button triggers the start of the clock signal, causing the 4017 to cycle through its outputs rapidly, simulating the roulette wheel spinning.
Displaying the Result:
When the button is released, the 4017 gradually slows down and stops on a specific output.
The corresponding LED indicates the winning roulette number.
Reset Functionality:
Implement a reset mechanism to prepare the circuit for the next spin.
Customization and Considerations:
Speed Control: Adjust the clock frequency to control the speed of the "spin." You can do this by adjusting the value of the non-polarized capacitor.
LED Animation: Use LEDs in a circular or linear pattern to create a visual spinning effect.
Sound Effects: Enhance the experience with simple sound effects for the spinning wheel.