Wooden Box for the RaspiElf
Intro
The ELF Membership Card, the RaspiElfDisplay, and the RaspiElfKeypad need a home. I found a wooden box from efco, 23.5 x 17 x 9 cm. There is enough room to stow away the hefty Raspberry Pi Universal Power Supply too.

Hardware

wooden-box.jpg
Closed wooden box
box-psu.jpg
Box with the Raspberry Pi Universal Power Supply
box-running.jpg
RaspiElf running

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:

pi@cosmac:~ $ sudo poweroff

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

  • gpio-poweroff
  • gpio-shutdown

Add following line to the file /boot/config.txt

dtoverlay=gpio-shutdown,gpio_pin=21

Run

If the Raspberry Pi is in HALT mode then you can start it again with switch off (pull the plug) and switch on again or hit the RUN button.

P6 Pinout

Pin Number Pin Name Rev2 Hardware Notes
P6-01 RUN Short to ground to reset the BCM2835
P6-02 GND  

run-shutdown-bottom.jpg
Wiring the RUN and the SHUTDOWN switches
run-shutdown-switches.jpg
There is pullup resistor for SHUTDOWN switch

-- Peter Schmid - 2018-06-24

Comments

Topic attachments
I Attachment History Action Size Date Who Comment
JPEGjpg box-psu.jpg r1 manage 3534.0 K 2018-06-24 - 14:36 PeterSchmid  
JPEGjpg box-running.jpg r1 manage 3432.0 K 2018-06-24 - 14:36 PeterSchmid  
JPEGjpg box-small.jpg r1 manage 56.3 K 2018-06-24 - 14:44 PeterSchmid  
JPEGjpg run-shutdown-bottom.jpg r1 manage 225.7 K 2018-08-26 - 15:35 PeterSchmid  
JPEGjpg run-shutdown-switches.jpg r1 manage 121.6 K 2018-08-26 - 15:35 PeterSchmid  
JPEGjpg wooden-box.jpg r1 manage 462.1 K 2018-06-24 - 14:36 PeterSchmid  
Edit | Attach | Watch | Print version | History: r11 | r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r4 - 2018-08-26 - PeterSchmid
 
  • Edit
  • Attach
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