@j.e.f.f I don’t think so, but i could be off. As a second datapoint, I’m having the module run a shell script on status change, which first writes the current time to a log file, before then triggering xset or vcgencmd. I don’t think it’s vcgencmd that is causing me issue.
Read the statement by Michael Teeuw here.
Posts
-
RE: Microwave/doppler motion detection -- anyone got it to work?
-
RE: Microwave/doppler motion detection -- anyone got it to work?
@goprojojo Short answer is no.
I’ve tried the HFS-DC06, XYC-WB-D0, and the RCWL-0516 chips. I’ve tried the MMM-PIR-Sensor and PIR-Sensor modules.
Some observations:
- Some of these chips are junk. I bought a pack of 4 RCWL-0516 chips from amazon, and only 2 of them worked. The HFS-DC06 chip has two adjustable settings, but I’m not convinced they work correctly
-MMM-PIR-Sensor (paviro) seems to be less of a draw on resources. PIR-Sensor (cowboysdude) seemed simpler to me, but never worked quite as well - I do first test with the python code above, to verify that I’m getting signal. That’s a simple way to test the chips. But for whatever reason, that hasn’t translated into signal that either of the modules would act on correctly
- At one point, I thought I had it working, but I was getting a lot of false-positives. Unfortunately I didn’t have any capacitors laying around to build a pi-filter. When I got them ordered, I couldn’t recreate the false positives. Pi-filter: schematic from this [thread]
(https://github.com/jdesbonnet/RCWL-0516/issues/2). It’s simple enough to assemble on a breadboard. - At the same time, I also grabbed some ferrite beads based on this [thread].
(https://helentronica.com/2016/01/11/magic-mirror-with-motion-detector/). I figure that’s a good precaution. - Depending on how old your monitor is, shutting off and turning on the HDMI outlet may be more trouble than it’s worth. If you just want the screen to go blank, this has worked ok for me when I manually activate it:
xset -display :0 s blank && xset -display :0 dpms force off
I plan to spend some more time on it this weekend. I’ll let you know if I get it working.
- Some of these chips are junk. I bought a pack of 4 RCWL-0516 chips from amazon, and only 2 of them worked. The HFS-DC06 chip has two adjustable settings, but I’m not convinced they work correctly
-
RE: Microwave/doppler motion detection -- anyone got it to work?
I borrowed a little python script to check the status of my sensors, and it seems to show me just fine when there is motion-event (using BCM PIN 17)
I’m not sure about needing a resistor…?
#!/usr/bin/python # -*- coding: utf-8 -*- import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) PIR_PIN = 17 GPIO.setup(PIR_PIN, GPIO.IN) def MOTION(PIR_PIN): print ("Motion Detected! " + time.strftime("%H:%M:%S")) print "PIR Module Test (CTRL+C to exit)" time.sleep(2) print "Ready" try: GPIO.add_event_detect(PIR_PIN, GPIO.RISING, callback=MOTION) while 1: time.sleep(100) except KeyboardInterrupt: print " Quit" GPIO.cleanup()
-
RE: Microwave/doppler motion detection -- anyone got it to work?
I should have provided more detail. I can get the modules to work with a PIR sensor, but not a microwave sensor. It shouldn’t matter, but it seems to. That’s why I was hoping that someone had figured this out.
-
Microwave/doppler motion detection -- anyone got it to work?
Hey all – I’m trying to get automatic shutoff to work with a microwave/doppler detector. I’ve verified that two different chips work, and can be read by the GPIO. I can’t seem to get either MMM-PIR-Sensor, or Pir-Sensor to enable the ‘vcgengcmd display_power’ change. Has anyone had success?