Automatic Bed Light for Aged Ones

by Ajith_V_Anil in Circuits > Arduino

714 Views, 4 Favorites, 0 Comments

Automatic Bed Light for Aged Ones

Capture.JPG

This is a bed light. But it is a special one. It is made for old ones in our home. When they wake at night for going to the toilet the have difficulty in reaching the switch. this project with helping them. So let's get started...

Supplies

#Arduino (any)

#PIR sensor

#Relay module

#bulb

#Some wires

Circuit

Capture.JPG

So, first of all, we need a circuit Which controls the Bulb using a PIR sensor. You can find my circuit from the link below or the picture.

Click this to see this project in tinkercad

Wiring

  • D11 of Arduino to Signal pin of PIR
  • D5 of Arduino to Signal pin of Relay
  • Power form Plug Point to BULB and Relay
  • GND from Arduino to GND of PIR and Relay

Code

float x;
void setup()
{
  pinMode(11,INPUT);
  pinMode(5,OUTPUT);
  
  Serial.begin(9600);
}
void loop()
{
  x= digitalRead(11);
  
  Serial.println(x);
  
  if ((x>0))
  {
    digitalWrite(5,HIGH);
    delay(5000);
  }
  else
    digitalWrite(5,0);
}

New Problem Arise

While doing this project I have faced a serious problem. That is the Placement of a PIR sensor in a room. PIR will sense all the Disturbance by a human or a substance emitting IR radiation. So we cannot place it anywhere because it is used in the night.

At last, I have solved it.

Solution for the Problem

How To Install Automatic Bulb?ഈ ഓട്ടോമാറ്റിക് ബൾബ് എങ്ങനെ വീട്ടിൽ ഉപയോഗിക്കാം THEBACKYARDELECTRICKS

By placing it under the bed. we can solve it. it works fine for me.

This video is in Malayalam my mother tongue.

Working

working is simple,

The Circuit is under the bed so when we wake up and down our legs. The PIR sensor will sense it and give a signal to the Arduino. The Arduino will give a signal to the Relay. The relay will Trigger and light up the Bulb.

Thank for Your Time .