Read the statement by Michael Teeuw here.
MMM-PIR-Sensor
-
@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.
-
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?
-
@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.
-
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. -
@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!
-
Sounds like a good plan. I’ll give that a shot, hopefully here in the next few days (once my mirror is delivered.)
-
@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.
-
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?
-
@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.