Lesson plan

Build a scrolling LED sign lesson plan

Four chained LED matrices driven bit by bit, your own 5x7 font, smooth scrolling, typed messages, auto brightness and an on-air sign.

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

The unit

Objectives and materials

By the end, students can

  • Drive a chain of four MAX7219s by hand and draw with a font made of bytes.
  • A strip of columns, a moving window and messages from the serial port.
  • Brightness that follows the room, and a sign for the studio door.

Materials for the whole unit

  • Arcade button
  • Arduino Uno R3
  • LED matrix, 8x8
  • Photoresistor sensor module

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 30 min

Matrices and fonts

Drive a chain of four MAX7219s by hand and draw with a font made of bytes.

LessonTimeWhat students do
Chained matricesDrive four MAX7219 chips in a daisy chain by hand: wake them, run a display test of all 256 LEDs, and light one module at a time with No-Op packets.45 min
  1. Four chips, one chain
  2. Display test
  3. Down the chain
  4. One module, 64 LEDs
FontsStore a 5x7 font as bytes in flash, draw a word with it, and see every character as hex and as a picture of its pixels.45 min
  1. A font is bytes
  2. Look inside an A
  3. Draw it in text
  4. Count the pixels

Materials

  • Arcade button
  • Arduino Uno R3
  • LED matrix, 8x8
  • Photoresistor sensor module

Check for understanding

Each student finishes "Fonts" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

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

Chapter 2. About 1 h 45 min

Scrolling and messages

A strip of columns, a moving window and messages from the serial port.

LessonTimeWhat students do
ScrollingTurn a message into one long strip of columns, slide a 32-column window along it on a timer, and change the speed while it runs.45 min
  1. Hello, world
  2. How long is the strip?
  3. Round and round
  4. Faster
MessagesTake new messages typed over serial, swap them in at the end of a pass, tidy the input, and see how the same code takes them over WiFi on an ESP32.60 min
  1. Your words
  2. Send one
  3. At the end of the pass
  4. Tidy input
  5. Too long

Materials

  • Arcade button
  • Arduino Uno R3
  • LED matrix, 8x8
  • Photoresistor sensor module

Check for understanding

Each student finishes "Messages" 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: "Too long".

Chapter 3. About 1 h 45 min

On air

Brightness that follows the room, and a sign for the studio door.

LessonTimeWhat students do
BrightnessSet the sign's brightness from a light sensor: average eight readings, map them to the chip's sixteen steps, dim at night and bright in the sun.45 min
  1. Follow the room
  2. Lights out
  3. Full sun
  4. Still listening
Project: an on-air signPut it all together: scrolling messages and automatic brightness, and a red button that puts a steady ON AIR on the sign at full brightness.60 min
  1. Quiet please
  2. Go live
  3. Eighty LEDs
  4. Off air
  5. Hang it on the door

Materials

  • Arcade button
  • Arduino Uno R3
  • LED matrix, 8x8
  • Photoresistor sensor module

Check for understanding

Each student finishes "Project: an on-air sign" 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: "Hang it on the door".

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.