Hi Sam, I have now taken the instructions from you
https://pimylifeup.com/raspberry-pi-motion-sensor/ and have gone through them step by step.
I am using pin 15 (Gripo22)
I then edited the motion_sensor.py and entered pir_sensor = 15.
I simply ignored the piezo =7 entry as I only want to connect the PIR. So I really only entered pir_sensor = 15.
I have now entered the following in Config.js
{
module: 'MMM-Pir',
position: 'top_left',
config: {
debug: false,
delay: 1 * 60 * 1000,
turnOffDisplay: true,
mode: 1,
ecoMode: true,
displayCounter: true,
displayBar: true,
displayStyle: "SemiCircle",
displayLastPresence: true,
lastPresenceTimeFormat: "LL H:mm",
mode6_gpio: 22,
mode6_clearGpioValue: true,
pir_gpio: 22,
pir_reverseValue: false,
xrandrForceRotation: "normal",
wrandrForceRotation: "normal"
}
},
But I don’t have the feeling that the PIR is really reacting to my movements. I can stand in front of it or tap it with my finger, but the screen doesn’t wake up.
But strangely enough, the screen does wake up from time to time, which I don’t think is due to the PIR.
where is my mistake or am I using the following entry incorrectly? What is the purpose of the two entries?
mode6_gpio: 22,
mode6_clearGpioValue: true,
pir_gpio: 22,
pir_reverseValue: false,
As you can see the countdown runs down and goes back to full time but I have no idea why. I don’t think it’s because of the PIR… I can fiddle with it as much as I like… The time doesn’t change