1.how to use 1 gpio pin to drive raspberrypi power-on-off...
TRANSCRIPT
![Page 1: 1.How to use 1 GPIO Pin to drive RaspberryPi Power-on-off ...wiki.52pi.com/images/c/ca/1.How_to_use_1_GPIO_Pin... · easliy tell if the raspberry pi is turned off properly by checking](https://reader034.vdocuments.net/reader034/viewer/2022050300/5f693131f254db32ff2d5acf/html5/thumbnails/1.jpg)
Tutorial www.52pi.com
1
Howtouse1GPIOPintodriveRaspberryPiPower-on-off-statuslightThedefaultindicatorlightofRaspberryPiistheredLEDlightnexttothepowerlight.Aslongastheraspberrypiispoweredon,itwilllightup.Itishardforustoknowwhethertheraspberrypiisonoroff.Itisevenhardertonoticethedifferencewhenyoufittheboardintoacase.Soifyouwanttoplacetheindicatorlightoutsidethecase,youmaycheckoutthistutorial.
ElectronicComponents:
1*RaspberryPi3ModelB1*RedLEDlight1*220Ohmresister1*Breadboard 2*Male/femaleDuPontJumpWire
InstallationDiagram:
ConnecttheGPIO26Pinsto220Ohmresistorfirst.Thenconnectittothereddiode.
Youmayrefertothisdetaileddiagram:
![Page 2: 1.How to use 1 GPIO Pin to drive RaspberryPi Power-on-off ...wiki.52pi.com/images/c/ca/1.How_to_use_1_GPIO_Pin... · easliy tell if the raspberry pi is turned off properly by checking](https://reader034.vdocuments.net/reader034/viewer/2022050300/5f693131f254db32ff2d5acf/html5/thumbnails/2.jpg)
Tutorial www.52pi.com
2
ConfigurationModification:First thing first, run a command to boost the function of Device Tree which will enable yourraspberrypitobecompatiblewithmoredevices.Takealookattheuserguide:sudovim.tiny /boot/overlay/READMESearchforgpio-poweroff Poweroffmeans that the indicator lightwill not light upwhen the system is shutdown. You caneasliytelliftheraspberrypiisturnedoffproperlybycheckingtheindicatorlight.ThedefaultIOintheofficialusermanualisdefinedasIO26andthelatestsystemhasgotwiringPi.ItisveryeasyforyoutosetupandyoumaytakethissetupasthewarmupfortheApplicationKit.HereisthescreenshotfortheofficialREADME:
It is loaded by editing /boot/config.txt and by adding this command for module initialization:dtoverlay=gpio-poweroff,gpiopin=26,active_low Whenitisupdated,restarttheRaspberryPi:sudo sync sudo init 0Theindicatorwilllightupwhenthesystemisrunninganditwillbeturnedoffasthesystemisshutdown.Inthisway,youcaneasilytellthestatusoftheRaspberryPi.WhenyouDIYsomeinterestingapplications,youcanplacetheindicatoroutsidetoevaluatethestatusofthewholeoperation.