Yappi - Yet an Awesome Paper PI - is a plugin for the famous vector graphics software Inkscape.
Warning
A Raspberry Pi runs hot, and paper is flammable. A Pi housed in a Yappi paper case can ignite if it overheats. Never run a paper-cased Raspberry Pi without supervision. Power it off whenever you leave it unattended, keep it clear of other combustibles, and ensure adequate ventilation. Use this case at your own risk.
To install this plugin you should first download the sources from GitHub:
$ git clone https://github.com/Phidelux/Yappi
Then you can move the downloaded files to the extentions folder of your Inkscape installation:
$ sudo cp ./Yappi/yappi.* /usr/share/inkscape/extensions/
If you now start Inkscape, you should see a new entry in the Extentions -> Python submenu, named Yappi. Open a new document, go to Files -> Document Properties ... and choose A4 paper and check Landscape mode. Now start the Yappi extension wizzard located under Extensions -> Python -> Yappi .... Here you can change different options modifying the look and feel of your custom Raspberry Pi case. When you entered all important data, click Apply and close the wizzard. You will see the scheme of your custom Raspberry Pi case.
The case is generated from a per-model definition, selectable via the Raspberry Pi
model dropdown at the top of the dialog. Each model is described compactly in
yappi.py by its board dimensions and a list of port cutouts:
PI_MODELS = OrderedDict([
('pi1b', PiModel('Raspberry Pi 1 Model B', length=85, width=56, height=25, ports=[
PortCutout('top', offset=2, span=15, depth=16, inset=3), # USB 1
...
])),
])A PortCutout is a rectangular hole on one wall, in millimetres and face-local
coordinates (side, offset along the wall, span along the wall, depth across the
wall, inset from the fold edge) — see the comment above PI_MODELS for the full
convention. The whole net (outline, faces, text, fold lines) is parametric, so adding a
model is just one data entry.
Adding a model: take the board dimensions and port positions from the official
Raspberry Pi mechanical drawings, validate them against a printed prototype, then append
a PiModel entry to PI_MODELS and a matching <option> to yappi.inx (the option
value must equal the dict key). Only add models whose measurements have been verified —
wrong cutout positions produce an unusable case.
The Yappi Inkscape plugin is licensed under the terms of the Apache License 2.0.


