Type Here to Get Search Results !

Arduino PIR Sensor Motion Detection Project Review

Looking on the project, our final project in step-3. I added a new module sensor that is called pir, it being used to detect motion, and you can see it is connect with three wires two of them are going into the power and ground and the middle one is the signal that the pir will porvide in case a motion is beeing detected and it is going into one of the digital pin in the arduino so we will be able to read it



If i will turn the pir for a second so if we will look on that, we will see two potentiometers that we can change and one of them is being used to adjust the sensitivity (the distance), and the other one is being used to setup the time that the signal will be up in case a motion is being detected. So it is also something that you can play and adjust. Ok i put that in our case to minimum, and it will be like few seconds that we will see the leds that are going to be on. For a very short time so what i will do, i will turn the system up.

We will wait that the system will finish initialization. I will open the serial monitor just to see that as a message that the system is ready, as you remember we need to put some delay time in the setup() function, to let the pir sensor to learn the system (outside environment). Because i am close to the sensor it is actually detecting my movements. If i will pass my hand of course it will turn the leds on, as you see it is being turned on for something like three seconds, maybe less, this is something that we can change, we can go into the pir potentiometer and adjust that according to our needs. And this is an example of an external module that we are going to use in all kind of projects. That we can build with the arduino system. So if i will summarize,

First we learned to connect two push buttons as digital sensors. The first one is a test button that will turn the leds on and off. The second one is running animation wave, and the two potentiometers are our analog sensors, one of them is for adjusting the speed and the other one is for adjusting the brightness of the leds, and the last one, the last piece of the puzzel is of course the pir module that provides a way to detect motion.



Post a Comment

0 Comments