-
1Install the OS on your single-board PC
https://www.armbian.com/ for my case
-
2Configure software and devices
- Install
fswebcam
(sudo apt-get install fswebcam
) and connect your webcam- Connect and configure your printer (very useful link https://learn.adafruit.com/networked-thermal-printer-using-cups-and-raspberry-pi/connect-and-configure-printer)
-
3Add button and LED
- Connect button (for my case
PA.10
pin is used as input and connected to one button's pin and another pin is connected to 3.3V pin)- (optional) Connect button's LED or separate LED (for my case
PA.14
pin is connected to LED's + terminal and GND pin to LED's - terminal) -
4Install scripts
- Clone https://github.com/kami4ka/Poor-Man-s-Polaroid to your single-board PC
- Install requirements for Python script (
pip install -r requirements.txt
)- Change GPIO lib setup inside script to fit your wiring
- Add
main.py
file to crontab for run after single-board PC boot (https://www.cyberciti.biz/faq/linux-execute-cron-job-after-system-reboot/). So my crontab have only one line:@reboot python /home/kami/printer/main_app/main.py
, where/home/kami/printer/main_app/main.py
is a path tomain.py
file
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.