Open Source · Permacomputing · SBC Camera Project
Two complete approaches to building a modular digital camera
from a single-board computer, open-source software, and off-the-shelf parts.
Built for repairability, transparency, and longevity.
About this project
Both builds share the same permacomputing philosophy — every component is replaceable, every dependency is open-source, and the entire process is documented so anyone can replicate it.
What they share
Which should you build?
Sweet Potato — if you want the simplest path. USB peripherals mean zero driver configuration. Great for beginners.
Orange Pi 5 — if you want more power and resolution and don't mind device tree overlays and compiling a custom touch driver.
Hardware
Setup steps
Ubuntu 24.04 base. Boot, login as mycamera.
video0 is the SoC decoder — always use video1 for the camera.
v4l2-ctl --list-devices
sudo apt install fswebcam evtest fbi
fswebcam -d /dev/video1 -r 3264x2448 \
--no-banner photo.jpg
Select device 0 — touch the screen to see ABS_X / ABS_Y events.
sudo evtest
Touch-native Python UI. Renders to framebuffer — no X11 needed.
sudo apt install python3-kivy
sudo apt update to test connectivity instead.
Hardware
Setup steps
Official Orange Pi 5 image. Boot, login as orangepi.
Enables the MIPI camera and SPI4 bus. Use m0, not m1 — m1 breaks ethernet.
overlays=ov13850-c1 spi4-m0-cs1-spidev
dmesg | grep ov13850
v4l2-ctl --list-devices
WiringOP for GPIO + ADS7846 daemon patched for software CS on pin 26.
sudo apt install libx11-dev libxtst-dev
git clone .../WiringOP && ./build
git clone .../ADS7846-X11-daemon
# apply 3 patches → make → calibrate
sudo apt install python3-opencv
Full source code included in the guide. P=photo V=video S=settings Q=quit.
python3 camera_app.py /dev/video11