Skip to the content
2 layers46.5 × 39.5 mmRpi gpio board, the printed circuit board in 3D

Backup and sync your photos on the go!!!

Size
46.5 × 39.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
23
Nets
30
Pads
75
Tracks, vias
86, 11
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
28 Nov 2021
Updated
17 Dec 2021

Overview

Rpi gpio board is an open-source printed circuit board by klystrom, from the klystrom/Portable-Ingest-Station repository on GitHub. It is a 2-layer board of 46.5 × 39.5 mm with 23 parts on 30 nets, routed with 86 tracks and 11 vias.

It is built around the RU1J002YNTCL. Its parts include 11 resistors, 5 transistors, 4 diodes, 1 connector and 1 switch.

Main components

1

README

README.md

Portable Ingest Station

Backup and sync your photos on the go!!!

About Portable Ingest Station

This project is intended to solve my worries of backing up my photos while on trips.

It aims to do the following:

  1. Backup from SD card to local storage (SSD or other targets)
  2. Backup from local storage to own storage server

Software Requirements

  1. Raspberry Pi OS
  2. Python
  3. Git
  4. KiCAD (for GPIO board)
  5. NextCloud Server

Hardware Requirements

  1. Raspberry Pi 4 (Only tested on Rpi4 and recommend it for the fast USB file transfer speed and WiFi capability)
  2. Power supply for Raspberry Pi
  3. Micro SD card (for Raspberry Pi OS)
  4. SD Card reader
  5. Local storage device (In my case it's an SSD in a USB to SATA enclosure)
  6. RPI GPIO Board

Installation

YouTube Video:

Overview:

Portable Ingest Station Software Overview

Software Setup:

Portable Ingest Station Software Setup

Step 1: Prepare Raspberry Pi OS

You will need the latest version of Raspberry Pi OS. Methods of getting the OS onto the SD card will not be covered here as there are many resources online that covers this. The easiest way is to use the Raspberry Pi Imager.

Step 2: Boot and Upgrade Raspberry Pi OS

Plug the SD card into Raspberry Pi and power it up.

Note: If you are doing this process in headless mode (no monitor), you might want to setup wifi connection and SSH access BEFORE plugging in the SD card.

After finished booting up. Complete the usual first boot stuff such as changing default password, expand filesystem, etc.

Update the Raspberry Pi OS by executing the following command:

text
sudo apt update && sudo dist-upgrade

Press enter when prompted to proceed with upgrade.

Step 3: Connection Configuration

When on the go, you probably would not be able to plug the raspberry pi into monitor and keyboard to configure the WiFi connection. So you would need to setup that connection in advance. This internet connection is used by NextCloud to sync the files in your local storage back to your NextCloud server.

Firstly turn on the hotspot on your smartphone. In Raspberry Pi OS, connect to your hotspot SSID. Enter the password. It should have internet access through your smartphone.

Note: If you are doing this process in headless mode, installing VNC would help alot.

Step 4: Clone Repository

In Raspberry Pi desktop, clone this repository.

text
git clone https://github.com/klystrom/Portable-Ingest-Station.git

Step 5: Setup Nextcloud

This is the part where it gets abit sketchy. Since the the support for official Nextcloud desktop app is non-existent to say the least. So we're going to install an older version of it. It should work after resolving the dependencies.

Guide to install it is here. Be sure to follow along the troubleshooting steps mentioned in the thread.

Step 6: Configure

Plug in your SD card and storage, they should automount under Raspberry Pi OS.

Find out where they are mounted and edit app_nextcloud_sync_check.py.

Note: You can use either of the following commands to find the mountpoints. Look for the keyword "/media/"

df -h

sudo cat /proc/mounts

Your SD card might have different folder structure than mine (mine is based on Fujifilm X-T2 SD Card) and you might want the files to be saved to a specific directory in the local storage. For that, edit the path in these app_nextcloud_sync_check.py.

Now is the most convenient time to test it out. As after this, you would need to reboot the Raspberry Pi in order to test after every change. So put on the GPIO board and test to make sure it works before proceeding to the next step.

Step 7: Run On Boot

We want the two Python scripts to run on boot. For this, we are using systemd.

Note: Refer here for more info.

Create two new .service files in the systemd directory.

text
sudo nano /lib/systemd/system/local_ingest_sync.service
sudo nano /lib/systemd/system/nextcloud_sync_check.service

Edit local_ingest_sync.service, paste in the following content. Then exit and save by Ctrl+X then enter.

text
[Unit]
Description=Sync SD to local storage
After=multi-user.target

[Service]
ExecStart=/usr/bin/python3 <path to repo>/app_portable_ingest_station.py

[Install]
WantedBy=multi-user.target

Edit nextcloud_sync_check.service, paste in the following content. Then exit and save by Ctrl+X then enter.

text
[Unit]
Description=Check nextcloud sync status
After=multi-user.target

[Service]
ExecStart=/usr/bin/python3 <path to repo>/app_nextcloud_sync_check.py

[Install]
WantedBy=multi-user.target

Enable the services.

text
sudo systemctl daemon-reload
sudo systemctl enable local_ingest_sync.service
sudo systemctl enable nextcloud_sync_check.service

DONE!

After reboot, everything should be working. Enjoy!

Limitations

Here are the current limitations that I'm aware of. Feel free to report or help enhance this!

  1. No easy way to connect to another WiFi Network since there's no UI. i.e. hotel WiFi
  2. Sync status LED not accurate as it depends on the size of a file generated by Nextcloud.
  3. If the local storage is full, there are no indication.

Parts

23
QtyValueFootprintReferences
610KResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR5, R6, R7, R8, R9, R10
51KResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR1, R2, R3, R4, R11
5RU1J002YNTCLPackage_TO_SOT_SMD:SOT-323_SC-70_HandsolderingQ1, Q2, Q3, Q4, Q5
1ARMEDLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD4
1BuzzerBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1GPIOConnector_PinSocket_2.54mm:PinSocket_2x12_P2.54mm_VerticalJ1
1IN PROGRESSLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD1
1RSYNC DONELED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD2
1SW_Push_DualSwitches:TACTILE_SWITCH_SMD_12MMSW1
1SYNC DONELED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD3

Similar boards

  • 4 layers190.8 × 12.1 mmWARBL2 5.1, the printed circuit board in 3D

    WARBL2 5.1

    amowry/WARBL2

    WARBL2 Code and design files

    94 parts33GPL-3.0
  • 2 layers15.2 × 50.8 mmPico dirty blaster ls, the printed circuit board in 3D

    Pico dirty blaster ls

    steieio/pico-dirty-blaster

    Collection of Raspberry Pi Pico board adapters for use with Pico-DirtyJTAG

    14 parts15CC0-1.0
  • 4 layers75 × 50 mmEOPRA interface, the printed circuit board in 3D

    EOPRA interface

    seanboe/eOPRA_suite

    Contains the board files (KiCAD + gerbers) and CLI for the eOPRA device control suite used in research on transfemoral and transtibial prosthetics at the MIT Biomechatronics Lab.

    256 parts
  • 2 layers65 × 56 mmPi servo hat, the printed circuit board in 3D

    Pi servo hat

    earthtojake/text-to-cad

    Design physical products with AI

    23 parts26kMIT
  • 2 layers14 × 100 mmYunomi, the printed circuit board in 3D

    Yunomi

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    23 parts3kApache-2.0
  • 2 layers50.8 × 52.2 mmFuhhni, the printed circuit board in 3D

    Fuhhni

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    23 parts915
  • 2 layers138.8 × 89.8 mmKeyboard pcb, the printed circuit board in 3D

    Keyboard pcb

    diepala/cantor

    Cantor keyboard, a 42 key diodeless split keyboard.

    23 parts756GPL-3.0
  • 2 layers32.9 × 53.3 mmGoatgdo, the printed circuit board in 3D

    Goatgdo

    Kaldek/rat-ratgdo

    Open source schematics for ratgdo PCB

    23 parts511MIT

Questions

How big is the Rpi gpio board PCB?

It measures 46.5 × 39.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Rpi gpio board use?

23 parts, built around the RU1J002YNTCL. 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.

Where can I download the Rpi gpio board KiCad files?

From the klystrom/Portable-Ingest-Station repository on GitHub, at the commit this page was made from: the board is hardware/rpi_gpio_board/rpi_gpio_board.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Rpi gpio board design in my own project?

Its repository states no licence, so its author keeps all rights: ask klystrom before reusing the design.