PIR Sensor in Arduino

Arduino

PIR Sensor for ENGR 103, coded in Arduino. The sensor is a passive infrared (PIR) sensor that detects changes in infrared light. When first turned on, the sensor will need 10-60 seconds to calibrate a baseline to detect deviation off of. Once a deviation is detected, the sensor will output a digital value of "HIGH". In order for the code to read the sensor's data, a digital pin is used. Comparisons are made between the current state of the pin, and the stored previous state of the pin, If the current state is high, and the previous state was low, then we know that the sensor has detected motion. Conversely, if the sensor's current value is "LOW" and it's previous value was "HIGH", then we can logically concur that whatever motion that was detected has now ceased. The sensor checks for values according to the "delay time adjust" found on the sensor and modified via a fillips head screwdriver. The delay time adjust ranges from 0.3s to 7s. For this project it was put at 0.3s. The sensitivity of the sensor was set to 7m. The conclusions that I drew from this were that the movement is lowest when my roommate and I are either doing homework on our computers (behind the sensor) or asleep. Conversely it is highest when we are setting up to cook dinner, looking for snacks, and putting away leftovers and cookware.

0 Lifts 

Artifacts

Name Description
Arduino source Code The code that runs the sensor   Download
https://youtu.be/32eCiA5HCPs Conclusions Video   Link