[MID]NIGHT LIGHT

Made by Rachel Sung

[MID]NIGHT LIGHT is an installation targeting the midnight hours. The device follows the sound of your footsteps and illuminates your path.

Created: September 16th, 2015

0
[MID]NIGHT LIGHT
Rachel Sung - https://vimeo.com/139594141
0

[MID]NIGHT LIGHT was stems from the very common and real problem of having to stumble through the dark and make your way to the bathroom in the middle of the night. Unlike the usual night light, the [MID]NIGHT LIGHT activates only when a person is awake and moving. 

This device benefits my apartment’s layout, in particular, with a fifteen foot-long narrow hallway leading towards the bedroom. Taking notice of the creaking wooden floors in my apartment, I utilized the inevitable noise of my footsteps and programed an LED strip to light up according to the sound of my walking. As I approach the lengthy hallway, the microphone is housed in a chipboard frame that would be mounted alongside the row of photographs on the wall. Once detecting the sound of footsteps, the LED strip turns on and gradually fades out.

While developing the final product, I struggled with the programming as a result of my extreme lack of experience with coding. With quite a bit of help, I managed to program the somewhat simple code. However, my strengths lied in the fabrication aspect. Inspired by the framed photographs that are currently hanging on the wall of that hallway, I created a warped rotated frame to house the Arduino, the breadboard and all the wires. 

0
int ledPin=9;
int ledVal=0; 
int micPin=0;
int micVal=0;

void setup() {
  pinMode(ledPin, OUTPUT);
  analogWrite(ledPin, ledVal);
  Serial.begin(9600);

}

void loop() {
  micVal= analogRead(micPin);
  Serial.println (micVal);
  
  if (micVal<100)
  {
    ledVal = 255;
    delay(100);
    while(ledVal > 0)
    {
      ledVal = ledVal - 1;
      analogWrite(ledPin, ledVal); 
      delay(10);    
    }
  }

  
}
Click to Expand
x
Share this Project

Found In
Courses

48-739 Making Things Interactive

· 0 members

Making Things Interactive (MTI) is a studio course based on physical prototyping and computing. You will develop novel sensing, interaction and display techniques through projects and short assignm...more


About

[MID]NIGHT LIGHT is an installation targeting the midnight hours. The device follows the sound of your footsteps and illuminates your path.