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

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

Scheduled Pinned Locked Moved Tutorials
103 Posts 17 Posters 64.8k 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.
  • F Offline
    Fozi Project Sponsor @Norton
    last edited by Dec 19, 2019, 12:16 PM

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

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

    1 Reply Last reply Reply Quote 0
    • B Offline
      bachoo786 @Fozi
      last edited by Jan 1, 2020, 10:22 PM

      @Fozi Hi
      Can i solder pin 1 and 2 of the resistor to the radar sensor? I accidentally broke pin no 3.

      F 1 Reply Last reply Jan 2, 2020, 7:45 AM Reply Quote 0
      • F Offline
        Fozi Project Sponsor @bachoo786
        last edited by Jan 2, 2020, 7:45 AM

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

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

        B 1 Reply Last reply Jan 2, 2020, 11:41 PM Reply Quote 0
        • B Offline
          bachoo786 @Fozi
          last edited by Jan 2, 2020, 11:41 PM

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

          F C 2 Replies Last reply Jan 3, 2020, 9:02 AM Reply Quote 0
          • F Offline
            Fozi Project Sponsor @bachoo786
            last edited by Jan 3, 2020, 9:02 AM

            @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 Jan 3, 2020, 11:18 AM Reply Quote 0
            • B Offline
              bachoo786 @Fozi
              last edited by Jan 3, 2020, 11:18 AM

              @Fozi ok will do thanks.

              1 Reply Last reply Reply Quote 0
              • B Offline
                bachoo786 @Fozi
                last edited by Jan 3, 2020, 8:27 PM

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

                F 1 Reply Last reply Jan 4, 2020, 8:40 AM Reply Quote 0
                • F Offline
                  Fozi Project Sponsor @bachoo786
                  last edited by Jan 4, 2020, 8:40 AM

                  @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 Jan 4, 2020, 5:09 PM Reply Quote 0
                  • B Offline
                    bachoo786 @Fozi
                    last edited by Jan 4, 2020, 5:09 PM

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

                    L 1 Reply Last reply Jan 5, 2020, 9:22 PM Reply Quote 0
                    • L Offline
                      lavolp3 Module Developer @bachoo786
                      last edited by Jan 5, 2020, 9:22 PM

                      @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
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 10
                      • 11
                      • 4 / 11
                      • 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