Read the statement by Michael Teeuw here.
MMM-PIR-Sensor Black screen..
-
You are correct about the BCM pin numbering beck0r, it is not the same as the actual pin number (the BCM pin numbering origins from the processor pins if I am correct).
What I advise is to forget about this module and use https://github.com/cowboysdude/Pir-Sensor instead.
I made some slight changes to this myself, because it was still not turning on the monitor correctly.RUN apt-get update && apt-get install -y libraspberrypi-bin and replace the scripts from the above link as follows: monitor_on.sh contains only vcgencmd display_power 1 and monitor_off.sh only the line vcgencmd display_power 0. This solved my problem for every display I used so far, being HDMI, VGA and DVI displays.
-
Thank’s for your answer. As you have already seen I was able to solve it nealry like cowboysdude did
-
-
@Desertswing
I found out how to, i forgot to place the files in root :)
But my screen isen`t going off yet but the light bulb i attached goed on and off when motion detected?? -
fixed this one !
-
I solved the
Error: Cannot find module 'onoff'
- Error by removing thenode_modules
from the MMM-PIR-Sensor directory and reinstall them by usingnpm i
. This time, some dependencies seem to be built in with electron, and the error disappeared. -
This post is deleted!