Introduction: Rock Paper Scissors Gaming Machine

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

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

Step 1: Code

Upload the code below and paste it to Arduino.

Step 2: Connecting Circuit

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 +

Step 3: Building Box

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.

Step 4: Decoration

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.

Step 5: Finished!

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