1 Arduino Uno
1 breadboard
3 LED
4 buttons
2 220 resistors
1 1k resistor
3 10k resistors
16 jumper wires
1 fan
Just engage each of the three phases and the Emergency Cooling system is ready to go!
Each button turns on a corresponding LED, once each LED is turned on the cooling system is warmed up and ready to launch.
For some reason I find ridiculous solutions to simple problems hilarious, so I thought surly this has to be the most absurd way for someone to cool themselves off. Originally I planned for a very robotic voice to announce each phase that is activated but I don't believe our kits came with an SD card reader so the Arduino could play the audio files over a speaker. As a stand in, I added the voice to the uploaded video.
![]() |
Photo of completed multi-switch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int option1 = 3; | |
const int option2 = 5; | |
const int option3 = 6; | |
const int launch = 9; | |
const int light1 = 4; | |
const int light2 = 7; | |
const int light3 = 12; | |
const int fan = 10; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(option1, INPUT); | |
pinMode(option2, INPUT); | |
pinMode(option3, INPUT); | |
pinMode(launch, INPUT); | |
pinMode(light1, OUTPUT); | |
pinMode(light2, OUTPUT); | |
pinMode(light3, OUTPUT); | |
pinMode(fan, OUTPUT); | |
Serial.begin(9600); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
int buttonState1 = digitalRead(option1); | |
int buttonState2 = digitalRead(option2); | |
int buttonState3 = digitalRead(option3); | |
int buttonState4 = digitalRead(launch); | |
if(buttonState1 == 1){ | |
digitalWrite(light1, HIGH); | |
Serial.println("PHASE ONE ACTIVATED"); | |
} | |
if(buttonState2 == 0){ | |
digitalWrite(light2, HIGH); | |
Serial.println("PHASE TWO ACTIVATED"); | |
} | |
if(buttonState3 == 0){ | |
digitalWrite(light3, HIGH); | |
Serial.println("PHASE THREE ACTIVATED"); | |
} | |
if(buttonState4 == 0){ | |
digitalWrite(light1, LOW); | |
digitalWrite(light2, LOW); | |
digitalWrite(light3, LOW); | |
digitalWrite(fan, HIGH); | |
Serial.println("LAUNCH!!"); | |
} | |
} |
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.