Read the statement by Michael Teeuw here.
Camera intigration in your Mirror
-
@lolobyte Thanks also from my side. Is the IR-LED-board wired with the camera board? I see no wires for IR-powersupply to the Raspi in your picture. How do you enable/disable your mirror?
Are the camera and the IR-LEDs visible from the other side, through the mirros. And last but not least: What’s the function of the red-white and the blue-white cable? -
Hello.
My fist step was mounting the IR together with the cam behind the mirror.
Was a disaster. From that point as the IR is starting, no really good picture was available.After that i mounted the cam without IR and the IR extra outside from the Mirror.
The cam is not visible. The IR has his own power supply.
The mirror is enabled and disabled by the cam.The blue/white cable is soldered on a switch (Taster) to be capable to make soft reset to the raspi mirror or to shutdown the raspi mirror. You can set the option in a python script.
I planed to install one other switch for a hard reset. I have recognized this switch will also enable the mirror after a shutdown an i didn’t must pull the Raspberry power supply.
The red/white one is also a switch (Taster) to enable the "Tagesschau in 100 sek.) with the MMM-Button and the MMM-Podcast modules.
-
Where do you hide the IR-LEDs? In the Frame? Is there a special Module to use the Camera to disable the mirror or do you just disable all modules, if no face is recognized?
-
No, the IR-Spot is completely at another place. This spot is mounted under the room cover above the mirror.
I use the cam SW to recognize any motion in the front of the mirror named MOTION-MMAL
Take a look for example at
https://embeddedday.com/projects/raspberry-pi/a-step-further/install-motion-mmal/
In the config file you can define how the SW has to work and which commands are executed by the SW.
Se also here in this Forum
https://forum.magicmirror.builders/topic/988/motion-detection-with-raspicam-non-module-version/
-
Ok, sounds interesting. Can the Face-Recognitiontool and the MMAL-Motion share the camera? If I try to use the Camera with “raspistill” while the Face-Recog-Module is enable, I get an Error.