Led Mini-chaser Game
Today I will be instructing you on how to make my Led mini-chaser game
description: This game is based on wack a mole which as most people should know is all about patience and timing the goal of the game is to hit 9 points, this game is challenging because of the speed of the LED move and the fact that you have to aim for a specific colour, it's a straightforward game so let's go over how to create it now!
Supplies
The items you'll be needing in this project are as follows:
- 1x Arduino
- 2x breadboard
- 3 different colour LEDs (recommended---> Red x3, yellow x2, green x2)
- 4 resistors (3x 330 om,s 1x 1000 oms)
- 1 potentiometer
- 1 push button
- 1 capacitor
- 1 seven-segment display
- 1 johnson decade counter
- 1 555 timer
- Wires
- 1 wire cutter
these are the supplies you'll need to make my mini chaser game.
Led Placements
the first step would be to get all the placements for the less right I recommend this pattern, also make sure to use the correct resistor with the right wiring so that all LEDs can be powered by 1 resistor.
Logic Gates, 5v and Ground Placement
This step shows you how to set up the 555 timer and the johnson decade counter properly, this step also shows how to and where to set up all the ground and power wires red=power(5V) and black=ground(GND).
7 Segment Display, Potentiometer, Push Button and Capacitor Placement
This step is very important because of 2 key components which are: the potentiometer("allows the less to change speed and stop") and the capacitor ("gives the less the ability to move without the capacitor the less wouldn't move").
make sure to place the 7 segments and the push button on another breadboard because of space needed for the other components also makes the entire project look a lot cleaner.
Wiring the LEDs
For this step, the wiring may look complicated but once you get the pattern it's very simple the way these LEDs are wired is
Step 1:
from the less to the johnson decade counter the order goes
Led1=top--->output 10
Led2=top--->output 1
Led3=top--->output 2
Led4=top--->output 3
Led5=top--->output 6
Led6=top--->output 7
Led7=top--->output 8
Step 2:
from the johnson decade counter to the Arduino
output 10--->pin #7
output 1--->pin #13
output 2--->pin #12
output 3--->pin #11
output 6--->pin #10
output 7--->pin #9
output 8--->pin #8
also connect 1 power(5V) and 2 ground(GND) to the top left of the johnson decade counter going in order like power, ground, ground.
Wiring Push Button and 7 Segment Display
This is the final wiring step during this step take your time wiring the 7-segment display it can be very tedious while the button only requires 1 wire for the pin it's the one that needs the 1000 oms resistor.
Coding
This step requires you to carefully look at everything you've built and perfectly declare and pin everything even after creating your version of mine make sure it's not the same because of plagiarism change most pins change the over all idea and go beyond the thinking concept of a simple game and go for multiple players with hat information change the code to whatever suits your circuit