I noticed that the PIR sensor would take about 35 seconds to be able to sense motion once the time setting turns off the LED.
What is the reason for the code to have such a long delay
Hi.
It shouldn’t have such long delay.
Which PIR motion sensor are you using?
Regards,
Sara
Hi Sara,
Thanks for your prompt response.
I don’t have the mini-PIR unit as shown in the example but have the HC-SR 501 that I have acquired as part of an Arduino training kit.
What would be the typical delay?
I also noticed that the program would turn off the LED on set time, despite me frantically waiving to the PIR and have to wait for the 35 sec lapse before the program would respond to the motion. I can imagine if one should go into a dark room and have the same experience.
Perhaps the example should also demo PIR use in its practical use?
Hi.
That PIR motion sensor comes with two little orange potentiometers.
The first potentiometer, labeled as “Sensitivity” or “Range,” controls the detection range of the sensor. By adjusting this potentiometer, you can set the sensor’s sensitivity.
The second potentiometer, labeled as “Time Delay” or “Duration,” controls the duration of the output signal. This is the potentiometer you need to adjust to change that delay time.
I hope this helps.
Regards,
Sara
Hi,
Sara,
I adjusted the time Potentiometer to max. The 35 second delay is very much shortened.
If i keep waiving at the sensor, LED remains on all the time.
I could further improve it increasing the sensitivity of the PIR on the other potentiometer.
I suppose the PIR model I have is sued with standard lighting unit that provides a low voltage signal to the PIR when power is supplied to the lamp, the timer potentiometers are tweaked to get the desired sensitivity and “Light ON” duration.
Issue resolved and closed.
Thanks
Thanks.