jordanmang
Posts: 1
Joined: Wed Jul 17, 2019 10:07 pm

Thermal Printing with Raspberry Pi

Wed Jul 17, 2019 10:19 pm

Hello all you beautiful people!

I am fairly versed at the setting up of my thermal printer with Raspberry Pi, thanks to this wonderful tutorial and the tutorial provided to me by Adafruit:

https://www.hackster.io/videos/134

BUT! I have a few questions regarding specifics to a project I am working on.

My hope is to set the printer up so that when you push a button one of five different images may come out.
This would be fairly easy for me to set up on an Arduino if the memory wasn't so small! I was assuming that a Pi would be the best option?

What it boils down to is:
How do I set the Pi up to receive input from a button?
How do I set the code up to print one of five images?

Thank you all! This is my first forum post ever and I hope I did it without looking like a fool.

User avatar
scruss
Posts: 2360
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Thermal Printing with Raspberry Pi

Wed Jul 17, 2019 11:39 pm

You likely could run it on an Arduino if you stored the images in PROGMEM.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

User avatar
neilgl
Posts: 648
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: Thermal Printing with Raspberry Pi

Wed Jul 17, 2019 11:52 pm

Maybe use gpiozero (python) on the pi to look at button presses, then print one (of five) images.

Andyroo
Posts: 3832
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Thermal Printing with Raspberry Pi

Thu Jul 18, 2019 12:24 am

Welcome to the forum,

Add an SD card to the Arduino to store the images and use https://www.arduino.cc/en/Reference/SD to read them :) this has the advantage that it’s simple to change the pictures.

See https://dronebotworkshop.com/sd-card-arduino/ for some details.

No need to use a Pi (that’s another black mark for me here) :o
Need Pi spray - these things are breeding in my house...

Return to “General discussion”