Arduino Controlling Multiple P.I.R Sensor on Same Bord

by hackplague in Circuits > Arduino

11463 Views, 13 Favorites, 0 Comments

Arduino Controlling Multiple P.I.R Sensor on Same Bord

20190901_141801.jpg
20190901_145338.jpg
20190901_145354.jpg
20190901_145405.jpg
20190901_145430.jpg
20190901_145526.jpg
20190901_145545.jpg
20190901_145605.jpg
20190901_145615.jpg
20190901_145625.jpg
Arduino Controlling Multiple P.I.R Sensor on Same Bord

Today I will tell you how to connect multiple PIR Sensors with single Arduino Bord

>here i have also used 4 channel relay module for some extra functionality.

ARDUINO + 4 Channel Relay Module + 4 PIR Sensor (OR You can used as many pin your arduino has )

Hardware Required

20191119_101242.jpg
20191120_121032.jpg
20191120_120937.jpg

Hardware Connection

4 Pir Sensor Control Fit_bb.png

Arduino________________TO_____________________PIR SENSORS(PIR1,PIR2,PIR3,PIR4)

Arduino PIN 3........................................PIR1-output pin

Arduino PIN 4........................................PIR2-output pin

Arduino PIN 5........................................PIR3-output pin

Arduino PIN 6........................................PIR3-output pin

Arduino 5v..............................................PIR1,PIR2,PIR3,PIR4(VCC )//connect all Vcc pin of pir1, pir2 , pir3 , pir4

//to the Arduino 5 v

Arduino GND..........................................PIR1,PIR2,PIR3,PIR4(GND )

ARDUINO________________TO________________________REALY MODULE

Arduino PIN 9.................................................................IN1 RELAY

Arduino PIN 10.................................................................IN2 RELAY

Arduino PIN 11...............................................................IN3 RELAY

Arduino PIN 12................................................................IN4 RELAY

Arduino GND..................................................................Relay GND

Arduino Vin.....................................................................Relay VCC

12 v -2A Power Supply .................................................to...........................................Relay Model 12v Input &GND (Some Relay Module Does not have 12 v power input so you need a 12 v to 5 v converter ......or you can distribute power by yourself .

Programming Part

Here Programming is most important part

while in this project I face lots of problem in programming only.

  • here i have used a Arduino internal pulled up resistor
  • I used (IF-Statement) Without else Statement for stability

If you face any problem do not forget to comment