Skip to content

TinkurLab/ApprecationBooth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tinkur Appreciation Booth

A photobooth to help appreicate the people you care about! 🙌

Hardware

  • Raspberry Pi Model B+ v1.2 (pinout)
  • Raspberry Pi Camera v1
  • LCD Matrix
  • Button
  • Mac Laptop
  • HiTi P510L Dye Sublimation Photo Printer
  • hookup wire, power supplies, ethernet cable, etc

Raspberry Pi Setup

  1. Download Raspbian image
  2. Flash image to a SD card using Etcher
  3. Connect to monitor, keyboard, mouse, Ethernet and power up
  4. Configure for local timezone, US Keyboard
  5. Run raspi-config and enable the camera
  6. Update Pi using sudo apt-get update and sudo apt-get dist-upgrade
  7. Verify Python 3.5.x or > is installed by running python3; upgrade if needed
  8. Run sudo apt-get install graphicsmagick
  9. Run pip3 install RPi.GPIO
  10. Run pip3 install python-dotenv
  11. Run pip3 install luma.led_matrix
  12. Run sudo apt-get install sshpass
  13. Run sudo apt-get install imagemagick
  14. Update GPU memory to 144
  15. Create a .env filr with the following variables:
PHOTO_FRAMES=4
FLOWDOCK_TOKEN=123456
FLOWDOCK_ORG=123456
FLOWDOCK_FLOW=123456
PRINTER_NAME_OR_IP=192.168.1.1
PRINTER_USER=john
PRINTER_PASSWORD=doe

Obtain Flowdock token from https://flowdock.com/account/tokens.

  1. Run sudo raspi-config and enable wait for network under boot options.
  2. Run sudo nano /etc/rc.local with the following:
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

# Start Photobooth
printf "Starting Photobooth"
cd /home/pi/Documents/src/TinkurBooth/
sudo -H -u pi /usr/bin/python3 boothsnap.py &
exit 0
  1. To verify script is starting when the Pi boots, run systemctl status rc.local.service to view the rc.local startup logs.

Laptop and Printer Setup

  1. Enable ssh / sftp / scp on Mac; optionally create a new service account for the transfers
  2. Install HiTi P510L drivers
  3. Install sshpass on Pi sudo apt-get install sshpass
  4. Manually SSH to the laptop once from the Raspberry Pi to answer yes to the trusted prompt (or update known_hosts)
  5. Run python unit_print.py to start the script that looks for new images and prints them

Wiring

LCD Display

LCD Pin Raspberry Pi Pin
VCC 5v
GND GND
DIN MOSI
CS CE0
CLK SCK

Button

Button Pin Raspberry Pi Pin
Button (polarity doesn't matter) GPIO24
Button (polarity doesn't matter) GND
LED + GPIO21
LED GND 220Ω resistor to GND

Marketing

Broadcom Chips

  • BCM2837 Quad Core 1.2GHz Broadcom 64bit CPU
  • BCM43438 wireless LAN and Bluetooth Low Energy (BLE) on board
  • MMAL (Multimedia Abstraction Layer) is a C library designed by Broadcom for use with the Videocore IV GPU on the Raspberry Pi

Reference

License

Created by Adam Zolyak and Matthew Gorbsky

GNU GENERAL PUBLIC LICENSE

About

A photobooth to help appreicate the people you care about! 🙌

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages