Motion Sensor Activated Light With Automatic Brightness Adjustment | Arduino + PIR + LDR

My room light was controlled using a RF remote based relay. It was actually a dumb system always I miss place the remote and some times my son will take the remote and run.

So today I am planning to put an end this struggle. In this project, we are going to make a PIR based motion sensor activated light and using an LDR (photoresistor) to automatically adjust the brightness of the light ie at night the light will be in full brightness and in the morning if the sunlight is low then the light will automatically turn on with a suitable brightness if motion is detected.

Video

Hardware Required

ComponentsAmazonamazonAliExpressali expressBanggoodbanggood
Arduino Nanocart iconcart iconcart icon
LDR (photoresistor)cart iconcart iconcart icon
PIR Motion Sensorcart iconcart iconcart icon
TIP120 Transistor cart iconcart iconcart icon

Circuit

circuit for Motion Sensor Activated Light With Automatic Brightness Adjustment | Arduino + PIR + LDR
circuit
  • Connect GND to Arduino GND, PIR GND, and Emitter of TIP120.
  • Connect 5v to one of the terminals of LDR and VCC of PIR.
  • Connect the other terminal of LDR to pin A7 of Arduino.
  • Connect the OUT of PIR to pin D2 of Arduino
  • Connect the Base of TIP120 to Arduino pin D3 via a 1k ohm 1/4w resistor.
  • Connect a 10k ohm 1/4w resistor from pin A7 of Arduino to the GND.
  • Finally, connect the negative of Light to the Collector of TIP120 and positive of Light directly to the 12v supply.
  • Also, don’t forget to give power to Arduino.
Motion Sensor Activated Light With Automatic Brightness Adjustment | Arduino + PIR + LDR
Installed for my room 12v LED light

Code

Leave a Comment

Your email address will not be published. Required fields are marked *