Roulette
This project is a game or roulette where holding the led
Supplies
- 1 555 timer $0.99
- 1 decade timer $1.51
- 1 100uf capacitor $0.75
- 3 330 resistors $10.18
- 1 10k resistors $0.99
- 2 diodes $10.99
- 10 2yellow 2green 6red led 2.23
- 1 push button $0.89
- 1 buzzer $0.96
- 1 breadboard $9.99
- 1 Arduino uno $38.99
Wiring the Ledchaser
The first step is to create a simple led chaser circuit as this is the base of the roulette as this will create the cycling led's. to shut off the game just wire the power cable into a switch to shut it off.
Wiring Arduino
for the Arduino plug in the the anode side of the green led to the Arduino so for the first on its to pin 6 and the second pin 7. The 555 timers pin 7 will be plugged into 11 of the Arduino. Then the push button is wired into pin 9 and lastly the buzzer is plugged into pin 10.
to simplify the idea of the Arduino its goal is to control the speed of the game and handle the input of the push button and the output of the buzzer.
Code
Within the code there's some uncommon things so there's pitches to add a sound effect when the led is green when you win. As for the speed controller its a value of 131 as this is a number where it is a able to move but is reasonable then then it adds each time it lands on green. Then the push button sets the value to zero to pause the led chaser after two seconds. The buzzer will be playing all the time when the button is pressed and will play a certain sound when the green led is triggered. and finally the readings the pins' there's two pins that read input for the two green led to see the state so it can increase the speed when needed.