• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Replacing Radar Sensing module (RCWL-0516) in place of PIR Sensor

Scheduled Pinned Locked Moved Forum
8 Posts 2 Posters 1.1k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    Rags
    last edited by Nov 24, 2022, 10:36 AM

    Hello dear forum members,
    MMM-PIR Sensor, module uses a PIR sensor (HC-SR501) to control the MM to turn OFF and turn ON display. I was wondering if the PIR sensor can be replaced with an RCWL-0516 Radar sensor module which ideally also detects motion. The PIR sensor and RCWL module have the similar connections of Vcc , Gnd and Out. So on detection of motion the RCWL would drive the Out signal which will be same as the PIR sensor. The PIR sensor can be tuned for distance and delay but not so in case of RCWL. The RCWL detects motion between 5 to 7 mtrs.
    The question is will it work with the existing code of the MMM-PIR sensor with no changes?

    Thanks

    W 1 Reply Last reply Nov 24, 2022, 1:07 PM Reply Quote 0
    • W Offline
      wishmaster270 Module Developer @Rags
      last edited by Nov 24, 2022, 1:07 PM

      @Rags Hi,

      I use this type of sensor for motion detection. Currently not connect to the mirror directly but I used it for years as PIR replacement.
      It should work out-of-the-box with any PIR module.

      R 1 Reply Last reply Nov 29, 2022, 12:12 PM Reply Quote 1
      • R Offline
        Rags @wishmaster270
        last edited by Nov 29, 2022, 12:12 PM

        @wishmaster270 Okay, so i got an RCWL circuit module board and replaced it with the PIR sensor. It does work “out of the box”, with the MMM-PIR module, BUT there is a limitation, the monitor switches “ON” on detection of motion, but switches off immediately(2 seconds) after motion detection. The pin is high only as long as the motion exists. Is there a way to keep the monitor ON for some time duration, like the delay adjustment in PIR sensor.?
        Some websites have suggested to increase the capacitor value on the module which can provide delay upto 40 seconds. However, need a software configurable option if possible.

        W 1 Reply Last reply Nov 29, 2022, 7:10 PM Reply Quote 0
        • W Offline
          wishmaster270 Module Developer @Rags
          last edited by wishmaster270 Nov 29, 2022, 7:32 PM Nov 29, 2022, 7:10 PM

          @Rags Hi, I don’t use the Pir module you mentioned so do not know if there is a option to control the behaviour.
          You can use my GPIO module in combination with my screensaver module to do the job. I wrote a howto to do this https://github.com/Tom-Hirschberger/MMM-GPIO-Notifications/blob/master/examples/HC-SR501/HC-SR501-GPIO4-README-EN.md.

          R 1 Reply Last reply Nov 30, 2022, 1:25 PM Reply Quote 1
          • R Offline
            Rags @wishmaster270
            last edited by Nov 30, 2022, 1:25 PM

            @wishmaster270 Thanks for the info. However, i have a small query,
            The PIR sensor has a configurable time delay which keeps the Pin “high” even after no motion is detected. However, the RCWL has no such provision.
            In the config, is the delay value* for keeping the monitor “ON”, independent of the PIR time delay ? If it is so then once the RCWL detects motion the pin will be ‘high’ momentarily then go ‘low’. But the delay should keep the monitor ‘ON’ as per value(in seconds).
            Please confirm if my understanding of the function is correct.
            {
            module: ‘MMM-Screen-Powersave-Notification’,
            config: {
            delay: 60, “*THIS VALUE”
            profiles: {
            “pageOneEverone pageTwoEveryone”: 600
            }
            }
            }

            W 1 Reply Last reply Nov 30, 2022, 4:40 PM Reply Quote 0
            • W Offline
              wishmaster270 Module Developer @Rags
              last edited by Nov 30, 2022, 4:40 PM

              @Rags Hi and correct.
              The screen save module has a counter that will be counted to zero. If zero is reached the monitor will be shut off.
              If the GPIO is triggered (because of the motion sensor) it sends a notification to the screen module. If the monitor is turned off it will be set on and the timer is reset. If it is on only the timer is resetted.

              R 1 Reply Last reply Dec 1, 2022, 5:32 AM Reply Quote 0
              • R Offline
                Rags @wishmaster270
                last edited by Dec 1, 2022, 5:32 AM

                @wishmaster270 Wow and thanks once again. Mission successful. I installed and configured the RCWL-0516 Radar sensor successfully with your modules as described by you. It was very smooth going with no hiccups. Now the MM is decluttered with no PIR sensor sticking out of the frame. The radar sensor has been conveniently placed behind the mirror and it is working perfectly through the glass. As the delay is configurable i am able to set it as per my requirement.
                Thanks.

                W 1 Reply Last reply Dec 1, 2022, 1:15 PM Reply Quote 0
                • W Offline
                  wishmaster270 Module Developer @Rags
                  last edited by Dec 1, 2022, 1:15 PM

                  @Rags You are welcome. Great if it works.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    5/8
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy