This is a polaroid based project for the rpi
requirements raspberry pi 3 rasbian jessie image on 16gb SD card (8gb too small) internet access on the raspi pip + python raspi camera v2 a button, led, 220 ohm resistor and breadboard Thermal printer to suit a raspi 3. I used this printer https://www.adafruit.com/product/2751 . Note you will need to use the printer USB interface, rather than TTL serial.
p.s.follow the wireing from here (https://github.com/Uncraftablecreeper/RPI-Polaroid/blob/master/cartoon_camera_schematic_bb.png) IMPORTANT!!!!Use 4 AA eneloop batteries since these can power the pi and thermal printer safely also my battery box had the switch pre-installed so i didn't need to mess with switch wireing (trust me its hard)
#Let's GO!
- run cd /home/pi and clone this repo with this command git clone https://github.com/Uncraftablecreeper/RPI-Polaroid 2.run ./installer.sh
3.Your thermal printer may have arrived with a test page in the box or the paper bay. If not, or if you threw that away, you can generate a new one by installing a roll of paper and holding the feed button while connecting power.
Look for the baud rate that’s printed near the bottom of the page. This is typically either 9600 or 19200 baud. This is important…you’ll need to know the correct value for your printer later (Don’t fret if your printer is “only” 9600 baud. This has no impact on the speed of printing! The paper feed rate is really the bottleneck…the baud rate just determines how we’ll get the Pi and printer communicating.)
Once your printer’s connected and powered up Reboot into the desktop.
4.From the Pi menu, select Preferences→Print Settings.
If the “Print Settings” menu option is not present, the ZJ-58 CUPS filter didn’t install. Reinstall and try again.
No printers have been set up yet, so click the “Add” button: you should see “USB Serial Port #1” in the Devices list. Highlight that item (not Serial Port #1, but “USB Serial Port #1” specifically), select the correct baud rate, then click the “Forward” button.
5.On the next form, click “Select printer from database,” then scroll to the very bottom of the list and select “Zijiang” — this is a brand of thermal printer that happens to use the same command set.
Click “Forward” again, and on the next form select the “Zijiang ZJ-58” driver:
“Forward” once more, then you’ll have the option of assigning your printer a name…or just stick with the default ZJ-58:
Finally, click “Apply” and you’ll now see the ZJ-58 printer in the Print Settings list:
Click the ZJ-58 icon, then from the “Printer” menu select “Properties”:
Set “Feed distance after print” to “feed 12mm,” then click OK.
Your mileage may vary; if you want more or less paper feed after each print, this is where you’ll find it later.
After clicking “OK,” the printer should now fully work with the Raspberry Pi via the “lp” or “lpr” services.
Let’s give it a try! Back to the Terminal window…
6.run echo "Sucsessful." | lp
This should print the “Sucsessful.” string again…but unlike the first test, you’ll notice this one isn’t using the printer’s internal font…it’s actually rasterizing the text and we can tweak settings such as size.
7.now it needs to run on startup
Open the main autostart file in a text editor. In a new terminal window type the following command: sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
then press ↵ Enter. This will open the main autostart file in the nano editor. Commands added to this file will launch at startup regardless of who is logged in.
Using the arrow keys, navigate to the end of the second line and press ↵ Enter. This will created a new line above the @xscreensaver -no-splash entry. Many users have reported that commands added below this line do not run successfully so it's common practice to add your custom commands above the @xscreensaver entry
@lxterminal -e "/home/pi/RPI-Polaroid/start.sh
This will execute the script from a new terminal window
Save the Autostart File
When you have entered the proper commands to launch the script, press Ctrl+X. You will be asked if you would like to save your changes, type Y and press ↵ Enter.
First Github repo Good init :)