Roulette

by 704597 in Circuits > Arduino

25 Views, 0 Favorites, 0 Comments

Roulette

Capture.PNG

This project is a game or roulette where holding the led

Supplies

Wiring the Ledchaser

download.png
Capture.PNG

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

Capture.PNG

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.