Pi Photobooth

Self-running photobooth using Raspberry Pi for fun and profit

Created by Mike Kelly / @mikekellyio

Why?

it's a photobooth running on a Raspberry Pi!

Hardware Ingredients

Raspberry Pi

Starter Kit

Camera

Multimeter

Soldering Iron

Really Big Red Button

Software Ingredients

GPhoto2

Linux cli camera control

Rails Web App

Photobooth Client

Use a framework for what its best at

Standing up something fast

PiPiper Gem

Hardware Event Loop listening for button presses.

Hook it all up

Press the Red Button

Event Loop processes the event

  • Button Press is detected.
  • Camera is commanded to take a picture.
  • Image is downloaded from camera.
  • Image is uploaded to web app.

All Web clients receive new image

Photobooth page simply polls for the most recent images.

Demo!

Gotchas

Gphoto2 USB Permissions

Need to run this to allow gphoto2 to connect to camera


#!/bin/bash
#
dev=`gphoto2 --auto-detect | grep usb | cut -b 36-42 | sed 's/,/\//'`
echo "/dev/bus/usb/${dev}"
sudo chmod 777 /dev/bus/usb/${dev}
exit 0
						

Links

THE END

By Mike Kelly / @mikekellyio