Rock Paper Scissors Gaming Machine

by Tina Chia in Circuits > Arduino

77 Views, 2 Favorites, 0 Comments

Rock Paper Scissors Gaming Machine

IMG20240512181334.jpg
IMG20240512182301.jpg

This "Rock Paper Scissors Gaming Machine" is an Arduino-based project featuring three servo motors, an ultrasonic sensor, and a single-pole double-throw switch. When a hand is placed in front of the ultrasonic sensor, one of the servo motors raises its arm, which displays either rock, paper, or scissors. The single-pole double-throw switch is used to turn the machine on and off, preventing unnecessary electricity usage. This gaming machine is designed to let someone play rock-paper-scissors against it.

Supplies

IMG20240512184250.jpg
IMG20240512182716.jpg
IMG20240512185112.jpg
IMG20240512184230.jpg

servo mortors x3

ultrasonic sensor x1

arduino board x1

bread board x1

box x1

single-pole double-throw switch x1

arm conecting scissors picture x1

arm conecting paper picture x1

arms conecting rock picture x1

Code

Upload the code below and paste it to Arduino.

Downloads

Connecting Circuit

IMG20240512181651.jpg
IMG20240512181725.jpg
IMG20240512184216.jpg
IMG20240512183629.jpg
IMG20240512182910.jpg

servo motor 1 connects to D3

servo motor 2 connects to D6

servo motor 3 connects to D9

ultrasonic sensor connects to D10 11

single-pole double-throw switch connect to GND and +

Building Box

IMG20240512184044.jpg
IMG20240512185137.jpg
IMG20240512182323.jpg
IMG20240512184831.jpg

You can build a box or take a already made box for the outside.

Remember to cut a hole on top of the box for ultrasonic sensor and a hole by the box for single-pole double-throw switch.

Decoration

IMG20240512182403.jpg
IMG20240512185059.jpg

You guys can decorate what you want on the box.

For me, I put this machine's name cut by raser cutter on the front of the box.

Finished!

猜拳機
IMG20240512181334.jpg
IMG20240512182509.jpg
IMG20240512184119.jpg
IMG20240512181340.jpg

We're finished! Now, you can play with yourself. Have Fun!