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.

    UPDATE: Replaced my PIR-Sensor with a Doppler Microwave Sensor.

    Scheduled Pinned Locked Moved Tutorials
    103 Posts 17 Posters 108.2k Views 25 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.
    • FoziF Offline
      Fozi Project Sponsor @bachoo786
      last edited by

      @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 0_1578041639036_41a3b8fa-8272-448b-8e93-36c6fb58809d-image.png )
      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.

      HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

      B 2 Replies Last reply Reply Quote 0
      • B Offline
        bachoo786 @Fozi
        last edited by

        @Fozi ok will do thanks.

        1 Reply Last reply Reply Quote 0
        • B Offline
          bachoo786 @Fozi
          last edited by

          @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.

          FoziF 1 Reply Last reply Reply Quote 0
          • FoziF Offline
            Fozi Project Sponsor @bachoo786
            last edited by

            @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.

            HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              bachoo786 @Fozi
              last edited by

              @Fozi nope none of them worked for me very surprising.

              lavolp3L 1 Reply Last reply Reply Quote 0
              • lavolp3L Offline
                lavolp3 Module Developer @bachoo786
                last edited by

                @bachoo786 Same for me. Couldn’t get neither MMM-PIR nor MMM-PIR-Sensor to work, but on a Raspi3B+

                How to troubleshoot modules
                MMM-soccer v2, MMM-AVStock

                1 Reply Last reply Reply Quote 0
                • FoziF Offline
                  Fozi Project Sponsor
                  last edited by

                  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)

                  0_1578316205071_Bildschirmfoto 2020-01-06 um 14.08.17.png

                  HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

                  lavolp3L 1 Reply Last reply Reply Quote 0
                  • lavolp3L Offline
                    lavolp3 Module Developer @Fozi
                    last edited by

                    @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…

                    How to troubleshoot modules
                    MMM-soccer v2, MMM-AVStock

                    FoziF 1 Reply Last reply Reply Quote 1
                    • FoziF Offline
                      Fozi Project Sponsor @lavolp3
                      last edited by

                      @lavolp3 great!

                      HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

                      1 Reply Last reply Reply Quote 0
                      • hedmikH Offline
                        hedmik
                        last edited by

                        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
                        				
                        			}
                        		},
                        
                        hedmikH 1 Reply Last reply Reply Quote 0
                        • hedmikH Offline
                          hedmik @hedmik
                          last edited by

                          @hedmik sorry, my bad, i was editing config in another pi…
                          Now it’s working now as it should :-)

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @hedmik
                            last edited by

                            @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…

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            hedmikH 2 Replies Last reply Reply Quote 0
                            • FoziF Offline
                              Fozi Project Sponsor
                              last edited by

                              You made my day, guys! 🤣

                              HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

                              1 Reply Last reply Reply Quote 0
                              • hedmikH Offline
                                hedmik @sdetweil
                                last edited by hedmik

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • hedmikH Offline
                                  hedmik @sdetweil
                                  last edited by

                                  @sdetweil :rolling_on_the_floor_laughing:
                                  Yes, i’ve built two mirrors and now working on my third bathroom mirror and with x number of files open in Notepad++ it’s getting messy…and even if you can see the file name and it’s location (host name) you end up editing elsewhere :dizzy_face:

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    devmil
                                    last edited by

                                    What type of mirror glass do you all have?

                                    I have a Pilkington Mirropane Chrome Spy and to me it seems that this type of Mirror glass interferes with the RCWL-0516.

                                    When doing tests (mirror glass taken off) the sensor works as expected but as soon as I put the mirror glass back it stops working through the glass.
                                    Waving my hand at the side still works.

                                    Greetings
                                    Michael

                                    FoziF hedmikH 2 Replies Last reply Reply Quote 0
                                    • FoziF Offline
                                      Fozi Project Sponsor @devmil
                                      last edited by Fozi

                                      @devmil I have the same mirror, but 4mm thick, and it works really well. Thickness shouldn’t be an issue, because the sensor is easily able to detect motions in adjacent rooms separated by stone walls. I‘d suggest to increase slightly the sensitivity by increasing the trimmer value.

                                      Further check the soldering joints between trimmer and sensor. Maybe they need to be reworked so that the solder provides a proper connection.

                                      HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

                                      1 Reply Last reply Reply Quote 0
                                      • hedmikH Offline
                                        hedmik @devmil
                                        last edited by

                                        @devmil Hi Michael, i’ve been testing with d-c-fix mirror-effect privacy film and acrylic oneway mirror and both is interfering the PIR sensor so i had to put in a small box above the frame. Not a fancy design though…
                                        For the acrylic i have spare place beneath the screen so i drilled a hole.
                                        For the upcoming bath mirror i’ve ordered a Pilkington MirrorView. Don’t know yet if it will work with the sensor behind that glass though…otherwise i’ll put in a separate place/box. Hard to drill the glass and wouldn’t dare trying :-|

                                        1 Reply Last reply Reply Quote 0
                                        • uros76U Offline
                                          uros76
                                          last edited by

                                          This is just amazing and pity I didn’t see it before I went into PIR usage.
                                          If I put aluminum insulation on one side of sensor, can anyone confirm this can be used as 180-degree use?

                                          My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

                                          FoziF 1 Reply Last reply Reply Quote 0
                                          • FoziF Offline
                                            Fozi Project Sponsor @uros76
                                            last edited by

                                            @uros76 the detection range will very likely be more than 180 degree, as the emission characteristic is more or less spherical. Further, the detection range depends also on the layout of your rooms, walls etc. Just give it a try and see what the result is.

                                            HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

                                            1 Reply Last reply Reply Quote 1

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 3 / 6
                                            • First post
                                              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