PIR Motion Sensor LED Ceiling Light – Arduino Compatible

  • Rajkumar Sharma
  • 2.170 Views
  • moderate
  • Tested
  • SKU: EL106732
  • Quote Now

This motion sensor LED ceiling light board has been designed using 4 white LEDs each of 1-3W, PIR sensor module, Atmega328 microcontroller, low ohm IRLR7843 MOSFET, and few other components. The PIR sensor detects the infra-red rays emitted by human motion within the detection area and switches on the 4 white LEDs for 10 seconds.  The project helps in energy-saving applications and new green building projects. Detecting distance: 1 to 20 feet. Detecting angle: 360 degrees. Installation height 2-15 feet. 2 mounting holes are provided to mount this board. It is advisable to use this board indoors.

The operation of this circuit is simple, the motion sensor provides a TTL output pulse when it detects the human presence, then the ATmega328 microcontroller detects the trigger on digital in D12 and sets the digital pin D3 high for 10 seconds, this high signal triggers the MOSFET which drives power to 4 LEDs in parallel. Resistors R2 and R5 act as current limiting resistors, U1 is a 5V regulator that provides 5V DC to the microcontroller and sensor from an input supply 12V DC. The operating power supply is 9-12V DC and its draws 500mA of current. The project tested with 3W white LEDs, but any other LED can be used, but take care of current limiting resistor R2 and R5 respectively to LEDs current requirements. CN1 4 pin male header is provided for power input, CN2 SIP8 connector provided for bootloader burning and programming using Arduino IDE.

Programming the Atmega328 

The project is Arduino compatible and can be used in many lighting applications. You will have to just write your own code and program it to Atmega328. Example Arduino code is provided to help you to test the project. The code will turn the LEDs ON for 10 seconds when it detects human motion and may repeat if still motion is detected again. The user may easily increase the LED on time in Arduino Code. Arduino digital pin D12 connected to the PIR sensor module and D3 drives the LEDs.

Note:A  new Atmega328 Microcontroller requires Bootloader and Code uploading, SIP8/CN2 connector provided for both, more information is available here

Please refer to the programming connection diagram above to program the board. Arduino example code is available at the download link at the end of the page.

PIR Motion Sensor

PIR sensors are used to detect motion from pets’ humanoids from about 20 feet away. The operating principle of such sensors is straightforward: a crystalline sensing element generates an electric charge when exposed to infrared radiation, such as body heat. The more infrared radiation present, the higher the voltage generated. A Fresnel lens is used to focus the infrared radiation on the sensor, and an onboard amplifier boosts the signal and trips an output if it starts changing too rapidly.

More info about the PIR sensor available here: https://www.seeedstudio.com/PIR-Motion-sensor-module-p-74.html

Features

  • Power Supply 9-12V DC
  • Current consumption 500mA
  • On Board 4 x 3W White LEDs
  • PCB diameter: 44.6 mm

Schematic

Parts List

NO.QNTY.REF.DESC.MANUFACTURERSUPPLIERSUPPLIER PART NO
11CN14 PIN MALE HEADER 2.54MM PITCHSULLINSDIGIKEYS1011EC-40-ND
21CN2PIR SENSOR MODULECHINA ADAFRUITPRODUCT ID: 189
33C1,C5,C610uF/16V SMD SIZE 1210YAGEODIGIKEY
42C2,C40.1uF/50V SMD SIZE 0805YAGEODIGIKEY
51C347uF/16V SMD SIZE 1210YAGEODIGIKEY
62C7,C822PF/50V SMD SIZE 0805YAGEODIGIKEY
74D1,D2,D3,D4LED WHITE LED 1 TO 3WCHINA AMAZON
81SIP88 PIN MALE HEADER 2.54MMSULLINSDIGIKEYS1011EC-40-ND
91Q1IRLR7843INFINIONDIGIKEY
101R110K 5% SMD SIZE 0805YAGEODIGIKEY
112R2,R547E 5% SMD SIZE 0805YAGEODIGIKEY
121R310E 5% SMD SIZE 0805YAGEODIGIKEY
131R41M 5% SMD SIZE 0805YAGEODIGIKEY
141U1LM78M05 DPAKTEXAS INTRUMENTSDIGIKEYLM78M05CDTX/NOPBCT-ND
151U2ATMEGA328TQPF-32MICROCHIPDIGIKEYATMEGA328PB-AN-ND
161X116MhzECS INCDIGIKEYX1103-ND

Connections

LED Details

Gerber View

Photos

Video


IRLR7843 Datasheet

Please follow and like us:
Pin Share

PCB

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

RELATED PROJECTS

TOP PCB Companies