Lightup Mirror

Made by ydavanzo

The goal of this project will be to add some light into my friend's life. The light bulbs in our dorm are very old and not very bright, making it hard to see yourself in the mornings. This project will setup a micro controller with a light and an ultrasonic sensor above my friend's mirror. As they stand in front of the mirror, the light should turn on, giving a better view for makeup and clothing.

Created: January 25th, 2018

0

Problem Statement

Lighting in our dorms is terrible. It can get very difficult to do makeup, groom, or even see the actual colors of your outfit throughout the day. Things need to brighten up.

Goal

Add a light to the dorm mirror so that the mirror can actually be used. In this case, rather than a push button, the system relies on a passive method of activation with a motion sensor. If the sensor detects someone in front of it, it will light up for a short time, renewed with more movement. This solution also doubled as a non-invasive night light that both roommates appreciate.

Parts:

-Arduino

-PIR sensor

-6 FLood LEDs

-Loose Wire

-USB A to B Cable

-USB A to Wall Adapter

0
0
// Yosser D'Avanzo
// MirrorLight.ino

int LEDpin = 9;
int IRpin = 10;
int delayms = 750;

void setup() {
  pinMode(LEDpin, OUTPUT);
  pinMode(IRpin, INPUT);

  Serial.begin(9600);
}

void loop() {
  int movement = digitalRead(IRpin);
  analogWrite(LEDpin, 0);
  Serial.println(movement);
  if( movement == 1 )
  {
    analogWrite(LEDpin, 255);
    delay(delayms);
  }
  else
  {  
    analogWrite(LEDpin, 0);
    delay(delayms);
  }

}
Click to Expand
x
Share this Project

Courses

49313 Designing for the Internet of Things (Undergrad)

· 22 members

A hands-on introductory course exploring the Internet of Things and connected product experiences.


Tools
About

The goal of this project will be to add some light into my friend's life. The light bulbs in our dorm are very old and not very bright, making it hard to see yourself in the mornings. This project will setup a micro controller with a light and an ultrasonic sensor above my friend's mirror. As they stand in front of the mirror, the light should turn on, giving a better view for makeup and clothing.