@yawns said in Use touch sensor to wake up MagicMirror:
The approach is always the same …
Sensor is triggered (touch sensor is touched, button is pressed, camera is identifying motion, PIR is noticing infrared heat), a timer is started and the mirror is activated. Once the timer expires the mirror is deactivated again.
Of course you can use a touch sensor like TTP223. All it does is setting its communication pin on HIGH if someone is touching it. Since this is a momentary touch you need to start some timer, because you don’t want to keep your finger on the touch sensor all the time to be able to work with the mirror.
Downside in my opinion is the positioning of the sensor. It needs to be mounted on the mirror so you can actually touch it, but it is not really looking nice. Using a PIR sensor mounted in the buttom of the frame looking down through a little hole is invisble. You move your hand below the mirror, the PIR senses the infrared heat and you are done.
y want somethink like that,but im going to put the mirror in a place that a lot of people pass,so i think about this:
the touch sensor start the pir,and the pir start detecting if it’s somebody in front,if not,set on standby the screen
i don’t want that the pir it’s detecting all the time