Project showcase
Night Light Assistant

Night Light Assistant © MIT

Leds activated by a PIR module. Placed under the bed it's quite effective . This device assists people waking up night-time.

  • 4,870 views
  • 9 comments
  • 23 respects

Components and supplies

Apps and online services

About this project

NIGHT LIGHT ASSISTANT

I have developed this project mainly for fun. It has a useful purpose too: help those who wake up night time to see things around them with a soft and filling light. Who needs to go to the bathroom or any other home-room can successfully use my device. For my own one I implemented blue LEDs but you can choose any color on your own! Have fun!

Code

Night Light AssistantC/C++
Night Light Assistant Code
const int BLUE_LED_N1 = 12;
const int BLUE_LED_N2 = 11;
const int BLUE_LED_N3 = 10;
const int BLUE_LED_N4 = 9;
const int BLUE_LED_N5 = 8;

const int PIR_MODULE = 7;
const int LIGHT_SENSOR = 6;

const int LEDS_NUMBER = 5;
int leds [LEDS_NUMBER] = {BLUE_LED_N1, BLUE_LED_N2, BLUE_LED_N3, BLUE_LED_N4, BLUE_LED_N5};

void setup() {
  // put your setup code here, to run once:
  for(int i=0; i<LEDS_NUMBER; i++){pinMode(leds[i], OUTPUT);}
  pinMode(PIR_MODULE, INPUT);

}

void loop() {
  if(digitalRead(PIR_MODULE)==HIGH)
  {
    for(int i=0; i<LEDS_NUMBER; i++)
    {
      digitalWrite(leds[i], HIGH);
    } delay(20000);
  }
  else
  {
    for(int i=0; i<LEDS_NUMBER; i++)
      {
        digitalWrite(leds[i], LOW);
      }
  }
}

Schematics

Night Light Assistant
Schematics for the project
night_light_assistant_85h40MWfbW.fzz

Comments

Similar projects you might like

Motion Activated Night Light

Project tutorial by Haziq Afandi

  • 3,113 views
  • 0 comments
  • 4 respects

Neopixel Motion Activated Night Light

Project tutorial by Becky Ellis

  • 2,492 views
  • 4 comments
  • 9 respects

RobotGeek PIR Motion Sensor Night Light

Project tutorial by Team RobotGeek Projects Team

  • 1,502 views
  • 1 comment
  • 6 respects

Controlling Arduino by Voice (Say open to light the LED)

Project tutorial by Team Blue Hybrids

  • 3,695 views
  • 0 comments
  • 10 respects

Ambient Light Sensor Using Photo Resistor and LED Lights!

Project tutorial by DCamino

  • 3,367 views
  • 4 comments
  • 17 respects

LEGO-Compatible Night Light

Project tutorial by Lunchbox Electronics

  • 2,369 views
  • 2 comments
  • 16 respects
Add projectSign up / Login