My rock-paper-scissor box has three different LED’s each representing rock, paper, and scissor. Each time I press a button in the middle, the process starts, all three LED’s flash 3 times while I choose one. The program randomly turns on one of the LED lights representing rock, paper, or scissors.
Yellow LED– Rock
Orange LED– Paper
Red LED- scissors
Here is how I made it.
● Arduino Uno
● 3 LED’s
● Jumper Cables
● Cardboard Box to contain everything inside it
I connected three of the LED’s to 3 different pins of Arduino UNO 9, 10 and 11 (yellow, orange and red) and button to pin 7. The ground pin of the LED’s are connected to the ground of the Arduino.
The Green LED represents if the device is ready to use.
Flow – Each time I press the button, it changes the input on pin number 7, which in turn first turns off all LED’s and then flashes the 3 LED’s and turns on one of the random LED out of YELLOW, ORANGE and RED.
I hope you liked my project.