Introduction: Game Lottery Turntable
Welcome to my Arduino project! This is a lottery turntable for playing all kinds of game that needs to be fair. Here is how the game is played: First, there is a black button at the left bottom. You will need to click it to start the lottery. After the lottery begins, the LED light will turn from red to green, which means the turntable is spinning. After the spinner stopped randomly, the LED light will turn red. This lottery lasts forever and selects at random, so, you can use it any time when you have a hard time deciding or picking.
This is a bundle, most of the supplies can be found here except for the stepping motor (Arduino bundle)
Arduino 101/ Arduino Uno/ Arduino Leonardo x1 (Arduino Leonardo)
Button x1 (Push button)
2 pieces of 5mm LEDs (your color of choice) (LED)
100Ω Resistor x2 (Brown resistor)
Breadboard x1 (depends on how you manipulated) (Breadboard)
Jumper Wires (a lot) (Jumper wires)
10k Ω Resistor x1 (the blue one) (Blue Resistor)
Crocodile clip x4 (Crocodile clip)
External power supply/ Power bank x1 (Any power bank is fine, somehow like this: Power bank)
Stepping motor x1 (Stepping motor)
Shoebox x1 (This is the one I used in this project (Shoebox)
Step 1: Prepare for Your Materials
Arduino 101/ Arduino Uno/ Arduino Leonardo x1
2 pieces of 5mm LEDs (your color of choice)
100Ω Resistor x2
Breadboard x1 (depends on how you manipulated)
Jumper Wires (a lot)
10k Ω Resistor x1 (the blue one)
Crocodile clip x4
External power supply/ Power bank x1
Stepping motor x1
Shoebox x1 (No size limit)
Step 2: Design Your Breadboard and Hardware
This is my breadboard. It can be designed in many different ways up to your choice. There are a photo and a circuit which I made on the Tinkercad. This may help you to develop and build up your breadboard. Combine the last two pictures together will come out to be the final appearance of my first picture.
For the LED part:
- Digital pin to a random spot on the breadboard
- Connect LED light on the breadboard
- Positive to Digital
- Negative to Resistance
- Connect Resistance to Negative
Red LED --> D13
Green LED --> D12
For the button part:
- The positive and negative doesn't matter in pushbuttons
- One side connects to positive and one side connects to the digital pin
- Resistance connects from the same line of the digital pin to another place besides
- The other side of resistance connects to jump wires to the negative.
For the step motor part:
- Look at picture three
- Step motor--> D3, 4, 5, 6,
Step 3: Start Your Coding!
This is my code, click here: My code
Above is an Ardu block I created and the picture of my code without annotation.
Step 4: Decorating Time!
After you finish the hardware and coding part for your project, you may start to decorate your work to make it looks better. I took my Nike shoe box as the outer case. First of all, you will need to big one big hole for the push button and two tiny holes for the LED lights. Then, find the center of the shoebox and make one precise hole that fixes the step motor. Later on, grab another paper and draw a circle. You need to cut it down and dig a hole exactly the same as the shoe box. After, place the button, the LED lights, and the step motor to these holes and secure with tape. Finally, create our own lottery turntable with the options you want to list. Yelp, you are pretty much done!
Step 5: Test It for Three Times
Make sure you have the right code with the right hardware done. Make sure the spinner can go well without any problem. Do it three times to make sure nothing went wrong.
Step 6: DONE
Participated in the
Arduino Contest 2020