SOLVED Countdown timer continuously return to start without any movement in front of PIR sensor
I have a problem with PIR functionalities (I am using it in GoogleAssistant module). Timer is continuosly return to start (for example from 0:57 back to 1:00 (when I have one minute timer for monitor sleep time)) and when I look to log, it shows as sensor identified movement (it shows [PIR] Detected presence (value: 1)) but I didn’t do any movement in front of sensor. I tried to de-allocate all other modules, but without any progress. When I tried to read values from sensor in my own python code, it worked well. Where should be the problem?
There are some parts from log with PIR parts:
[25.11.2021 23:47.09.424] [LOG] [PIR] Sensor read value: 0
[25.11.2021 23:47.20.630] [LOG] [PIR] Sensor read value: 1
[25.11.2021 23:47.20.632] [LOG] [SCREEN] Restart.
[25.11.2021 23:47.20.635] [LOG] [PIR] Detected presence (value: 1)
[25.11.2021 23:47.21.707] [LOG] [PIR] Sensor read value: 0
[25.11.2021 23:47.26.177] [LOG] [PIR] Sensor read value: 1
[25.11.2021 23:47.26.178] [LOG] [SCREEN] Restart.
[25.11.2021 23:47.26.180] [LOG] [PIR] Detected presence (value: 1)
[25.11.2021 23:47.27.256] [LOG] [PIR] Sensor read value: 0
[25.11.2021 23:47.39.144] [LOG] [PIR] Sensor read value: 1
[25.11.2021 23:47.39.147] [LOG] [SCREEN] Restart.
[25.11.2021 23:47.39.150] [LOG] [PIR] Detected presence (value: 1)
[25.11.2021 23:47.40.223] [LOG] [PIR] Sensor read value: 0
[25.11.2021 23:47.44.154] [LOG] Shutting down server…
Thank you very much,
Milan Tousek, Czech Republic
Actually, don’t know what can happen,
- maybe sensitivity to high ?
- maybe nearby heat source (infrared detected) ?
- maybe need a filter or shielded wiring ?
- maybe bad connect GPIO input ? (gpio is the BCM-number of the sensor pin)
- maybe another program force level GPIO to high ?
No problem in my case, Last presence display reality (sample when I Go work, and back)
Thank you for your reply, meantime I discovered that problem is with interference between Raspberry Pi 4B and its wi-fi adapter and PIR sensor, because I de-activate wi-fi and everything worked fine. Problem will not be in your module. I will try to shield sensor with tinfoil and I found some Vcc filtering between Vcc and Gnd on PIR sensor (capacitators between Vcc and Gnd near sensor). If I will solve it, I will put here, what is the problem.
Hello, I solved my problem, it was a problem of interference wifi module of RPi and sensor, I solved it by hw Vcc filter based on this scheme: https://forum.mysensors.org/assets/uploads/files/1560114331946-c4ca7289-112c-4d3e-88c8-9aeea62ec2b9-image.png
I used 1x 10nF capacitators, 1x 100nF capacitator and 1x 10uF electrolitical capacitator (all between Vcc and Gnd) and 1x 10nF capacitator between SIG and Gnd and 1x 10kOhm resistance to SIG. There is no problem in your module. You can mark this thread as solved. Thank you for your support, I have sent small donation
like I says all time… when all wants to works…
Thx for donation
Happy use !