Lessons and the learning game

Build a split-flap display

Build the clacking departure board: one split-flap module on a 28BYJ-48 with hall sensor homing and a character map, then four modules on shift registers.

What the course teaches

Build a split-flap display is six lessons on the Uno, in three chapters:

  • One module: how the flaps fall, a forward-only drum of 40 flaps, 51.2 steps a flap kept exact by rounding a target instead of adding up steps, and the 28BYJ-48: 2048 steps a turn, two coils on for torque, and its speed ceiling from a standstill.
  • Knowing where it is: an A3144 hall sensor and a magnet for home, a calibration offset, what adding up 51 steps a flap does over a few turns, why real modules look for the magnet every turn, and a character map with upper-casing and a question mark for the rest.
  • A whole board: four modules on two daisy-chained 74HC595s from three pins, a sensor and an offset per module, messages that all modules turn to together, and the project, a departure board.

Ramps and homing in general are in Stepper motion planning. Each chapter ends in a short quiz. Open it from /learn.

The circuits

  • Split-flap module (flapone): a 28BYJ-48 with its ULN2003 board on pins 8 to 11, and an A3144 hall sensor on A0 with the pin's pull-up.
  • Split-flap departure board (flapbank): two 74HC595s chained (DS 11, clock 12, latch 8), each driving two modules, and four hall sensors on A0 to A3.

The checks read the drum's shaft angle and what the sketch prints. Mokxi has no drum or magnet, so you play the magnet: slide a hall sensor's distance to 0 while a module homes, then back out.

Troubleshooting

  • The board says home first. Type home and slide each hall sensor to 0 while its drum turns.
  • The shaft hardly moves. The rate is above about 600 steps a second from a standstill; type rate 500.
  • A character shows as ? It is not on the drum: the map has a blank, A to Z, 0 to 9, a dot, a dash and a question mark.

Build an orrery clock, another build on the 28BYJ-48 and the A3144.