Originally posted in https://diyusthad.com/2020/07/motion-light-automatic-brightness.html
My room light was controlled using an 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.
VideoCircuit- 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.
Comments