Thingiverse
Reaction game 4-2
par WillemvD
5
Téléchargements
4
Likes
0
Makes
This Thing is a reaction game for two.
Both players put a finger at the indicated position at the side of the unit.
In this way the distances to the buttons are equal.
Switch the unit on or press the reset button if it is on already.
The center led will light up. After some time it goes off. Who first presses the buttonafter the led is off is the winner. His led will light up.
Mark a winning point on the list and push reset for another round.
The first one with five points gets a beer. Beer influences the reaction time so the loosing player gets an advantage.
Arduino sketch:
int Ls = 1; int L1 = 0; int L2 = 2; int P1 = 4; int P2 = 3;
void setup() {
pinMode(Ls, OUTPUT); pinMode(L1, OUTPUT); pinMode(L2, OUTPUT);
pinMode(P1, INPUT); pinMode(P2, INPUT);
digitalWrite(Ls,HIGH);delay(5000);digitalWrite(Ls,LOW);
}
void loop(){
digitalWrite(L1, LOW); digitalWrite(L2, LOW);
int val1 = digitalRead(P1); int val2 = digitalRead(P2);
if(val1==HIGH && val2==HIGH){digitalWrite(L1,
Both players put a finger at the indicated position at the side of the unit.
In this way the distances to the buttons are equal.
Switch the unit on or press the reset button if it is on already.
The center led will light up. After some time it goes off. Who first presses the buttonafter the led is off is the winner. His led will light up.
Mark a winning point on the list and push reset for another round.
The first one with five points gets a beer. Beer influences the reaction time so the loosing player gets an advantage.
Arduino sketch:
int Ls = 1; int L1 = 0; int L2 = 2; int P1 = 4; int P2 = 3;
void setup() {
pinMode(Ls, OUTPUT); pinMode(L1, OUTPUT); pinMode(L2, OUTPUT);
pinMode(P1, INPUT); pinMode(P2, INPUT);
digitalWrite(Ls,HIGH);delay(5000);digitalWrite(Ls,LOW);
}
void loop(){
digitalWrite(L1, LOW); digitalWrite(L2, LOW);
int val1 = digitalRead(P1); int val2 = digitalRead(P2);
if(val1==HIGH && val2==HIGH){digitalWrite(L1,
Vous avez imprimé ce modèle ? Connectez-vous et partagez votre make !
Connectez-vous pour laisser un commentaire
Se connecterPas encore de commentaires – soyez le premier !