Positive Differential
Positive Differential
This project is composed 4 PIR sensors and a servo motor, all of which are
controlled by the arduino, atmega 328P based microcontroller.PIRs are basically
made of a pyroelectric sensor, which can detect levels of infrared radiation.
When a warm body like a human or animal passes by, it first intercepts one half
of the PIR sensor, which causes a positive differential change between the two
halves. When the warm body leaves the sensing area, the reverse happens,
whereby the sensor generates a negative differential change. These change
pulses are what is detected.
This electrical pulse is detected and processed by arduino with the digital.read function, this in turn
sets the position of the servo by digital.write function, along the PIR sensor from which the motion
change is detected.
The camera is mounted over the base, controlled by the servo motor, hence , whenever the atmega
328P microcontroller inside arduino board reads any motional change in form of electric pulse produced
by the PIR, it instructs the servo to align the camera along the motion detection.
WIRING:
The wiring for this project is simple and straightforward, we have used the HC-
SR501 model PIR sensors for this project. Each PIR sensor needs to be
connected to a digital input (2-6) on the Arduino, 5V power, and ground.
The servo motor is attached to the stand where the camera sits, and rotates
the camera to align with the active PIR sensor. Using the pinout of the servo
motor,we have connected one pin to power, another pin to the Arduino digital
input 7, and the last pin to ground. Before powering the Arduino, we made
sure to connect a 100F capacitor between the power and ground of the
motor to help protect the board from the power surges that occur when the
motor moves.