Read the statement by Michael Teeuw here.
UPDATE: Replaced my PIR-Sensor with a Doppler Microwave Sensor.
-
@lavolp3 I use MMM-PIR-Sensor without any modifications. Are you using @paviro master oder any other fork of the module?
As I see, you have more recent npm/node versions installed.
I am still on node 10.17.0 / npm 6.11.3.Edit: I’d recommend to try the script from @cowboysdude . It is robust against any node.js stuff as it written in python.
-
This post is deleted! -
@Norton said in UPDATE: Replaced my PIR-Sensor with a Doppler Microwave Sensor.:
It is important to replace the PIR sensor with a Doppler Microwave Sensor.
This spam bot is sooo right!:face_with_tears_of_joy:
-
@Fozi Hi
Can i solder pin 1 and 2 of the resistor to the radar sensor? I accidentally broke pin no 3. -
@bachoo786 yes, you can also use pin 1 and 2.
An example:
The max value of the resistor (Rmax) is between pin 1 and 3.
Between pin 1 and 2 is the restitor value R1, and
between pin 2 and 3 is the resistor value R2.Rmax = R1 + R2. (or R1=Rmax - R2, resp, R2=Rmax - R1)
Thus, you can use both options (R1 pin 1/2 or R2 pin 2/3).
-
@Fozi so I got a new radar sensor set the resistance to 80ohms which would give me around 40 to 50cm detection distance. I am using @cowboysdude script.
My mm is running on my rpi 4b 4g and at present its connected to my TV. However the rada sensor is not working as the script is meant to detect motion and if there is no motion it would turn the tv off after 20 seconds. I tried many times but have failed.
Any ideas? Or maybe my sensor is not working. Is there a simple script that I could test the sensor?
Thanks.
-
@bachoo786 First re-check if the sensor is cabled correctly to the GPIO as described in my tutorial. Further check if the resistor is soldered correctly to the sensor. Maybe there is a “cold soldering joint”. Sounds trivial, but the devil is a squirrel (old german saying
)
Then, extend the detection range to the max, to check if the sensor is generally OK (200 Ohms) and re-run @cowboysdude script. If this works, then reduce the resistor step by step until you reach the desired detection range. Theoretically 80 Ohms should provide a range of 40-50 cm, but from my experience this may vary strongly as the resistor value does not correspond linearly to the detection range. -
@Fozi ok will do thanks.
-
@Fozi Hi
I am on raspberry pi 4 and I think wiringPi does not work with it as the guy has stopped developing it any further. Is there any other way I could make this work?
Thanks.
-
@bachoo786 there exist alternative libs like piGPIO or GPIOzero, but I have no experience with them. Why not try MMM-PIR-Sensor? It is easy to install and to configure and works out of the box with the RCWL-0516.
-
@Fozi nope none of them worked for me very surprising.
-
@bachoo786 Same for me. Couldn’t get neither MMM-PIR nor MMM-PIR-Sensor to work, but on a Raspi3B+
-
Hmmm…that’s strange.
Here is my config for MMM-Pir-Sensor I use://---------------------------------------------------------------------------------------- { module: 'MMM-PIR-Sensor', config: { sensorPin: 4, powerSavingDelay: 150, // (seconds) how long the monitor will be turned on } }, //----------------------------------------------------------------------------------------And this is the wiring of the sensor with the GPIO, which corresponds to the above config. ‘sensorPin: 4’ corresponds to GPIO_4 (brown cable)

-
@Fozi The odd thing is that I didn’t even get the module installed properly. However, just tried again and it seems to work now. Maybe because of MM v 2.10.0. I don’t know…
-
@lavolp3 great!
-
More or less the same problem for me…
I’m using a velleman VMA314 connected to GPIO pin 11 (BCM GPIO 17) and module MMM-PIR-Sensor.
I’ve updated wiringPi for Pi 4 (wiringPi updated to 2.52 for the Raspberry Pi 4B)
I see that state changes using “gpio readall” but nothing happens…or to start with, connected screen does not even turn off after time set in config:{ module: 'MMM-PIR-Sensor', config: { // See 'Configuration options' for more information. sensorPin: 17, // The pin (BCM numbering, NOT pin number itself) your PIR-sensor is connected to. powerSaving: true, // Should the monitor be turned off if no user is present? (via HDMI or relay) powerSavingDelay: 5, // Additional software side delay (in seconds) before the monitor will be turned off. powerSavingNotification: true, // To display a notification before to switch screen off powerSavingMessage: "Skärmen stängs av på grund av inaktivitet..." // Message notification to display before to switch screen off } }, -
@hedmik sorry, my bad, i was editing config in another pi…
Now it’s working now as it should :-) -
@hedmik said in UPDATE: Replaced my PIR-Sensor with a Doppler Microwave Sensor.:
i was editing config in another pi
doesn’t that drive u crazy?! I have 5 devices running, and all have open editors and file managers…
in the editor I can’t tell where the file came from… -
You made my day, guys! 🤣
-
This post is deleted!
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
