Mini Game LED ColorPicker

Experiments & prototyping with the Arduino.
rwblinn
Site Admin
Posts: 220
Joined: 07 Oct 2017, 12:16

Mini Game LED ColorPicker

Postby rwblinn » 08 Oct 2017, 18:23

Mini game to pick the color of a LED turned on randomly selected from 3 LEDs.
After starting the game, the 3 LED are randomly turned on via timer (interval 150ms).
The player selects a color prior pressing the button.
The goal is to catch the color selected by pressing the button in time.
To increase or decrease the level, change the interval.

Parts Needed
• 1x Arduino MEGA
• 1x LED Red
• 1x LED Yellow
• 1x LED Green
• 3x Resistors 220 Ohm

Wiring
Arduino = LED/Pushbutton
8 = LED RED (Red)
GND = LED RED (Black)
9 = LED YELLOW (Yellow)
GND = LED YELLOW (Black)
10 = LED GREEN (Green)
GND = LED GREEN (Black)
2 = Pushbutton (Blue)
GND = Pushbutton (Black)
(WireColors)

Circuit
Image

Download Source Code

ToDo
• Experiment is completed.

Version
20160524

Return to “Arduino”

Who is online

Users browsing this forum: No registered users and 1 guest