DIY 37 Leds Arduino Roulette Game
by mircemk in Circuits > Arduino
2456 Views, 15 Favorites, 0 Comments
DIY 37 Leds Arduino Roulette Game
Roulette is a casino game named after the French word meaning little wheel.
Description
In the game, players may choose to place bets on either a single number, various groupings of numbers, the colors red or black, whether the number is odd or even, or if the numbers are high (19–36) or low (1–18).
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
This project was sponsored by NextPCB:
-Free PCB Design Analysis Software-NextDFM:
https://www.nextpcb.com/nextdfm.html
-Come to win a $20000 coupon:
https://www.nextpcb.com/nextdfm.html
-Register for $10 coupon & Free PCB boards:
https://www.nextpcb.com/nextdfm.html
-15%OFF - PCB & 10 % SMT Orders:
https://www.nextpcb.com/nextdfm.html _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Most often you can find a project of a roulette game with 10 LEDs, so I decided to do with 37 LEDs as in the original whell.Following the principle of the original Roulette game, the movement of the LED simulates a ball whose speed gradually decreases until it stops at a randomly generated number. The construction is greatly simplified with the use of an Arduino microcontroller.
Building
Device is relativly simple to build and consist few components:
- Arduino Nano microcontroller
- 74HC595 shift register 5 pisces
- 37 Leds
- NPN transistor
- 2 Resistors
- and Buzzer
This is the European-style layout and consist a single zero, and 36 other numbers. By pressing the button we actually throw the virtual ball, whereby the rotation is simulated by the subsequent illumination of the LEDs. The rotation of the LEDs is accompanied by an appropriate sound effect, which gives a realistic feel to the game. Rotation speed as well as time can be easily adjusted in the code.
Schematic and Code
Finally, the device is placed in a suitable box made of PVC plastic and coated with colored wallpaper. Below you can download Arduino Code:
You can watch the video on: https://www.youtube.com/watch?v=H_85lFRJ9T8