So, Yasmine Li approached me with her sketch idea. Basically it is a device that communicate moods to people. Let's say if someone is making too much noise then the user of this machine can send a email stating condition like "Red - Shut up, Yellow - It's getting to loud be quite, Blue - please watch your noise level, Green - Everything is fine."
So I asked her to state these into the tool v3. here is how it looked
I made the thing for here - didn't take too long. Only 30 mins ( the hard part was the wiring - cutting wires was a bit annoying, programming took me 2 mins)
Here is some video of her explaining her stuff after she got the working prototype
Yasmine lee - work-like Prototype
Here is her code
int button1 = 0;
int button2 = 0;
int button3 = 0;
int button4 = 0;
void setup(){
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
pinMode(11,OUTPUT);
pinMode(12,OUTPUT);
pinMode(13,OUTPUT);
Serial.begin(9600);
}
void loop(){
button1 = digitalRead(2);
button2 = digitalRead(3);
button3 = digitalRead(4);
button4 = digitalRead(5);
Serial.println(button1);
Serial.println(button2);
Serial.println(button3);
Serial.println(button4);
if((button1 == HIGH)||(button2 == HIGH)||(button3 == HIGH)||(button4 == HIGH)){
digitalWrite(13,HIGH);
}else{
digitalWrite(13,LOW);
}
if(button1 == HIGH){
digitalWrite(8,HIGH);
}
if(button1 == LOW){
digitalWrite(8,LOW);
}
if(button2 == HIGH){
digitalWrite(9,HIGH);
}
if(button2 == LOW){
digitalWrite(9,LOW);
}
if(button3 == HIGH){
digitalWrite(11,HIGH);
}
if(button3 == LOW){
digitalWrite(11,LOW);
}
if(button4 == HIGH){
digitalWrite(12,HIGH);
}
if(button4 == LOW){
digitalWrite(12,LOW);
}
}