Source: https://mokxi.com/teachers/plans/build-thermal-printer-gadgets
Updated: 2026-11-19

Lesson plan

# Build receipt printer gadgets lesson plan

Drive a thermal receipt printer from an Uno: ESC/POS bytes, 1-bit bitmaps, a fortune button, a to-do list, ASCII art and a daily brief.

3 chapters, 6 lessons, about 5 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## Objectives and materials

### By the end, students can

- The commands a printer understands, and pictures one bit per dot.
- A fortune button, a to-do printer and a photo booth of text.
- Put it all together into one press that prints your day.

### Materials for the whole unit

- Arcade button
- Arduino Uno R3
- Thermal receipt printer

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 1 h 50 min

## Bytes on paper

The commands a printer understands, and pictures one bit per dot.

Lesson | Time | What students do

Printer commands Talk to a receipt printer in its own bytes: text, line feeds, and ESC/POS commands for bold, centering, size, feeding and the paper sensor. | 60 min

- Hello from bytes
- ESC means a command
- Center
- Big letters
- Feed the paper
- Is there paper?

Text and bitmaps Pictures for a print head: one bit per dot, eight dots to a byte, a 16 x 16 icon in 32 bytes, sent as a raster. | 50 min

- One bit per dot
- The raster header
- Print it
- Flip every bit
- Bits as text

### Materials

- Arcade button
- Arduino Uno R3
- Thermal receipt printer

### Check for understanding

Each student finishes "Text and bitmaps" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Bits as text".

Chapter 2. About 2 h 20 min

## Gadgets

A fortune button, a to-do printer and a photo booth of text.

Lesson | Time | What students do

A fortune button One press, one ticket: a debounced arcade button, a numbered fortune, and a shuffled deck so no fortune repeats before all have been dealt. | 40 min

- The button
- A ticket
- Paper counts
- A deck, not dice

A to-do printer Keep a list in a two-dimensional char array, change it over serial, and print it as a checklist you can tick with a pen. | 50 min

- A list in 200 bytes
- Add an item
- Tick one off
- Print it
- Check the list

A tiny photo booth of text Turn brightness into characters: a ten-step ramp from space to @, a face worked out row by row, contrast and a negative, on paper. | 50 min

- Characters are gray
- Say cheese
- On paper
- Contrast
- Negative

### Materials

- Arcade button
- Arduino Uno R3
- Thermal receipt printer

### Check for understanding

Each student finishes "A tiny photo booth of text" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Negative".

Chapter 3. About 1 h

## A daily brief

Put it all together into one press that prints your day.

Lesson | Time | What students do

Project: a daily brief Put it all together: one press prints the day, a little weather picture, your to-do list and a fortune. | 60 min

- Your morning, on paper
- Which day
- The weather
- The list
- Press for the day
- Make it yours

### Materials

- Arcade button
- Arduino Uno R3
- Thermal receipt printer

### Check for understanding

Each student finishes "Project: a daily brief" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Make it yours".

Your class

## Teach this unit as a class

Start a class from this course and its 6 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
