Read the statement by Michael Teeuw here.
PIR sensor behind glass?
-
Finally got around to testing on the PI’s 5v power (I’ve busy being sick) and seems to work fine!
Next I’m going to hook up to the GPIO and see if I can get the whole thing running together. -
Now that I have time I’ve finally set up the microwave sensor on my mirror. Works like a charm!
The sensor’s data line goes high to 3.3v when it detects motion and stays high for about 30 seconds. It’s set up on one of the 5v outputs. I’ve put some foil around it to help it be a bit more directional since the sensor is so sensitive; I sit under and to the right of my mirror all week and I don’t want it it trigger all the time. It helps somewhat. -
I used some cardboard and then made a little housing for my PIR under the bottom of the mirror. It is a little ugly, but hey this whole project for me was to make something cool (not necessarily beautiful)!
I did a few layers of cardboard between the sensor and the front to limit the viewing angles and for my needs it is perfect :)
-
@dmcinnes Would you mind share some code? :)
-
@Cato just the regular PIR sensor mirror code works fine! The data pin triggers in the same way as a PIR sensor.
-
@Cato said in PIR sensor behind glass?:
@dmcinnes Would you mind share some code? :)
-
hmm… some questions if you would not mind.
Ive just ordered 2 sensors .
I need to know what plugs in to what to feed in to the chips (im guessing the sensors i need? please explain what i am missing… and what connects in to the Raspberry PI.
Also note the second i want to have outside the home and set up to a facial recog module, and comand it to open the door via face and voice confirm if possibl.
And how this connects to the a
-
If you want a very simple solution (independent of MM completely), check out this script. This is what I am using, it is a very simple python script that reads the value of a PIR and then selectively turns on / off the monitor. You will need to change things up a bit as I wrote it for a C.H.I.P. but the GPIO library is the same.
-
@wjdw87 cool! The connection is basicly the same as a PIR sensor. It has three wires, ground, vcc, and data which goes high when it senses motion. I plugged it into the PI’s 3.3v, ground and I believe gpio 22 (whichever is the default for the module).
Since the wire comes out as a three pin JST I split it into individual header connectors because all the pins are not next to one another on the PI.Hope that helps!
-
Can anyone of you please share a picture of how you’ve connected the microwave sensor to the Pi pins?
I know this sounds dumb, but I can’t seem to find out what pin connects to what, as I don’t know what pin is ground and what pins is (data) out…Thanks!