
Sweepv2
davidphilipbarr/Sweep
Sweep - a small promicro based keyboard inspired by the Ferris.

The worst possible use of five Rasperry Pi Zeros
Terrible is an open-source printed circuit board by al177, from the al177/terrible-pi repository on GitHub. It is a 2-layer board of 38 × 65.3 mm with 53 parts on 35 nets, routed with 1,019 tracks and 88 vias.
It is built around the CY7C65632-48AXC and AP2191DWG. Its parts include 25 capacitors, 13 resistors, 7 connectors, 5 ICs and 1 crystal.

A supercomputer, but fun sized. And not super.
In this repo you'll find hardware designs for the Terrible-Pi, a cluster computer made from four Raspberry Pi Zero boards used as compute elements and one Raspberry Pi Zero W as a head node and network router.
terrible-pi is based around a USB backplane that powers and interconnects all five Pi Zeros and allows the head node to control power to each of the compute nodes. The USB boot feature of the Pi Zero is used to automate deployment of new OS images to each compute node.
Up to date news on this project can be found at this Hackaday project.
The terrible_pcb directory has a board design for the backplane and a 3D printable case. See terrible_pcb/README for instructions for printing the case and the backplane board.
etc contains config files to be copied on top of the Raspbian install for
the head node.
wpa_supplicant.conf is a template WiFi config for the head node. This is used for headless setup of the head node Raspbian SD card for remote SSH access.
nodeimg_build.sh is a script for extracting a Raspbian distribution image into
a set of files used to deploy new compute nodes.
node_init.sh is a script used to upload the compute node Raspbian generated
by nodeimg_build.sh to the SD card of a compute node.
Get the latest Raspbian (https://downloads.raspberrypi.org/raspbian_lite_latest) and install to a microSD
Mount the first (FAT) partition of the card on a PC.
Copy "wpa_supplicant.conf" from this repo to the card. Edit it so that "YOUR_SSID" is replaced by the WiFi network name that you want the head node to connect to, and "YOUR_PASSPHRASE" is replaced by the network's key. Use your Google-fu if you can't get it to work.
Create an empty file on the card named "ssh". Use the UNIX command "touch ssh" or just open and save a new file "ssh" with your text editor.
Boot the microSD on the Pi Zero W
After 4-5 minutes, try SSHing as "pi" to the Zero W with the hostname "raspberrypi", "raspberrypi.lan", or "raspberrypi.local". Use the password "raspberry". If your router isn't serving DNS for local domains, you may have to check the router's DHCP lease logs to see what IP the head node has.
Now that you're logged into the Pi Zero W, update to the latest Raspbian packages:
sudo apt-get -y update && sudo apt-get -y upgradesudo apt-get -y install libusb-1.0-0-dev nfs-kernel-server git \
pdsh udhcpd iptables bridge-utilscd
git clone https://github.com/mvp/uhubctl.git
pushd uhubctl
make
sudo cp uhubctl /usr/local/bin/.
sudo chown root:root /usr/local/bin/uhubctl
popdgit clone https://github.com/raspberrypi/usbboot.git
pushd usbboot
make
sudo cp rpiboot /usr/local/bin/.
sudo mkdir /usr/share/rpiboot
sudo cp -a msd /usr/share/rpiboot
sudo chown -R root:root /usr/share/rpiboot
sudo chown -R root:root /usr/local/bin/rpiboot
popdgit clone https://github.com/al177/terrible-pi.gitsudo chown -R root:root /home/pi/terrible-pi/etc
sudo cp -a /home/pi/terrible-pi/etc/* /etc/.sudo systemctl enable udhcpd
sudo systemctl enable rpcbind
sudo systemctl enable nfs-kernel-serversudo mkdir /srv/pihome
sudo chown pi:pi /srv/pihome
chmod 755 /srv/pihome
mkdir /srv/pihome/.ssh
chmod 700 /srv/pihome/.sshReboot the head node.
SSH to the head node again. The config files copied over have changed the hostname to "head". So if you connected as "raspberrypi.lan", "raspberrypi", or "raspberrypi.local" above, use "head.lan", "head", or "head.local" when reconnecting.
Make an empty passphrase SSH key so the head can automatically connect to the nodes:
ssh-keygen -t rsa -f /srv/pihome/.ssh/terrible.rsa -N ""
cp /srv/pihome/.ssh/terrible.rsa.pub /srv/pihome/.ssh/authorized_keys
chmod 600 /srv/pihome/.ssh/authorized_keys
mkdir -p ~/.ssh
chmod 700 ~/.ssh
cp /srv/pihome/.ssh/terrible.rsa ~/.ssh/.wget --trust-server-names https://downloads.raspberrypi.org/raspbian_lite_latestNote the filename that it downloads as.
sudo terrible-pi/nodeimg_build.sh 2017-09-07-raspbian-stretch-lite.zipThis will take 10-15 minutes. The result will be a directory "tcboot" that contains the boot files and filesystems for the nodes. This process needs to be repeated only when changing or upgrading the Raspbian install on the compute nodes.
Insure that the microSD cards in nodes do not contain the Raspberry Pi bootloader, or the USB boot method used to manage this cluster will not work. Insure that "bootcode.bin" does not exist in the root of any of the partitions on any of the cards. If in doubt, do a full erase on the SD card to wipe out the bootloader in any of the partitions.
Turn off all the nodes. If the nodes all power up in bootstrap mode simultaneously, the image transfer script won't work.
sudo uhubctl -r 4 -a offfor N in 1 2 3 4; do sudo terrible-pi/node_init.sh tcboot $N; doneThis takes 5-10 minutes per node depending on the speed of the SD cards on the compute node Pi Zeros.
To boot the compute nodes, first start the rpiboot server in another terminal session:
sudo rpiboot -o -l -d /home/pi/tcbootThen cycle power on all of the nodes:
sudo uhubctl -r 4 -a cycleThe boot will take 2-3 minutes. The nodes should be pingable once they are done.
Before SSHing to a node in any given session, start the key agent and add the SSH key:
eval `ssh-agent`
ssh-add ~/.ssh/terrible.rsaYou can SSH to a node by name:
ssh node1Or you can run a command on all nodes with pdsh:
pdsh -R ssh -w node1,node2,node3,node4 hostnameRaspberry Pi Zero 1.3 models pi0computer.stl and pi0sdcard.stl are created by jdhorvat and licensed CC-BY-NC. OpenSCAD parametric fan model is created by GelatinousSlime and licensed CC-BY-SA. All other files in this tree are by Andrew Litt and licensed as CC-BY-SA.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 15 | 0.1uF | Capacitors_SMD:C_0603_HandSoldering | C2, C3, C5, C6, C11, C12, C15, C16, C18, C20, C21, C22, C23, C24, C25 |
| 5 | 10K | Resistors_SMD:R_0603_HandSoldering | R3, R8, R11, R12, R13 |
| 5 | 10k | Resistors_SMD:R_0603_HandSoldering | R1, R2, R4, R6, R10 |
| 5 | USB_OTG | hirose_usb:USB-Hirose-ZX20-B-5S | P1, P2, P3, P4, P5 |
| 4 | 120uF | terrible_misc:C_Radial_D8_L6_P2.5 | C1, C4, C10, C14 |
| 4 | AP2191DWG | TO_SOT_Packages_SMD:SOT-23-5 | U2, U3, U4, U5 |
| 3 | 1uF | Capacitors_SMD:C_0603_HandSoldering | C13, C17, C19 |
| 2 | 20pF | Capacitors_SMD:C_0603_HandSoldering | C8, C9 |
| 1 | 10uF | Capacitors_SMD:C_0805_HandSoldering | C7 |
| 1 | 12MHz | Crystals:HC-49V | Y1 |
| 1 | 47k | Resistors_SMD:R_0603_HandSoldering | R7 |
| 1 | 650.0R | Resistors_SMD:R_0603_HandSoldering | R9 |
| 1 | CONN_01X02 | Pin_Headers:Pin_Header_Angled_1x02 | P7 |
| 1 | CY7C65632-48 | Housings_QFP:TQFP-48_7x7mm_Pitch0.5mm | U1 |
| 1 | Ferrite | Capacitors_SMD:C_0805_HandSoldering | FB1 |
| 1 | LOGO | terrible_misc:skull | G*** |
| 1 | NP | Resistors_SMD:R_0603_HandSoldering | R5 |
| 1 | USB_OTG | Connect:USB_Micro-B | P6 |

davidphilipbarr/Sweep
Sweep - a small promicro based keyboard inspired by the Ferris.

hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI


polpo/picogus
Emulation of ISA sound cards and CD-ROM on Raspberry Pi Pico (GUS, SB/Adlib, MPU-401, Tandy, CMS, Panasonic CD-ROM) with USB mouse/joystick support

strangeparts/niubi-headphones
Flexible circuit board design for adding a headphone jack to an iPhone 7


Teslafly/Dead-OpenBMS-dead
A scalable, open source battery management system

nodestark/mdb-esp32-cashless
ESP32-based MDB cashless device for vending machines, supporting EVA DTS DEX/DDCMP telemetry and payments over the MDB protocol via Bluetooth and MQTT
It measures 38 × 65.3 mm and has 2 copper layers, 0.8 mm thick.
53 parts, built around the CY7C65632-48AXC and AP2191DWG. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the al177/terrible-pi repository on GitHub, at the commit this page was made from: the board is terrible_pcb/terrible.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask al177 before reusing the design.