Spin the Wheel Game

by jass23 in Circuits > Arduino

26 Views, 0 Favorites, 0 Comments

Spin the Wheel Game

IMG_5858.jpeg
IMG_5861.jpeg

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!

Supplies

IMG_5629.jpeg

Arduino Uno

IR Receiver module (e.g., TSOP382)

IR Remote (any standard remote)

Servo Motor

Red and Green LEDs

7-Segment Display

Buzzer

Push Button

Breadboard and jumper wires

Resistors (330Ω for LEDs)

USB cable & computer for programming

Wiring

IMG_5860.jpeg
Screenshot 2025-06-17 231247.png

IR Receiver

  1. Signal → Pin 5
  2. VCC → 5V
  3. GND → GND

Servo Motor

  1. Signal → Pin 3
  2. VCC → 5V
  3. GND → GND

LEDs

  1. Green LED anode → A4 (via 330Ω)
  2. Red LED anode → A5 (via 330Ω)
  3. Cathodes → GND

Buzzer

  1. + → Pin 6
  2. – → GND

Button

  1. Signal → Pin 2
  2. GND → GND
  3. VCC → POWER


7-Segment Display (Common Anode)

  1. Segment a → Pin 13
  2. Segment b → Pin 12
  3. Segment c → Pin 7
  4. Segment d → Pin 8
  5. Segment e → Pin 9
  6. Segment f → Pin 10
  7. 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

Screenshot 2025-06-17 at 7.54.07 PM.png
0.jpg

The Arduino sketch handles the following tasks:

  1. Spins the servo motor with a random stop
  2. Displays digits on the 7-segment display from 9 to 0
  3. Monitors a push button during countdown
  4. Lights up green or red LED based on success
  5. Plays buzzer tones for win/lose feedback
  6. Uses IR remote input to trigger the game

What the Code Does


  1. Press the button on the IR remote (code 0x(whatever hex code your remote gives you)).
  2. The servo spins randomly and stops.
  3. A 10-second countdown starts on the 7-segment display.
  4. During the countdown, the player must press the button.
  5. If the button is pressed in time:
  6. Green LED lights up
  7. Double beep from buzzer
  8. If time runs out:
  9. Red LED lights up
  10. Long sad buzz
  11. 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!