It’s a simple circuit from the USB port of the controller board of the screen that is on level HIGH (3v) when screen is on, and level LOW (0v) when is off. ![]() And finally, the screen detector as an input to the GPIO (pin 6 BCM). The PIR output goes into an input GPIO of the raspberry (22, BCM), then, on pin 25 (BCM) goes the input to the relay (output from the raspberry GPIO). When somebody aproax the mirror, it turns on the screen. The basic idea of the motion detector is that when nobody are near the mirror, it turns off the scree, but the raspberry is still running. I’ve installed too one 18650 battery in case there is a blackout. Well, I’ve finished my mirror installing the motion detector (PIR) and the relay. NEW UPDATE (): INSTALATION OF THE PIR AND RELAY TO SWITCH ON/OFF SCREEN AUTOMAGICALLY The Power Supply I’m using is a 12 V DC 2 A and works great for the controller board + raspberry Pi Zero W. These little holes are for, from left to right:ġ - infrared receiver for the remote control of the controller board.Ģ - led status of the screen, also included with the controller (on: green / off: red).ģ - pushbutton to turn on / off the screen (for now also the rpi zero is turned off, since it is connected to a usb of the controller, in the future I hope that the screen can be turned off independently).Ĥ - Activity LED of the raspberry (you have to follow these simple steps: ).ĥ- RESET button (if the raspberry is hanging, it is a hard reset). (WITH THE PIR, RELAY AND SCRIPT WORKING) ![]() If you prefer, you can watch a video on youtube about my mirror in this link: I’d like to show you some pictures of the project. In the future I hope to add some more, such as a presence detector to turn on the monitor when it detects movement. At the moment I only have the modules by default and some simple ones from third parties.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |