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

MMM-PIR-Sensor

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 5 Posters 4.0k Views 5 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
    codyS75
    last edited by Mar 20, 2018, 1:07 AM

    This will be my first time trying to do anything with a PIR sensor. (Here is what I have: https://smile.amazon.com/gp/product/B012ZZ4LPM/).

    Maybe this is a question that is specific to the brand/model, but in general, would a sensor like this be able to detect if the Pi is enclosed in a case? I know that sensitivity can be configured, but again, first-timer here.

    Thanks in advance…

    F J 2 Replies Last reply Mar 20, 2018, 11:55 AM Reply Quote 0
    • F Offline
      fabbr @codyS75
      last edited by Mar 20, 2018, 11:55 AM

      @codyS75 Well, it doesn’t matter where the Pi is, as long as the sensor has a clear view of the location you want to the detection to happen.

      1 Reply Last reply Reply Quote 0
      • C Offline
        codyS75
        last edited by Mar 20, 2018, 12:47 PM

        This is where I feel like a noob asking the question, but how would this typically work for a magic mirror, considering that one way or another the Pi is (I would think) usually going to be behind the monitor and out of the line of sight of the mirror surface?

        F 1 Reply Last reply Mar 20, 2018, 12:49 PM Reply Quote 0
        • F Offline
          fabbr @codyS75
          last edited by Mar 20, 2018, 12:49 PM

          @codyS75 I don’t know if the PIR will be able to work behind the mirror. I will get my mirror (mirrorvue) in 3 days and I can test that out and report back to you however, I was planing on having a hole on the frame for the sensor to have a clear line of sight.

          1 Reply Last reply Reply Quote 1
          • Y Offline
            yawns Moderator
            last edited by Mar 20, 2018, 12:59 PM

            PIR does not work behind a mirror glass, the reflective part blocks the IR.
            If you want to mount it behind the mirror glass you should use a microwave sensor. Otherwise unmount the fresnel lens (the plastic dome mounted on top of the PIR sensor, drill a tiny hole (2-3mm) and let the PIR sensor “look” through the hole.

            1 Reply Last reply Reply Quote 2
            • J Offline
              j.e.f.f Project Sponsor Module Developer @codyS75
              last edited by Mar 20, 2018, 9:49 PM

              @codyS75 The way I set up mine was I removed the dome over the sensor, and drilled a small (2-3mm) hole in the frame. The sensor is mounted behind the hole and can only “see” directly forward. This works really well, since you only want the PIR sensor to be triggered when someone is standing right in front of the mirror. And the you don’t have to see the ugly dome either!

              M 1 Reply Last reply Mar 21, 2018, 7:24 AM Reply Quote 2
              • C Offline
                codyS75
                last edited by Mar 20, 2018, 10:06 PM

                Sounds like a good plan. I’ll give that a shot, hopefully here in the next few days (once my mirror is delivered.)

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MadScientist @j.e.f.f
                  last edited by Mar 21, 2018, 7:24 AM

                  @j.e.f.f said in MMM-PIR-Sensor:

                  @codyS75 The way I set up mine was I removed the dome over the sensor, and drilled a small (2-3mm) hole in the frame. The sensor is mounted behind the hole and can only “see” directly forward. This works really well, since you only want the PIR sensor to be triggered when someone is standing right in front of the mirror. And the you don’t have to see the ugly dome either!

                  I did the same. I drilled a 3mm hole through the frame and on the inside half way through a 8mm hole which holds the PIR sensor. Works incredibly well. A radar sensor CAN be a better solution, but keep in mind it works 360° and also through thin walls. It didn’t work well for me. Got too many unwanted triggers. A metal enclosure could have solved the problem but the PIR was the easier way to go.

                  1 Reply Last reply Reply Quote 1
                  • C Offline
                    codyS75
                    last edited by Mar 21, 2018, 1:04 PM

                    Just so I understand, the 8mm hole is half-way through the frame, which is where the sensor sits, and then in the middle of that is the 3mm all the way through?

                    M 1 Reply Last reply Mar 21, 2018, 1:06 PM Reply Quote 0
                    • M Offline
                      MadScientist @codyS75
                      last edited by MadScientist Mar 21, 2018, 1:47 PM Mar 21, 2018, 1:06 PM

                      @codyS75 Yes. The 8mm hole perfectly fits the sensor. Drill the 3mm hole first. This way you can use it as the center point to drill the 8mm hole.

                      1 Reply Last reply Reply Quote 2
                      • 1 / 1
                      1 / 1
                      • First post
                        5/10
                        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