Skip to content

masone/holga-pi

Repository files navigation

Digital Holga

The holga-pi is a raspberry pi based digital holga. It snaps pictures and uploads them via wifi. Also includes a simple webapp to display images in realtime.

Hardware

Parts

Wiring

I connected the pi to the original camera shutter, which works fine. My LED is placed in the viewfinder. The flash is mounted in the original position and wired up to the light sensitivity switch above the lens. The flash is powered by a separate battery to not drain the one of the pi.

For inspiration, check the images folder.

Setup

Raspberry Pi

Camera script

git clone https://github.com/masone/holga-pi.git
cd ~/holga-pi/camera
sudo npm install --unsafe-perm epoll

To start the process manually:

CLOUDINARY_URL=cloudinary://... sudo -E node index.js

Logs can be found in tail -f ~/holga-pi.log

The gpio library requires you to run the process with sudo rights.

Start on reboot

Install https://github.com/resin-io/resin-wifi-connect to create a hotspot creation when network is unavailable. Once the pi has wifi, it will start the camera.

Firstly, configure your CLOUDINARY_URL in holga-pi.service, then:

sudo cp ~/holga-pi/camera/holga-pi.service /etc/systemd/system/holga-pi.service
sudo systemctl enable /etc/systemd/system/holga-pi.service

The gpio library and wifi-connect require you to run the process with root.

Webapp

The camera uploads images to cloudinary, which can be displayed on the web.

git clone https://github.com/masone/holga-pi.git
cd ~/holga-pi/ui
npm install
node index.js

For available image filters, see https://cloudinary.com/documentation/image_transformations

LED Behavior

  • Solid: Ready
  • Fast blink: Processing or uploading a snapshoat
  • Slow blink: Snapping or uploading failed

Notes to self

About

🤳🏻 A raspberry pi based digital holga

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published