Arduino 1-hand Reaction Training Machine
by kjr27 in Circuits > Arduino
104 Views, 0 Favorites, 0 Comments
Arduino 1-hand Reaction Training Machine
This is a project for training 1 hand reaction.
The purpose of making it is for playing music games on 1 hand.
You need
-4 button
-4 LED light
-4 220 ohm resistors
-4 Ohm 1/4W Precision Resistor
-22 wires
-1 20 * 15 box
Connect Components
connect components from the picture.
Enter Arduino Code
Enter the Arduino Code below into your Arduino.
void setup(){ // put your setup code here, to run once: pinMode( random( 9 , 12 ) , OUTPUT); // sets the digital pin as output}void loop(){ // put your main code here, to run repeatedly: digitalWrite( random( 9 , 12 ) , HIGH ); // sets the digital pin on/off delay( 1000 ); // waits a few milliseconds digitalWrite( random( 9 , 12 ) , LOW ); // sets the digital pin on/off delay( 1000 ); // waits a few milliseconds}
Buy, Find, or Make a Box
Find or make a box to hold your Arduino, you need to cut 4 4cm * 3.5 cm holes for buttons and another 4
1cm* 1cm holes for LED light.