In this project, we will create a game. The player has to choose a color (Red or Green) and then press the button. At that point the circuit should randomly turn one of the LEDs ON. If the LED that turned ON matches the color picked, the player won.
- Player picks a color (Red or Green) - This happens before interacting with the circuit
- Button not pressed: Both LEDs OFF
- Button pressed: One of the LEDs randomly ON for 5secs
Initial project state
Click on the link below and complete the wiring of the circuit.
Link: Part 1: Wiring
Now, you can move on to start writing your program and testing your sensor. Click on the link below and complete the calibration and configuration of the circuit.
Link: Part 2: Calibration
Lastly, and most importantly, you have to create the logic to make your circuit behave as needed for the project. Click on the link below and complete the logic of the circuit.
Link: Part 3: Logic