All posts by Mulugeta Bisrat

Elation

Elation

  

For the project I was given the word “ Elation“ and I decided to make something that affects my mood, and keeps me in a euphoric atmosphere would be sunlight and I realized how my mood changes when it gets cloudy. The idea of umbrella with LED light can create an illusion of being always in sunlight and create Elation.

Proces

IMG_2572

IMG_2583 IMG_2584 Umbrella

Code Used

int LED1 = 5;

int LED2 = 6; // LED is connected to digital pin

int LED3 = A2;

int sensorValue;

int sensorPin = 5;

void setup()

{

Serial.begin(9600);

pinMode(LED1, OUTPUT);

pinMode(LED2, OUTPUT);

pinMode(LED3,OUTPUT);

}

void loop()

{

sensorValue = analogRead(sensorPin);

Serial.println(sensorValue);

if(sensorValue <20){

digitalWrite(LED1, HIGH);

digitalWrite(LED2, HIGH);

digitalWrite(LED3, HIGH);

}

else{

digitalWrite(LED1, LOW);

digitalWrite(LED2, LOW);

digitalWrite(LED3, LOW);

}

}

Mulugeta Bisrat