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 Raspberry Pi and Universal Power Supply
box-running.jpg
RaspiElf running
box-tft.jpg
RaspiElf w/ TFT

Of course you do not need any monitor but it is very convenient to have one built in. Especially if you want to use emulators like the YAZE-AG (Z80, CP/M Plus), the DOS box, or a terminal emulator for the BASIC3. A USB keyboard can simply plugged in, I use Bluetooth keyboard because the Raspi has Bluetooth on board.

Buttons 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

I would like to use only one button for turn off and on again the Raspi as described in How to add a power button to your Raspberry Pi but for this we need the GPIO3 and this pin is already used by the I2C communication. I instead chose GPIO21 (pin 40) for shutdown, this can be configured with overlays

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

dtoverlay=gpio-shutdown,gpio_pin=21

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 (10 k to 3.3V, pin 17) 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 box-tft.jpg r1 manage 311.7 K 2018-08-26 - 21:33 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 | r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r6 - 2018-08-27 - 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