/Raspberry-pi-instant-camera-thermal-printer

Raspberry pi instant camera with thermal printer

Primary LanguageShell

Raspberry-pi-instant-camera-thermal-printer

Raspberry pi instant camera with thermal printer

camera


Raspberry pi Zero
Camera Module
Thermal Printer (mine needs a minimum 2a @ 5v to run)
Led for flash (i got a super bright 3.3v white LED online, but if you only have a 5v one use a NPN transistor inline)
Buttons
Locking button with LED
For power im using a DFRobot MP2636 and a single lipo cell


Pre-requisites: (install cups and gpio utils)
sudo apt-get install libcups2-dev libcupsimage2-dev git build-essential cups system-config-printer wiringpi


Configure CUPS
Set up the camera in raspi-config
connect usb printer and install drivers, search for ZJ-58 drivers on GIT
add a GPIO button for the shutter to GPIO 21 and GND
add a bright LED to GPIO 5 and GND


run the script!
just added a few extra lines to run second flash LED, shutdown button and system LED

camera