Skip to content

Stepper Dial

You'll drive a motor that moves in exact steps, home it against a switch at power-up, and build a gauge that points a needle at a live number.

About

A servo knows where it is; a stepper doesn't, but it moves in exact steps and can turn forever. The 28BYJ-48 with its ULN2003 driver board costs about three dollars as a pair, and it's the motor in a thousand cheap gadgets. The thing nobody tells you is that a stepper has no idea where it started, so every real stepper machine homes against a switch or a sensor when it powers up. You'll build that, then use it to point a needle at the temperature, the hour or your unread mail count, which is a thing worth having on a shelf.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
5
Takes
One weekend
Skill level
Beginner (done it a few times)
Cost
Cheap (under $10)
Supplies
You need some
Where
At home
Other people
On your own
Locked for now
Earn two more Common badges in Microcontrollers & Robotics to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Wire a 28BYJ-48 and its driver and turn exactly one revolution. The motor is geared, and the usual figure is 2048 full steps per output revolution (the gearbox is really 63.68 to 1, so 2038 lands closer if you want the mark exact after many turns). Mark the shaft with tape, command one revolution, and the mark should come back to where it started. Film the one turn. Video
  2. 2
    Find the top speed before it stalls and loses steps. Raise the step rate until the mark drifts after ten revolutions. Write down the fastest rate that still lands the mark exactly. Take a photo of your table of rates and results. Photo
  3. 3
    Add a home switch and home the motor at power-up. A microswitch, a hall sensor with a magnet on the shaft, or an optical slot all work. On boot, turn slowly toward the switch, stop when it trips, back off a few steps, and call that zero. Film three power-ups all ending in the same spot. Video
  4. 4
    Fit a needle and a scale and point at a live value. Temperature, humidity, the hour, or a number fetched by an ESP from the web. Map the value onto the dial's degrees and move only the difference from the last position. Take a photo of the dial pointing at a value you can check against something else. Photo
  5. 5
    Cut the holding current when it isn't moving. A stepper left energized gets hot and wastes power. Turn the coils off a second after each move, and check the motor is cool after an hour. Take a photo of the dial in place with the driver's LEDs dark between moves. Photo