HACKED JACKET AS POLLUTION SENSING GADGET
(For more information about the project click here/ )
For my pollution sensing and reacting dress, I have used Arduino Uno kit to test my Carbon Monoxide sensors with an led test in different environments with different inputs of pollution. The aim of the project was bringing our old clothes back to life in a more connective way, by simply hacking them. Here the jacket is cut by laser cutter and prepared for LED output in regard with the pollution amount at current environment.
CODE :
const int LED = 13; //the pin for LED
int val = //variable used to store the value
//coming from sensor
void setup() {
pinMode (LED, OUTPUT) ; // LED is as an OUTPUT
}
void loop () {
val = analogRead (0) ; // read the value from the sensor
digitalWrite(LED, HIGH); // turn the LED on
delay(val); // stop the program for some time
digitalWrite(LED, LOW); // turn the LED off
delay(val); // stop the program for some time
}
Student: Ilkim Er
Faculty: Angel Munoz