Stories
Slash Boxes
Comments

SoylentNews is people

SoylentNews is powered by your submissions, so send in your scoop. Only 9 submissions in the queue.
posted by janrinok on Thursday July 04 2024, @09:34AM   Printer-friendly

https://10maurycy10.github.io/projects/motion_sensor_hacking/

I recently got some cheap RCWL-0516 microwave motion sensors, mostly because I was wondering how China managed to make a radar for under a dollar:

Getting one working was quite easy, I just connected the VIN pin to 5 volts, GND to ground, and added a 1 uF decoupling capacitor on the 3V3 pin. When someone moves within ~5 meters, the OUT pin goes up to 3 volts for 3 seconds.

So it works, but how?

Generally, motion and speed sensing (doppler) radars work by sending out a continuous carrier and mixing the received signal with the transmitted carrier to create a low frequency IF signal. If reflections are coming from a moving object, the received signal will slowly drift in and out of phase with the transmitted signal, creating a beat frequency at just a few hertz. Because a motion sensor doesn't care about the exact speed, all the chip has to do is look for millivolt-level changes: all the hard work is already done.


Original Submission

 
This discussion was created by janrinok (52) for logged-in users only, but now has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 3, Interesting) by epitaxial on Thursday July 04 2024, @03:42PM (4 children)

    by epitaxial (3165) on Thursday July 04 2024, @03:42PM (#1363082)

    It would be great to tie these into my security cameras. The cameras record all the time but having a log of detected motion would be cool.

    Starting Score:    1  point
    Moderation   +1  
       Interesting=1, Total=1
    Extra 'Interesting' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   3  
  • (Score: 3, Informative) by RS3 on Thursday July 04 2024, @04:59PM (2 children)

    by RS3 (6367) on Thursday July 04 2024, @04:59PM (#1363085)

    Yours might be somewhat older? Most newer security camera systems can be configured to only record when there's motion in the video feed.

    I have one, only set up one camera on my front door area, and it works well. Only annoying thing is whenever the wind blows plants, leaves, branches, etc., the system records. But the playback is pretty easy and lets you skip to the next recorded event.

    If your system can not be configured to only record motion events, then yes, you might be able to tie some of these motion detectors in.

    However, you might want to check the link I provided above. In that article the author does some good analysis, including figuring out that these little motion detectors work well indoors where there's much RF reflection and activity, but they don't work well, if at all, outdoors. However, he figured out that by using two or more of them they can work outdoors. I think he modded one or both, but check it out- it's an easy read / skim.

    • (Score: 3, Interesting) by bussdriver on Friday July 05 2024, @09:49PM (1 child)

      by bussdriver (6876) on Friday July 05 2024, @09:49PM (#1363215)

      Camera motion detection takes electricity. it would be nice to combine these so the camera is off until actual interesting motion happens at which point an AI tracker could ignore cats etc.

      • (Score: 2) by RS3 on Saturday July 06 2024, @12:16AM

        by RS3 (6367) on Saturday July 06 2024, @12:16AM (#1363235)

        Reasonable point. I'm not sure how much power the camera system consumes. It may be significant. Ones I've seen, including the one I have, maybe use 20 watts or so. Mine doesn't say on it, but I'm pretty savvy with electrical things. The biggest power consumer in mine is a 1 TB spinning rust HD. It's very quiet, but I'm pretty sure it spins constantly. They could optimize power consumption by spinning it down when not needed. I'm sure better ones do.

        Again, to be clear, I agree with your point.

        I would make the point that there will be some latency if you power up the camera system. You might wish to capture some video before the motion event.

        I'll also check- it may be that some (most?) camera systems are in sleep mode until needing to record.

  • (Score: 2) by RS3 on Thursday July 04 2024, @05:01PM

    by RS3 (6367) on Thursday July 04 2024, @05:01PM (#1363087)

    Correction:

    check the link I provided above below.