The code for my Raspberry Pi Photobooth
More information on http://www.haegi.org
- Raspberry Pi (e.g. Zero)
- Raspberry Pi Camera module
- HDMI screen
- Canon Selphy photo printer
- Big huge red button
- 3 Aracade buttons
- 3 green LEDs
- 14 WS2801 LEDs strip
- wooden case
the following 8mm wood plates are used:
- 2x 266x300mm (front and back)
- 2x 266x166mm (top and bottom)
- 2x 200x300mm (left and right)
Add the following to your config.txt (see https://www.waveshare.com/wiki/7inch_HDMI_LCD_%28C%29#Working_with_Raspberry_Pi)
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
hdmi_drive=1
- Activate picamera in raspi-config
sudo raspi-config
- Enable SPI in raspi-config
sudo raspi-config
- Install the
Adafruit_Python_WS2801
python module (https://github.com/adafruit/Adafruit_Python_WS2801#installation)
- Install cups
- Add Canon Selphy printer to cups (https://localhost:631)
All the neccessary parameters are configured in config.py
.
When starting the python script the intro screen is visible. You can select whether you want to make a single or a multi shot with the corresponding arcade buttons. With a press on the big red button an picture is captured. After the capturing process the images are combined with an optional label image. Afterwards you see a preview of the picture which can be printed with the corresponding arcade button. When pressing the big red button you can capture the next picture.
This photobooth is inspired by https://github.com/jibbius/raspberry_pi_photo_booth, https://github.com/safay/RPi_photobooth, https://github.com/drumminhands/drumminhands_photobooth, https://github.com/zoroloco/boothy