thermal printers/What is in the box/03. Receipts and labels are different machines
What is in the box · 03 of 11

Receipts and labels are different machines

One kit prints receipts on a continuous roll, the other prints die-cut labels with a gap between them. They share a base board and a paper width, and disagree about almost everything a sketch cares about.

Same paper, different machines

Both printers put down 8 dots per millimetre — 203 dpi — across a line of 384 dots, which works out at 48 mm of printable width on 58 mm paper. That much they share, along with the base board and the 9 V it makes.

Two printers, one base board
Receipt printer · 9600 baud
Printer
Baud
9600
Commands
ESC/POS receipt mode
Supply
9 V
A receipt printer just runs the paper. There is nothing to line up: you send text, it feeds as far as it needs, you tear it off. It talks at 9600 baud, which is twelve times slower than the label printer and the reason its first line appears the way it does. Both take 9 V from the same base board and print 48 mm wide on 58 mm paper.

What differs is the shape of the paper and, following from it, everything else.

The receipt printer

The receipt printer module at an angle: a black rectangular case about 82 by 46 by 45 millimetres with a hinged paper cover on top, a white label on the side reading Receipt Printer, TTL:9600 N-8-1 9V, github.com/lonelybinary/Receipt-Label-Printer, and a green circuit board underneath carrying three white sockets and one red one.
The sticker is the reference for two facts the sketches need: 9600 baud, and 9 V.

A continuous roll, no marks on it, nothing to line up. You send text and it feeds as much paper as the text needs. It speaks ESC/POS, the command set almost every till printer in the world understands, at 9600 baud.

The label printer

The label printer module from behind: a black square case with a driver board across the top, a printed legend naming four connector groups — POWER with GND and 9V, RS232 with DTR TX RX GND, TTL with DTR TX RX GND, and USB with GND, D plus, D minus and 5V — and a white sticker on the case warning that a PD USB-C adapter supporting 9V output must be used and not a laptop's USB-C port.
Four sockets, named on the case. TTL is the one this book uses; the others exist for hosts that are not a microcontroller.

Labels are die-cut rectangles on a backing strip with a gap between each one. A sensor looks through that gap, so the printer always knows where a label starts — and every job therefore has a size, a frame and a moment where it prints, rather than being a stream of characters. It speaks label mode, a different command family whose commands begin 1A, at 115200 baud.

It also has a USB socket the receipt printer does not, for driving it from a computer rather than a microcontroller. That is a different project from this book, which goes in on the TTL header on both machines.

When it does not work

Which one did I buy?

Look at the sticker on the back of the printer. The receipt printer's reads TTL:9600 N-8-1 9V and the unit is a long rectangle about 82 mm across. The label printer's reads TTL 115200 N-8-1 9V and the unit is a square about 85 mm on a side with a tear bar along the front.

Can the label printer print receipts?

It can print on continuous paper if you load some, but it expects to find a gap and will feed looking for one. The reverse is worse: a receipt printer has no gap sensor at all, so label stock runs through it with the text landing wherever it happens to land.

Does the same code work on both?

No, and this is the single biggest source of wasted evenings with these kits. The receipt printer takes ESC/POS commands that begin 1B or 1D; the label printer takes label-mode commands that begin 1A. The baud rates differ too. Start from the sketch folder that matches your printer.

Where does 58 mm come from when the repo says 57 mm?

Same paper. 58 mm is the trade name for the roll, 57.5 mm give or take half a millimetre is what it actually measures, and neither is the number that matters for layout — that one is the 48 mm the head can print across.

Where this goes next

Printer power, printer data, your board, and the charger last. Why that order and not another.

Four plugs, in order

Edit this page — content/books/thermal-printer/the-two-printers.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

This page covers several products. Choose yours to see the right discussions.

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum