Read the statement by Michael Teeuw here.
PIR Sensor won't wake up
-
@sceetch Which Raspberry Pi board are you using?
-
@dbg i’m using Raspberry Pi 3 Modell B Plus (B +)
I have no idea whats wrong.
I can change the delay time value randomly. There is no effect. After exact 2 minutes the screen turn off.Could it be, there is something activated in the tvservice?
-
@sceetch off is because the module does this no motion was detected
-
Hi
I installed the MMM-PIR-Sensor last week and I had a similar problem. I just couldn’t get the sensor to work with the module. I spent a lot of time and tried a few different things and nothing worked… in the end I updated the wiringPi GPIO access library (I’m using a Pi 4 Model B).
See here:
http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/
And now it’s working OK. I’m not saying this will fix your problem. It may be that an install I did overwrote the wiringPi files on my Pi or rolled them back in some way, but it worked for me.
Regards
dbg62
-
@sceetch also i think u need to make sure the sensor actually works
https://projects.raspberrypi.org/en/projects/parent-detector/3
-
@sdetweil thx for your comment.
I guess the sensor works.
If i start this script, the sensor switch after 2 minutes off.
If the sensor receives movements, the screen turn on, so i think it works. But i will test your script in the evening.If there is no movement registered from the sensor the screen switch on after 1 minute.
I don’t understand why the countdown is 2 min? In the script the delay time is setted by 10 sec.
And why the screen turns on after another one minute. If there is no signal from the sensor??
-
@sceetch the sensor must be detecting heat difference. its very sensitive. the dial .ust be set to about 2 minutes, since last movement…
there is a jumper on some of the boards that changes how long it holds the signal active since movement.
-
@sdetweil
Hi sdetweil, this was a good hint. I think the problem are the adjustments of the sensor itselfs. the time values in my previous post changed now. But the problem still exists.The reason why the screen wake up without movement is, the overlapping of signals. there is one delay in the script, but also one of the Sensor. If the script turns off the screen and the sensor gives also a signal regarding the time delay a little later, the screen will turn on again. so my opinion.
But what is now the best adjustment of it?
is it possible to inactivate the time delay of the sensor itself?In what position is the jumper to be set?
sensivity of it should be clear. thats a customized value for the different situations. -
@sceetch google to answer those questions
-
I just added a PIR sensor, and I have put jumper on “L” and the two potmeteres on low (clockwise) . This works fine.
Here you have som more information on the PIR sensor.
https://lastminuteengineers.com/pir-sensor-arduino-tutorial/
I use this module:
https://github.com/bugsounet/MMM-NewPIR
In the config, I have chaged delay from delay: 2 * 60 * 1000 // 2min to delay: 10 * 60 * 1000 //10min