Displays: characters, digits and dots lesson plan
Make the Uno show things: a 16x2 LCD on six wires and on an I2C backpack, seven-segment digits by hand, the TM1637, a MAX7219 dot matrix and the HT16K33, then an arcade scoreboard for two players with a high score.
Objectives and materials
By the end, students can
- Text on a 16x2 LCD, on six wires and then on two.
- Seven segments by hand, then a chip that drives four.
- A 64-dot matrix and an I2C digit display.
- An arcade scoreboard for a two-player button mash duel.
Materials for the whole unit
- Air quality sensor, SGP30
- Arduino Uno R3
- Character LCD with I2C backpack
- Character LCD, 16x2
- Four-digit display, HT16K33 backpack
- Four-digit display, TM1637
- Full-size breadboard
- Half breadboard
- LED x 3
- LED matrix, 8x8
- Piezo speaker
- Pushbutton x 3
- Resistor x 3
- Seven segment display
- Temperature and humidity, SHT31
- Temperature sensor, TMP36
- Thermistor, 10k NTC
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.
Characters
Text on a 16x2 LCD, on six wires and then on two.
| Lesson | Time | What students do |
|---|---|---|
| Sixteen characters, two rowsA 16x2 character LCD on six wires: what RS and E do, four-bit mode, setCursor() counting from zero, a rocket you draw as eight bytes, and a live temperature. | 45 min |
|
| Four wires: the I2C backpackThe same LCD on a PCF8574 backpack: an I2C bus scan, what an address is, a scrolling marquee from Mars, a walking alien, and what the two wires cost in speed. | 45 min |
|
Materials
- Arduino Uno R3
- Character LCD with I2C backpack
- Character LCD, 16x2
- Full-size breadboard
- Half breadboard
- Resistor
- Temperature sensor, TMP36
- Thermistor, 10k NTC
Check for understanding
Each student finishes "Four wires: the I2C backpack" 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: "A marquee and a walking alien".
Digits
Seven segments by hand, then a chip that drives four.
| Lesson | Time | What students do |
|---|---|---|
| Seven segments by handOne bare digit on seven pins: each segment is an LED, a digit is a byte, a font is an array of bytes, and one change makes it count in hex. | 45 min |
|
| Four digits on two wires: TM1637An escape room timer on a TM1637: a driver chip that scans the digits for you, MM:SS in one call with a blinking colon, brightness, and DONE spelled in raw segments. | 45 min |
|
Materials
- Arduino Uno R3
- Four-digit display, TM1637
- Full-size breadboard
- LED x 3
- Piezo speaker
- Pushbutton x 3
- Resistor x 3
- Seven segment display
Check for understanding
Each student finishes "Four digits on two wires: TM1637" 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: "What the chip bought you".
Dots and driver chips
A 64-dot matrix and an I2C digit display.
| Lesson | Time | What students do |
|---|---|---|
| Sixty-four dots: the MAX7219 matrixAn 8x8 LED matrix on a MAX7219: a row is a byte written in binary, a picture is eight of them, and two pictures in turn make a space invader march. | 35 min |
|
| Digits on the bus: HT16K33An HT16K33 four-digit display on the I2C bus beside two sensor chips: three addresses on two wires, a temperature with a degree sign from raw segments, and a warning that blinks. | 35 min |
|
Materials
- Air quality sensor, SGP30
- Arduino Uno R3
- Four-digit display, HT16K33 backpack
- Full-size breadboard
- Half breadboard
- LED
- LED matrix, 8x8
- Resistor
- Temperature and humidity, SHT31
Check for understanding
Each student finishes "Digits on the bus: HT16K33" 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: "Choosing a display chip".
Project
An arcade scoreboard for a two-player button mash duel.
| Lesson | Time | What students do |
|---|---|---|
| Project: arcade scoreboardButton Mash Duel: two players, a start button, the live score on an HT16K33, the countdown and the winner on an I2C LCD, both on one bus, and a high score saved in EEPROM. | 50 min |
|
Materials
- Arduino Uno R3
- Character LCD with I2C backpack
- Four-digit display, HT16K33 backpack
- Half breadboard
- Pushbutton x 3
Check for understanding
Each student finishes "Project: arcade scoreboard" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Make it your arcade".
Teach this unit as a class
Start a class from this course and its 7 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.