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.
    • P Offline
      Philly
      last edited by

      IMG_9326.jpg
      Hi thank you for responding, I recently bought a soldering iron and soldered the pins to the sensor and I’m still having trouble having it turn on the smart mirror. I’ve attached a picture, I don’t think the module is the problem and made sure the cables are attached to the right pins, could it be the soldering? Sorry to bother I’m new at this.

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

        @Philly From what I see in the picture the soldering seems to be OK, but I’m not sure you wired it correctly on the GPIO. The picture is somewhat blurry, so I can’t recognize it well enough.

        The red wire should go to the first right pin, which provides +5V. From the picture it seems to go to the first left pin, which provides only 3.3V.
        The black wire seems to go to the second right pin, which also provides +5V. It should go to the third right pin for GND.
        Finally, the brown wire appears to go to the third left pin, which is provides a SCL signal (serial clock) and is reserved for I2C. Don’t use that, but the forth left pin, which is a digital I/O.
        Please check the wireing again according to my description and adjust also the config.js accordingly.

        {
        			module: 'MMM-PIR-Sensor',
        			disabled: false,
        			config: {
        				sensorPin: 4,
        				powerSavingDelay: 30, // (seconds) how long the monitor will be turned on
        
        			}
        		},
        

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

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          Philly @Fozi
          last edited by

          @Fozi I rechecked my wires and confirmed they were wired on the correct pins although the picture I sent does look off, the red wire is on the 5v, black is on gnd, and the brown wire is on GPIO pin 7. The config.js is also configured accordingly but when I npm start the Magic Mirror a blank screen continues to show. So I tried using the MMM_PIR module instead and got the same results, a blank screen. Not sure why the sensor’s not working

          1 Reply Last reply Reply Quote 0
          • G Offline
            Ghost2000
            last edited by

            @Fozi
            You wrote that you are using a double sensor is that this one?

            zerodis-HB100-Mikrowelle-Sensor-Modul-Doppler-detecor

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

              @Ghost2000 I use this one https://amzn.to/35SEYd3

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

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                Ghost2000 @Fozi
                last edited by

                @Fozi
                then did you connect two?

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

                  @Ghost2000 no, it is a single sensor. You probably got irritated by the noun „Doppler“. This has nothing to do with double or to similar. The sensor uses an effect which was discovered by the physicist Christian Doppler. See also https://en.m.wikipedia.org/wiki/Doppler_effect

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

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Ghost2000
                    last edited by

                    eah right, now I see

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      MajorC Project Sponsor
                      last edited by

                      Hi @Fozi ,

                      just to make sure that I am on the right way:

                      • Buy a RCWL-0516 module
                      • Wire the module to my Raspberry Pi 4
                      • Install @Bugsounet MMM-NewPIR on my MM

                      That’s it? Or did I miss something?
                      My MM is not a mirror, more a wall-mounted picture frame with some nice to have information on it. I would like to have the monitor turned off, if nobody is in the room.

                      Thank you,

                      Christian

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

                        @MajorC yeah, that are the steps to go. The RCWL-0516 module is a 1:1 replacement of the common IR sensors usually used. MAke sure to follow also the instructions I wrote (see link in my signature).

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

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          MickyVi @Fozi
                          last edited by MickyVi

                          @fozi

                          Good morning,

                          I also used a PIR sensor and obviously, behind the glass it does not work (the glass is 6 mm thick and the back of wood 3 mm), also I do not want it visible as the mirror will be positioned in the bathroom and behind I the power supply, so no wires remain in sight.

                          At the end of the story I found this topic and I also wanted to change the presence sensor.

                          I made my purchases as instructed and started testing.

                          The first test I did without modifying anything, simply connected, installed the MMM-Pir Paviro configured and it immediately started to work.
                          But I noticed one thing, my sensor is not so sensitive (indeed) I think it depends on those 9 mm total between the size of the mirror and the wooden board, if I move from behind and if I leave it too attached to the tablet wood does not detect anything (it detects only on the back or by moving the mirror from the wall).
                          I will also try to build a box to keep the sensor a little detached from the wood and let’s see what happens.

                          Any suggestions on this?

                          In the meantime, thanks to everyone for the advice and good construction with your MM.

                          Hello

                          uros76U FoziF 2 Replies Last reply Reply Quote 0
                          • uros76U Offline
                            uros76 @MickyVi
                            last edited by uros76

                            @mickyvi in my case it was the opposite experience. I have 3mm thick glass and back of the glass is covered by matte black paper. The initially installed microwave sensor (behind glass and paper) was too sensitive and could pick up movement up to 4-5m distance. That was too much for me so I had to modify the sensor by adding a trimmer.
                            Once the trimmer was added I could dial in the sensitivity as needed.
                            Here is my mirror… https://forum.magicmirror.builders/topic/13430/my-first-slim-mirror-at-home

                            In your design, maybe cut a hole in the wood back cover to fit the sensor in. That way the sensor will only need to go through 6mm glass. You can cover the space of the hole with black paper to eliminate any light entry there.
                            It’s hard to recommend anything smarter without knowing the details of your design. Do you have any picture you could share so we can see how the back of the glass enclosure looks like?

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

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              MickyVi @uros76
                              last edited by MickyVi

                              @uros76

                              Hi Uros,

                              I also thought of making a window and putting the sensor in there in order to eliminate 3 mm of thickness and in fact I think it will be the first test I will do.

                              Unfortunately today I am at work and I will be able to carry out studies and modifications only tomorrow when I have the day off.

                              I have no photos of the rear, very simple cmq, a wooden frame covered in metal 100 x 40 cm, a 6 mm Mirastar mirror, a 3 mm plywood tablet painted in black on which the various electronic devices are placed.
                              Tomorrow I will take some photos inside the outside as well, at the moment it is like this:

                              https://forum.magicmirror.builders/topic/9246/which-type-of-mirror-to-use/13?page=2

                              Thanks bye

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

                                @mickyvi Ususally those sensors a quite sensitiv and detect motions even through walls. That was also my case, why I added the trimmer to reduce sensitivity. Maybe the sensor is from a bad lot. You could try anotherone if you have a spare. Those sensors are pretty cheap.

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

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  MickyVi
                                  last edited by MickyVi

                                  Goodmorning everyone,

                                  after several attempts I have resigned myself to the fact that the doppler sensor cannot pass the 6 mm of glass.

                                  mirastar.JPG

                                  I also tried to buy a slightly more “expensive” sensor but the result is always the same.

                                  https://www.amazon.it/gp/product/B089NKGWQQ/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

                                  unfortunately the result is always the same: it detects well from behind but from the front there is no way to pass the signal.

                                  IMG_20210710_112510.jpg

                                  IMG_20210710_112510.jpg

                                  Even trying to make a window in the plywood the result does not change (same result with “inexpensive” sensor and with “very expensive” sensor.

                                  Very disappointed and dejected about this. :-(

                                  I think I’ll try again with simple PIRs maybe with the 2mm hole tutorial. And let’s see what happens.

                                  Hello everybody

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

                                    @mickyvi that is sad to hear. The glass you are using must have some special coating that prevents signal go through.

                                    Did you try to rotate the sensor? I know these sensors are sensing around 360degree but I think the actual antenna is stronger on one side.
                                    Also, what’s the distance from mirrir you are trying to get the sensor to pick up movement? Does it work fine when using without glass?

                                    For me PIR was not an option. I tried cheap and expensive PIR sensors and all of them had too many false positives. Plus it needs to be ouside visible.

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

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      MickyVi @uros76
                                      last edited by

                                      @uros76

                                      Hello,

                                      Yes, in my opinion it’s the mirror, damn it, if you only knew how much I paid for it …

                                      Yes, I tried in every way, even putting the sensor behind the monitor (… when you are desperate you try everything …: -) …), turning it, putting it sideways but nothing, it does not detect.
                                      If I move it outside, it detects everything, but even with the “cheap” sensors I had noticed the same functionality.

                                      I don’t know, maybe I will also give up motion detection: maybe a button that takes it out of stand by and then stays on for 20 minutes … I know … it’s shit … but I don’t want to continue to have the mirror resting on the floor without being able to install it and continue testing.

                                      I have to think about it for a while.
                                      Hello and thanks for the support everyone!

                                      uros76U FoziF 2 Replies Last reply Reply Quote 0
                                      • uros76U Offline
                                        uros76 @MickyVi
                                        last edited by

                                        @mickyvi as the last option maybe install the sensor on top or bottom of the mirror frame. Hide it in a small enclosure (wooden or hard paper or 3D printed extension to the frame) and paint the same color as the frame. If done nicely it won’t even look that bad. And it will for sure work :)

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

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

                                          @mickyvi That’s indeed really strange, and I can only guess that the mirror has a reflecting coating which prevents the signal from passing through the mirror. The thickness of the glass itself is not the limiting factor, as the signal usually passes even stone walls and can detect motion in adjacent rooms. I operated my sensor first behind the mirror, too, and it worked. It is a 4mm Pilkington. Later I moved it under the frame, because it was easier to trim the sensor and hid it behind a 3D-printed cover. Thus, I’d second @uros76 proposal to mount the sensor on top or on the bottom of the frame where it is not visible. Don’t give up!

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

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            MickyVi
                                            last edited by

                                            Hello everybody,

                                            I’m taking the path of the classic infrared PIR sensor.

                                            I made two shells that can be attached under the two arms of the lamps above the mirrors.

                                            Here still in the assembly / painting phase:

                                            IMG_20210718_140209.jpg

                                            IMG_20210718_140227.jpg

                                            IMG_20210718_140310.jpg

                                            IMG_20210718_140518_1.jpg

                                            I’m gonna give a nice coat of chrome today and we should be there. :-)

                                            FoziF 1 Reply Last reply Reply Quote 2

                                            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
                                            • 4 / 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