How to make Motion Sensor Light: Building a Custom PIR Circuit with Arduino

This project automatically turns on a light when someone enters a room or passes by. It uses a PIR (Passive Infrared) sensor to detect motion and then switches on a bulb or LED.


Key Components Required

  1. Arduino UNO board ►https://amzn.to/3opv2lP
  2. 10KΩ resistor ►https://amzn.to/3fqfeLl
  3. 16MHz oscillator ►https://amzn.to/33PvYGG
  4. 22pf Capacitors-(2) ►https://amzn.to/3bA7N3n
  5. PIR sensor ►https://amzn.to/33T10gJ
  6. 5v DC supply/battery
  7. 5v relay ►https://amzn.to/3fp8uxv
  8. BC547 transistor ►https://amzn.to/3bzNItW
  9. AC Plug & Bulb holder ►https://amzn.to/2T0bhWn
  10. Led Light ►https://amzn.to/3tW2hyh
  11. IN4007 diode ►https://amzn.to/33T2MOV

PIR Sensor Connections

PIR Sensor PinATmega328P Pin
Out (Signal)Pin 4 (Digital Pin D2)
VCC (Power)Pin 7 (VCC / +5V)
GroundPin 22 (GND)

Working

  • The PIR sensor detects heat from a moving person.
  • This signal goes to the Arduino, which processes the motion detection.
  • When motion is detected, the Arduino activates the transistor.
  • The transistor switches on the relay, which then turns on the bulb or LED.
  • When no motion is detected anymore, the relay turns off, and the light goes out.

Watch the full video tutorial here: How to make a Motion Sensor Light at Home | PIR sensor | Arduino | Using Arduino chip on Zero PCB

More Articles & Posts