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.

    MMM-PIR-Sensor problems

    Scheduled Pinned Locked Moved Troubleshooting
    24 Posts 3 Posters 19.3k Views 3 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.
    • C Offline
      Charley Module Developer
      last edited by Charley

      I have just checked my Mirror I am at pin 22 the 8th pin on the bottom of this print
      The 8th pin on the bottom

      MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

      1 Reply Last reply Reply Quote 0
      • B Offline
        blebbens
        last edited by

        Yes, it is connected to the 8th bottom from the left…

        Building the mirror, setting up the pi and magic mirror with modules - no problems… until trying to use the PIR…

        HDMI signal is sending still in blank screen… magic mirror does not turn back on… it still does not care about the PIR.

        at what position are your potentio meters and the jumper ?

        1 Reply Last reply Reply Quote 0
        • C Offline
          Charley Module Developer
          last edited by Charley

          My PIR has no jumper. From banggood
          The two potentiometers are both in the middle position.
          There are a few more topics on the screen not reacting properly a few LCD screens do not support switching thru HDMI.

          I tested the PIR on an Arduino Nano to see when it was detecting and at what range, but you can also do that with a Raspberry.

          MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

          1 Reply Last reply Reply Quote 0
          • B Offline
            blebbens
            last edited by

            Normally the monitor is switching to standby if there is no signal from HDMI. I think the problem is the Raspberry. Found nothing to fix this.

            I am also wondering why magic mirror switches to no signal/blank screen after a couple of minutes. Is there a possibility to change this to a fix number of seconds? Seems as if the MMM-PIR-setting for switching on/off in seconds has no effect.

            1 Reply Last reply Reply Quote 0
            • C Offline
              Charley Module Developer
              last edited by

              Maybe you have screensaver not disabled.

              MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

              1 Reply Last reply Reply Quote 0
              • B Offline
                blebbens
                last edited by

                Now, screensaver is disabled… PIR not working. Display is switched on all the time…

                Perhaps, the problem could be the installed GPIO 2.25 instead of a newer version?
                After running npm install wiring-pi version 2.25 is still running.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  Charley Module Developer
                  last edited by

                  You could try if you are using the right GPIO by pulling the pin Up.

                  Take a 10k Resistor one side on 5V and the other side tap the GPIO pin that is what the PIR would do. Then you can check if you use the proper pin.

                  MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    blebbens
                    last edited by

                    I am sure I am using GPIO22.

                    I am wondering about the display, which is not switching off. It stays on all the time.

                    Could it be a problem with the fact that the user “pi” is logged in ?

                    Why does the display not switch off ?

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Charley Module Developer
                      last edited by

                      Maybe your PIR is always HIGH
                      thats is why you should check with a resistor if it works.
                      Or disconnect the OUT pin to see in the screen stays off.

                      MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        blebbens
                        last edited by blebbens

                        Maybe you are right. I tried using MagicMirror-Display-Controller and started the pir.py-python script… the output: “Motion detected… setting timer to 180 seconds”.

                        Okay, I am a bit afraid, because it is a bit difficult to take a look at the Raspberry Pi - I have to change the place after all is working and final.

                        Let´s say, the PIN is telling HIGH (=motion detected) the whole time. What do I have to do then ? I am new to linux/RPi and learning day to day.

                        I try without data connection PIR->RPi

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          Charley Module Developer
                          last edited by

                          As I wrote in my previous message check if the GPIO is low when you disconnect the PIR
                          I always check all parts with an Arduino Nano or Uno to see if it works and if it needs settings it is easily done before installing.
                          This evening I will not be online any much longer.

                          MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            blebbens
                            last edited by

                            Thanks for helping…

                            Without the PIR-Data-Pin connected to GPIO 22, the script does not show the message “motion detected”. It is counting from 180 to 0. Think this means the GPIO is LOW then.

                            I think all I need now is what to do next. Broken PIR ? Wrong PIR-settings (Potentio meters, Jumper) ?

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              Charley Module Developer
                              last edited by

                              You could try to use a pull-up resistor maybe the PIR output is 5V

                              pullup resistor

                              Check this website. Otherwise your PIR is broken. If you are in the Netherlands i can post by snailmail another one to you that works for sure,

                              MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                blebbens
                                last edited by

                                I have 8 HC-SR501 bought a while ago. Some of them are green, some blue.
                                Tested all of them now…

                                0_1523903551418_PIR4.jpg

                                The message is the same: OUT connected… Motion detected. OUT not connected, no motion detected… Think, this means OUT and HIGH are working.

                                But, the PIR sensor delivers motion detected permanently if connected.

                                So, according to your PullUp-Link I have to put a 10kohm resistor between Raspberry Pi GPIO 22 and PIR-OUT ?

                                I am wondering why none of those tutorials are telling this. Some of my PIRs should work with 3.3V-OUT ?

                                I am afraid there is a mistake I am making, but I don´t know which one and how to solve it. That´s the last part missing for my mirror, the important part.

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  Charley Module Developer
                                  last edited by

                                  What you could do is put a 10k Resistor between GPIO 22 and GND. if the PIR disconnects your PIN is pulled LOW.

                                  PIRs may give different signals my PIR only gives a high (3v3)

                                  MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

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

                                    Have you tried to set the timer potentiometer (Haltezeit in your picture) on the PIR-sensor to minimum? I have the very same PIR-sensors and they are working very well without any additional resistors.

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      blebbens
                                      last edited by

                                      Ok, think, it is working… not perfectly, but working.

                                      Could you take a picture of your potent meters AND jumper ?
                                      Have set them both to the left position. Would help a lot.

                                      A lot of people are walking the way the mirror is mounted to the wall. Finally, I would like the mirror to switch on if a person stays in front of it for 10 seconds. Don’t know exactly how to do this.

                                      At the moment it switches on in 1 second.

                                      M 1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        MadScientist @blebbens
                                        last edited by

                                        @blebbens alt text
                                        That’s a picture I took before mounting it to the wall. Taking a new picture will be a bit difficult now. Hope it helps.
                                        Btw, I don’t use the MMM-PIR-sensor module. Initially I did though and I didn’t change the jumper. The sensor is set to “high”, in case it’s not clear from the picture.

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          blebbens
                                          last edited by blebbens

                                          I put the potentio meters to the left position - like in your picture.

                                          The screen switches on in seconds… looking for a possibility to turn it on if someone stands in front of the mirror for 10 seconds.

                                          Using MagicMirror-Display-Controller instead of MMM-PIR-SENSOR.

                                          Hope, this could be done using right “time” potentio meter. Not sure.

                                          1 Reply Last reply Reply Quote 0

                                          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
                                          • 1 / 2
                                          • 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