HiLetgo A4988 StepStick Driver
The A4988 is a current-regulating driver for a two-phase bipolar stepper motor. The Arduino supplies direction and step signals; the driver switches current through the motor windings. The motor needs a separate power supply. This page describes the HiLetgo A4988 carrier shown in the supplied stepstick.jpg, with the adjustment potentiometer at the bottom. Check the actual board’s labels before connecting it: “StepStick” describes a board format, and other driver chips are not interchangeable in every detail.
Component-side view, recreated from the supplied diagram. Pin positions are significant; component details are illustrative.
Pin Functions
| Pin | Purpose | Connection in the introductory lab |
|---|---|---|
| VMOT | Motor power, 8–35 V for this carrier | Regulated external 12 V positive; never Arduino 5V |
| GND beside VMOT | Motor-supply return | 12 V supply negative |
| 2B, 2A | One motor winding | Black, green respectively |
| 1A, 1B | The other motor winding | Red, blue respectively |
| VDD | Logic power, 3–5.5 V | Arduino 5V |
| GND beside VDD | Logic reference | Arduino GND; joined internally to motor-supply GND |
| ENABLE | Active LOW: LOW energizes outputs; HIGH releases them | Leave unconnected; HiLetgo’s onboard pull-down enables the outputs |
| MS1, MS2, MS3 | Select microstep resolution | Leave unconnected initially (full stepping); see table below |
| RESET | Active LOW: resets translator and disables outputs | Jumper to SLEEP; its onboard pull-up holds both HIGH |
| SLEEP | Active LOW: low-power sleep | Jumper to RESET; HiLetgo’s onboard pull-up holds SLEEP HIGH. Allow at least 1 ms after waking |
| STEP | Each rising edge advances one selected step | Arduino D2; use HIGH and LOW times of at least 1 µs each |
| DIR | Selects rotation direction | Arduino D3; keep stable at least 200 ns before/after STEP’s rising edge |
1A and 1B belong to one winding; 2A and 2B belong to the other. These board labels differ from the motor datasheet’s A+, A−, B+, B− labels. See the motor connection table.
The lab uses the ENABLE pull-down and SLEEP pull-up shown in HiLetgo’s documentation. RESET has no documented internal pull resistor; the RESET–SLEEP jumper supplies its HIGH level through the board’s SLEEP pull-up, so no separate 5V wire is needed for these two pins. These carrier-board defaults should not be assumed for other StepStick variants.
Microstepping
Microstepping uses intermediate winding-current levels to subdivide a full step. HIGH means VDD; LOW means GND. MS1 and MS3 have internal 100 kΩ pull-downs; MS2 has an internal 50 kΩ pull-down. Unconnected selection pins therefore read LOW, selecting full stepping when all three are unconnected. Change jumpers only with all power removed.
| MS1 | MS2 | MS3 | Mode | Pulses/revolution, 1.8° motor | Nominal angle/pulse |
|---|---|---|---|---|---|
| LOW | LOW | LOW | Full step | 200 | 1.8° |
| HIGH | LOW | LOW | Half step | 400 | 0.9° |
| LOW | HIGH | LOW | Quarter step | 800 | 0.45° |
| HIGH | HIGH | LOW | Eighth step | 1,600 | 0.225° |
| HIGH | HIGH | HIGH | Sixteenth step | 3,200 | 0.1125° |
Use only the listed combinations. At the same pulse rate, increasing the microstep subdivision reduces shaft speed. To keep the same RPM, increase pulse rate by the same factor. Smaller commanded increments do not guarantee equally accurate physical positions under load.
Power and Current Limit
Keep motor current out of the Arduino and use a secure carrier socket or terminal adapter.
The motor’s 2 A/phase rating is not a recommended setting for this small carrier. Its usable continuous current depends on the actual board, cooling, and temperature. For an unloaded introductory test, start with a teacher-set 0.5 A peak current limit and a fitted heat sink. This reduces available torque; it does not establish a guaranteed thermal rating.
The A4988 relationship is:
Identify the sense resistor value on the actual board before calculating VREF. Examples at a 0.5 A limit: R100 = 0.100 Ω → 0.400 V; R050 = 0.050 Ω → 0.200 V. These are examples, not confirmation of the supplied board’s resistors. Do not copy another carrier’s VREF setting or turn the potentiometer by guesswork.
Mr. Willis should identify the board’s VREF test point, measure VREF relative to GND with a multimeter, and adjust it using an insulated tool without shorting nearby pins. Make wiring changes with USB and motor power disconnected; keep the motor disconnected during initial current-limit setup, then disconnect all power again before attaching it. In full-step mode, each winding receives about 71% of the configured limit. Supply current is not a direct measurement of winding current.
Protect the driver and motor
Never connect or disconnect a motor while the driver is powered. Do not connect 12 V to VDD or any Arduino pin. Stop if the driver overheats, cycles on and off, or the motor stalls. The stationary motor can remain energized and hot; disconnect power when finished. Do not raise current to cure an unexplained wiring problem.
References
- HiLetgo A4988 product page
- Allegro A4988 datasheet: pin behavior, timing, current regulation, and microstep table.
- Pololu A4988 carrier documentation: practical wiring and current-limit guidance. Its board-specific resistor values are not specifications for the HiLetgo carrier.
- Stepper motor reference · Stepper motor lab