Pretty cool one here I came up with. Starting with this simple latch circuit I talked about a while back: • Simple Transistor Latch Circuit + Eas...
NOTE! Put a 1k resistor right at the base of those two NPN transistors. You never want to have two transistor bases tied together like that.
I wanted to use this to power up my raspberry Pi project, which is pretty easy, but I also wanted to use this to power down as well. Since you can't just kill power suddenly to the Pi, I enabled GPIO21 to go HIGH after a safe shutdown:
sudo nano /boot/config.txt
Adding in this line at the end:
dtoverlay=gpio-poweroff,gpiopin=21
Then from the processing sketch be able to monitor that same pushbutton and determine when to execute the shutdown command. That code zipped up here:
http://kevindarrah.com/download/laser...
And the pinout for the GPIO Header: https://pinout.xyz
Oh and make sure to check out the last video on exactly how I got the Pi setup the way you see it in this video: • Raspberry Pi - MASSIVE TUTORIAL - Fre...
Check out my Tindie store (trigBoard is available) https://www.tindie.com/stores/kdcircu...
Thanks to all the Patrons for dropping a few bucks in the tip jar to help make these videos happen!
/ kdarrah
Twitter: / kdcircuits
For inquiries or design services:
https://www.kdcircuits.com
Смотрите видео Simple Button Circuit to Power ON & Safely OFF Raspberry PI онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Kevin Darrah 11 Июль 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 37,25 раз и оно понравилось 55 людям.