OpenFrameworks library to control mini thermal printers (
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc printing images Mar 17, 2014
example fixing typo Sep 28, 2014
src test up May 16, 2014
.gitignore is printing Mar 17, 2014 right heading Apr 27, 2014
ofxaddons_thumbnail.png png thumb Mar 29, 2014

Adafruit Mini Thermal Printer

This openFrameworks addon let you connect Adafruit's Mini Thermal Printer to any of your openFrameworks projects.


Clone this repository into your openFrameworks/addons folder:

cd openFrameworks/addons
git clone

Setting up

On MacOS/Linux

You can use the printer directly from your computer using an USB to TTL Serial Cable

You need to research witch port open in the /dev/. Should look like this:"/dev/tty.PL2303-00002014");

On RaspberryPi

Follow this instructions for the connection of the wires and GPIOs. (Also here is another nice tutorial)

By default the TXD and RXD pins are connected to a console. We need rid of this by editing this file:

sudo nano /boot/cmdline.txt

Delete all references to 'ttyAMA0'. So you will have something like this:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait

and will look like this:

dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait

Then edit the /etc/inittab

sudo nano /etc/inittab 

and find the following line:

T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

Restart your RaspberryPi using:

sudo reboot

The in your code open the connection at:"/dev/ttyAMA0");


Once the printer connection is open you can print text:

printer.println("hello world");

Dithered images:


And Barcodes:

printer.printBarcode("12345678", EAN8);

You will also find that there are lot's of ways to style your text;





printer.setUnderline(true); printer.setUnderline(false);

Happy projects for you ;)

<iframe class="vine-embed" src="" width="575" height="575" frameborder="0"></iframe><script async src="//" charset="utf-8"></script>