Spin the Wheel Game
My name is Jassahib and in this Instructable, you'll learn how to make an IR remote-controlled game spinner. This project uses a servo motor, LED indicators, a buzzer, and an IR receiver to create a fun and interactive game component. Press a button on the remote, and the spinner whirls to select a result. Perfect for classroom games, decision-making, or party fun!
Downloads
Supplies
Arduino Uno
IR Receiver module (e.g., TSOP382)
IR Remote (any standard remote)
Red and Green LEDs
Buzzer
Push Button
Breadboard and jumper wires
Resistors (330Ω for LEDs)
USB cable & computer for programming
Wiring
IR Receiver
- Signal → Pin 5
- VCC → 5V
- GND → GND
Servo Motor
- Signal → Pin 3
- VCC → 5V
- GND → GND
LEDs
- Green LED anode → A4 (via 330Ω)
- Red LED anode → A5 (via 330Ω)
- Cathodes → GND
Buzzer
- + → Pin 6
- – → GND
Button
- Signal → Pin 2
- GND → GND
- VCC → POWER
7-Segment Display (Common Anode)
- Segment a → Pin 13
- Segment b → Pin 12
- Segment c → Pin 7
- Segment d → Pin 8
- Segment e → Pin 9
- Segment f → Pin 10
- Segment g → Pin 11
(The slide switch and touch sensor have the same connections so in this thinkercad i have used a slide switch instead of touch sensor cause thinkercad does not have them!)
Ardunio Code
The Arduino sketch handles the following tasks:
- Spins the servo motor with a random stop
- Displays digits on the 7-segment display from 9 to 0
- Monitors a push button during countdown
- Lights up green or red LED based on success
- Plays buzzer tones for win/lose feedback
- Uses IR remote input to trigger the game
What the Code Does
- Press the button on the IR remote (code 0x(whatever hex code your remote gives you)).
- The servo spins randomly and stops.
- A 10-second countdown starts on the 7-segment display.
- During the countdown, the player must press the button.
- If the button is pressed in time:
- Green LED lights up
- Double beep from buzzer
- If time runs out:
- Red LED lights up
- Long sad buzz
- Spinner resets to center.
(You will also have to decode the hex code and input it into the code)
Demo Project Video
Here is the demo Video:
https://drive.google.com/file/d/15jZSQ8dw7Dlw7Zs9gzE4OeKB5SnoDz2Y/view?usp=sharing
Conclusion
This interactive Arduino project is perfect for learning about IR communication, servos, displays, and feedback systems. It’s great for classrooms, parties, or electronics demos. Customize it further to match your game theme or add new challenges!