Type Here to Get Search Results !

Motion Detection Using PIR Sensor

In step-1, we handled digital input and output, in step 2 we learned about analog input and how to simulate analog output, in this section, step-3 we will learn to use pir sensor that is used to detect motion. The pir sensor is a nice example of external module or breakout board that is used to extend the arduino capability, we will learn how to connect is to our project, how to read a datasheet related to that module adjust the needed thresholds and of course to write the relevant code in our sketch so we will be able to use it.





Adding Of Motion Detector PIR Sensor In Arduino Project Building Block

Back to the project building blocks, the next and final building block we would like to add to our project is a motion detector. The idea is that we will use it to detect some nearby motion movement and trigger event.

In our case the external output in our project are the 6 leds so we will use them to visual such event. Connecting this sensor is very simple however the code behind is a little bit more complicated.





Post a Comment

0 Comments