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.

Schmuckkästli (Swiss German): jewelry box

Hardware

schmuckkaestli.jpg
Closed Schmuckkästli
schmuckkaestli-open.jpg
Schmuckkästli 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 (e.g. HDMI Monitor 5" 800x480 from Adafruit). Especially if you want to use emulators like the YAZE-AG (Z80, CP/M Plus), the DOSbox, 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

Front Plate Design

The front plate was created with Inkscape (for the design source file see cosmicos.svg). I used the fonts Retro Stereo Wide, RCA, and Univers Pro 65 Bold (non-free).

cosmicos.png

-- Peter Schmid - 2018-06-24

  • cosmicos.png:

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  
PNGpng cosmicos.png r3 r2 r1 manage 39.2 K 2018-09-26 - 20:45 PeterSchmid  
SVG (Scalable Vector Graphics)svg cosmicos.svg r1 manage 16.0 K 2018-09-26 - 20:02 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 schmuckkaestli-open.jpg r1 manage 210.9 K 2018-12-16 - 16:28 PeterSchmid  
JPEGjpg schmuckkaestli.jpg r1 manage 139.3 K 2018-12-16 - 16:28 PeterSchmid  
JPEGjpg wooden-box.jpg r1 manage 462.1 K 2018-06-24 - 14:36 PeterSchmid  
Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2018-12-16 - PeterSchmid
 
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