A Button to Switch your Pi Safe On and Off
30,043
Published 2022-08-12
ð Enroll now and start your journey: Guides4Tech.com
Unlock exclusive course materials, including a detailed 90-page E-Book, and take advantage of a limited-time discount for early sign-ups. Don't miss out on transforming your technical skills!
---------------------------------------------------------------
In this Video i explain how to connect a power button to your raspberry PI that ensure that your raspberry will shut Off safe. I will exlain where to connect it and how to configure the /boot/config.txt to use it right.
if this does not work, update your bootloader:
sudo apt update
sudo apt full-upgrade
sudo apt install rpi-eeprom
sudo rpi-eeprom-update
-------------------------------------------------------------
Tools i use:
Wires: amzn.to/3Etm4Nl *
bread board kit: amzn.to/3PvUTrk *
LED set : amzn.to/3P94pzo *
transisotrs: amzn.to/44LrEVZ *
Pi Pico W: amzn.to/467nAR3 *
*affiliate link
-------------------------------------------------------------
All Comments (21)
-
Short, simple, sweet! Thanks mate :)
-
Wow, that was simple! I was trying to use some scripts that I found elsewhere for this power button but they didn't work (error messages), this worked great and it was fast and easy!
-
Exactly what I was looking for, thanks!ð
-
im going to find the hugest comedy sized button ever to shut down my pi ðð
-
Im I am running Batocera for my arcade cabinet on my SD card, do I remove the SD card before proceeding?
-
Very useful video! Thank you very much!
-
Thanks! Now I can use 1 button to turn on and off raspberry instead of 2!
-
Bruce Dickinson is teaching us electronics. Great video
-
Worked perfectly, thanks!
-
Excellent, thanks. Another question re sound: I got the small screen with a 4pin connector plugged into the back to get sound, which worked okay. However the screen was too small and I got myself a HDMI switch where I can share a larger screen between Windows 11 and the Raspberry Pi 4B. The problem is: no sound because I disconnected the small screen. Is there a way where I can plug the 4Pin connector into the Pi's GPIO?
-
Hi! Its possible to use a button of type switch (two state, not holding/push button) ? Its convinient and safe? Great video too.
-
I really appreciate the help. And no need to git clone. Thanks ððŋ
-
yayy it works! Thanks! :D
-
I have followed the steps but when I press the button, Kodi shows the shutdown menu . Is there any command to force shutdown directly?
-
Do you need to do the software if you have Android installed on the Raspberry Pi?
-
Hi. is there anyway to do this on Dietpi with Amiberry??
-
I take this back. This does no more or less than the python code projects offered. It still keeps my fan powered on. It doesn't start up if I hit the button again. If I need to power off I still have to unplug the usb power supply manually.
-
this worked great !
-
i just need code, what need make or were have code, reset/safe shutdown. i has before but new image not have and not found old code anywere. bush button short shutdown and if want only reset bush logtime about 5-10 sec.
-
On the 64 bit version you need to press the button twice unlike on the 32 bit version of pios. How can I fix that?