Difference: WoodenBox (3 vs. 4)

Revision 42018-08-26 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 19 to 19
 
box-psu.jpg
Box with the Raspberry Pi Universal Power Supply
box-running.jpg
RaspiElf running
Changed:
<
<

GPIO Shutdown

>
>

Switches for Shutdown and Run

 
To keep prices down, the Raspberry Pi is missing something that most electronic devices come with: a switch to turn it on and off. That’s OK, you say, we’ll just pull the plug to turn it off. Unfortunately, this can lead to corruption problems with the SD card. All the instructions say you should run the shutdown command before pulling the plug, but this is not always possible, particularly when your Raspberry Pi is running headless without a connected keyboard and monitor, and possibly even without a network connection. So, what can a self-respecting DIYer do? The answer, of course, is ‘add your own switch’!

To switch off the Raspberry Pi from the console:

Changed:
<
<
sudo poweroff

shutdown -h now sudo halt

shutdown -r now sudo reboot

>
>
pi@cosmac:~ $ sudo poweroff
 

https://github.com/raspberrypi/firmware/tree/master/boot/overlays

Line: 41 to 37
 
  • gpio-poweroff
  • gpio-shutdown
Changed:
<
<
/boot/config.txt
>
>
Add following line to the file /boot/config.txt

 dtoverlay=gpio-shutdown,gpio_pin=21
Added:
>
>
 

Run

Line: 54 to 51
 
P6-01 RUN Short to ground to reset the BCM2835
P6-02 GND  
Added:
>
>
run-shutdown-bottom.jpg
Wiring the RUN and the SHUTDOWN switches
run-shutdown-switches.jpg
There is pullup resistor for SHUTDOWN switch
 
Line: 69 to 68
 
META FILEATTACHMENT attachment="box-running.jpg" attr="" comment="" date="1529851014" name="box-running.jpg" path="box-running.jpg" size="3514358" user="PeterSchmid" version="1"
META FILEATTACHMENT attachment="wooden-box.jpg" attr="" comment="" date="1529851014" name="wooden-box.jpg" path="wooden-box.jpg" size="473233" user="PeterSchmid" version="1"
META FILEATTACHMENT attachment="box-small.jpg" attr="" comment="" date="1529851492" name="box-small.jpg" path="box-small.jpg" size="57633" user="PeterSchmid" version="1"
Added:
>
>
META FILEATTACHMENT attachment="run-shutdown-switches.jpg" attr="" comment="" date="1535297757" name="run-shutdown-switches.jpg" path="run-shutdown-switches.jpg" size="124491" user="PeterSchmid" version="1"
META FILEATTACHMENT attachment="run-shutdown-bottom.jpg" attr="" comment="" date="1535297758" name="run-shutdown-bottom.jpg" path="run-shutdown-bottom.jpg" size="231142" user="PeterSchmid" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback