Motion Sensor alarm system for detecting motion inside the car and send out warning light and sound
The motion sensor we choose is a PIR sensor ( a passive infrared sensor.) All objects on earth (except for the one, if there is any with, a temperature below absolute zero) emits heat energy, an infrared radiation that is invisible to human eye. The PIR sensor can measure infrared light radiating from objects in its view (about 12 feet in length), so it is able to sense the movement of people, animals, or other objects. The PIR sensor senses the heat with a pyroelectric material (when there is heat, the material gives off electricity.) Because the sensor does not generate or radiate any energy for detection purposes, it is called passive. Because the infrared does not penetrate glass very well, so any movement from the other side of glass can not be “seen” by PIR. It is an ideal sensor for detecting the movement inside the car, but not outside of the car. We also connect the system with an LED light to indicate the status inside the car. (When PIR detect any motion, it lights up.) A piezo speaker is also attached to the system to make a reminder sound when the driver leaves his/her seat and makes alarming sound to alert any bystander near the car.
(1) Connect a jumper wire (male to female) from Arduino Gnd to PIR Gnd
(2) Connect a jumper wire (male to female) from Arduino 5V to PIR Vcc
(3) Connect a jumper wire (male to female) from Arduino pin 8 to PIR Out
(4) Plug the LED’s longer leg into pin 13 and its shorter leg into the adjacent Gnd on Arduino
(5) Connect a jumper wire (male to female) from Arduino pin 10 to one of the piezo speaker pins (as the polarity of the speaker doesn't matter)
(6) Connect a jumper wire (male to female) from Arduino Gnd to the other piezo speaker pin
(1) Connect a jumper wire (male to female) from Arduino Gnd to PIR Gnd
(2) Connect a jumper wire (male to female) from Arduino 5V to PIR Vcc
(3) Connect a jumper wire (male to female) from Arduino pin 8 to PIR Out
(4) Plug the LED’s longer leg into pin 13 and its shorter leg into the adjacent Gnd on Arduino
(5) Connect a jumper wire (male to female) from Arduino pin 10 to one of the piezo speaker pins (as the polarity of the speaker doesn't matter)
(6) Connect a jumper wire (male to female) from Arduino Gnd to the other piezo speaker pin