Lesson plan

Build a split-flap display lesson plan

The clacking departure board: 40 flaps on a 28BYJ-48, 51.2 steps a flap kept exact, hall sensor homing, a character map, and four modules on shift registers.

3 chapters, 6 lessons, about 6 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

  • How the flaps fall, and the stepper that turns them.
  • A hall sensor for home, error that adds up, and letters to flaps.
  • Four modules on two shift registers, then the departure board.

Materials for the whole unit

  • 74HC595 shift register x 2
  • Arduino Uno R3
  • Hall sensor, A3144 x 4
  • Stepper motor, 28BYJ-48 with ULN2003 x 4

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

One module

How the flaps fall, and the stepper that turns them.

LessonTimeWhat students do
How flaps workA drum of 40 flaps that only turns forward: 9 degrees a flap, 51.2 steps a flap on a 28BYJ-48, and the rounded target that keeps a fraction of a step from ever adding up.55 min
  1. Run it
  2. Turn to a flap
  3. Only forward
  4. 51.2 steps
  5. Every fifth flap is exact
The 28BYJ-48The cheapest stepper there is: a 64:1 gearbox, 2048 full steps a turn, two coils on for torque, a turn in about four seconds, and a speed ceiling it will not go past from a standstill.55 min
  1. A quarter turn
  2. How long is a turn?
  3. Too fast from a standstill
  4. Just under the ceiling
  5. A quieter board

Materials

  • Arduino Uno R3
  • Hall sensor, A3144
  • Stepper motor, 28BYJ-48 with ULN2003

Check for understanding

Each student finishes "The 28BYJ-48" 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: "A quieter board".

Chapter 2. About 2 h 5 min

Knowing where it is

A hall sensor for home, error that adds up, and letters to flaps.

LessonTimeWhat students do
Hall homingAn A3144 hall sensor and a magnet on the drum: find flap 0 at power-up, add a calibration offset, see what adding up 51 steps a flap does over a few turns, and why real modules look for the magnet every turn.70 min
  1. Find the magnet
  2. The offset
  3. Adding up
  4. Why look every turn
  5. Whole steps between flaps
  6. Calibrate it
Character mapsLetters to flaps: a 40-character map, upper-casing what the drum cannot show, a question mark for the rest, and the long way around a forward-only drum makes.55 min
  1. A letter is a flap number
  2. Lower case
  3. Not on the drum
  4. The long way around
  5. Your own map

Materials

  • Arduino Uno R3
  • Hall sensor, A3144
  • Stepper motor, 28BYJ-48 with ULN2003

Check for understanding

Each student finishes "Character maps" 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: "Your own map".

Chapter 3. About 2 h 5 min

A whole board

Four modules on two shift registers, then the departure board.

LessonTimeWhat students do
Many modulesFour modules from three pins: two daisy-chained 74HC595s carry sixteen coil signals, each module homes on its own sensor with its own offset, and a message turns them all at once.70 min
  1. Sixteen coils, three pins
  2. No message before home
  3. Home all four
  4. A message
  5. Trim a module
  6. Store the calibration
Project: a departure boardFour modules as a departure board: home, cycle through destinations with every module turning together, show times and gate numbers, survive characters the drum lacks, and put your own destinations on it.55 min
  1. Power-up
  2. Departures
  3. Numbers too
  4. Characters it cannot show
  5. Your departures

Materials

  • 74HC595 shift register x 2
  • Arduino Uno R3
  • Hall sensor, A3144 x 4
  • Stepper motor, 28BYJ-48 with ULN2003 x 4

Check for understanding

Each student finishes "Project: a departure board" 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: "Your departures".

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.