Read the statement by Michael Teeuw here.
Problem with PIR Sensor not working
-
I just got my mirror up and running and was trying to install the PIR sensor module provided by @paviro (https://github.com/paviro/MMM-PIR-Sensor) but it doesn’t seem to be working. I followed the step by step instructions as written and still the screen does not turn off. I even stuck the sensor (still wired up) under a box and no luck.
I bought these PIR sensors (http://a.co/aYDzwAS) and am using these to plug in the sensor http://imgur.com/a/VEu0F . They are connected directly to the sensor with jumper wires.
My modification to the modules config file looks like this.{ module: 'MMM-PIR-Sensor', config: { sensorPIN: 22, powerSaving: true, powerSavingDelay: 0, relayOnState: 1 } }I also ran the command
/opt/vc/bin/tvservice -sand receive the outputstate 0x120006 [DVI DMT (68) RGB full 16:10], 1920x1200 @ 60.00Hz, progressiveOne thing I did notice is that while running through the install process, I ran
sudo chmod u+s /opt/vc/bin/tvservice && sudo chmod u+s /bin/chvtbut it saidchmod: cannot access 'bin/chvt': No such file or directoryAnyone able to help?
-
Have you confirmed the sensor itself is actually working?
Write out the following python script and run it:
import gpizero import MotionSensor pir = MotionSensor(x) //x = the out pin on your Pi. while True: if pir.motion_detected: print("Motion detected!") else: print("Nothing")And make sure you’re using the BCM pin numbering.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login