x
Send Your Inquiry Today
Quick Quote

A4988 Pinout: A Detailed Diagram and Explanation

The A4988 pinout is grouped into a 28-pin QFN (5 mm × 5 mm) package with exposed thermal pad for heat dissipation. Logic inputs are rated for 3.3–5 V, while the motor and power pins are rated for 35 V and 2 A. The datasheet pin diagram follows a logical arrangement of functions, with control inputs designated for one side, and the power and motor outputs of the opposite side. While wiring the A4988 we will include some decoupling capacitors (0.1 µF ceramic close to the VDD, 100 µF electrolytic close the VMOT) and sense resistors that are matched within 5% in order to achieve equal phase current regulation. The stepper driver pins can be separated into three functional blocks: input control, power supply, and output/sense.

A4988 Pinout: A Detailed Diagram and Explanation

Input Pins (STEP, DIR, ENABLE)

  • STEP pin(Pin 17): Rising edge triggers one microstep advance; minimum pulse width 1 µs, maximum frequency 250 kHz at 1/16 step.
  • DIR pin(Pin 18): Logic high = clockwise, low = counterclockwise; must be stable 200 ns before and after STEP edge.
  • ENABLE pin function(Pin 16): Active low; pulling high disables H-bridges and reduces quiescent current to <10 µA. Internal 100 kΩ pull-up enables driver by default.

Output and Power Pins

  • Motor pins: OUT1A/OUT1B (Pins 25, 28) for coil 1; OUT2A/OUT2B (Pins 21, 24) for coil 2.
  • VMOT and GND(Pins 1–4, 13–15): Motor supply (8–35 V) and ground; bypass with ≥47 µF capacitor rated >50 V.
  • Power supply pinsalso include VDD (Pin 9) for logic (3–5.5 V) and GND (Pin 8); separate from motor ground to minimize noise coupling.

Sense and Reference Pins

  • A4988 sense resistors(SENSE1 Pin 26, SENSE2 Pin 23): Connect to ground via 0.05–0.2 Ω 1% resistors; voltage drop sets current feedback.
  • VREF pin(Pin 19): Analog input (0–2 V) sets current limit threshold; decoupled with 0.1 µF to analog ground.
  • Current sense pinsinclude ROSC (Pin 20) for off-time adjustment (tie to VDD for default 20 µs) and SLEEP (Pin 15) for low-power mode (active low).

A4988 Applications in 3D Printers and Beyond

The A4988 3D printer driver controls extruder and axis motion in FDM systems by translating G-code step commands into precise motor rotations. The low-cost microstepping driver IC also features current regulation, which promises layer heights down to 50 µm with no motor skipping of steps. While A4988 is used for 3D printers, it is also used widely in CNC spindles, laser galvos, and robotic joints where torque, especially at low RPM speeds, is critical. Stepper driver integration in 3D printing is typically 4-5 A4988 CNC modules paired with NEMA 17 motors on RAMPS or similar boards with 2 or more axes, allowing multiple axes to be interpolated at the same time.

Role in 3D Printer Motion Control

The A4988 extruder driver controls filament feed through constant torque maintenance during retraction and advance, avoiding under-extrusion with filament speed changes. For the X Y Z axis the driver synchronizes the belt-driven carriages to remain at a constant torque. The driver uses 1/16 microstepping to reduce banding artifacts on curved surfaces. 3D printer stepper control allows the drivers to use fixed off-time chopping to control current spikes during acceleration, extending motor life when the current is continuously 0.5 to 1 A loads.

A4988 Pinout: A Detailed Diagram and Explanation

Integration with RepRap or Prusa Builds

On a standard RepRap designs, driver plugs directly onto the shield headers and uses 0.1Ω sense resistors for 1 A tuning. A4988 firmware (Marlin) maps STEP/DIR to timer interrupts at 100 kHz, so you can achieve 0.01 mm resolution with 1/8 belt pitch. 3D printer boards would need VMOT filtered at ≥12 V and the logic pulled from the 5 V rail; breakout boards and thermal management can be simplified with onboard heatsinks.

Real-World Case Studies of A4988

  • Case study 1: An enthusiast modified a Creality Ender 3 with five A4988 drivers at 0.9 A VREF, obtaining an 18 % reduction in print time by tuning 1/8-step acceleration (based on community benchmark data from Printables).
  • 3D printer A4988 example: A university laboratory used four A4988 drivers with a delta robot resulting in ±0.05 mm repeatability, with active cooling, after 10,000 cycles.
  • CNC project A4988: A desktop milling machine replaced servos with NEMA 23 motors running with A4988 drivers. The machine was able to machine aluminum at 800 mm/min using 1/4 microstepping to eliminate vibration.
  • Maker success story: A 12 V fan was added to a cooling system with an open-source scanner project supporting 400 hours of continuous operation without driver failure.

Other Uses in Robotics and Automation

In Particular, the A4988 robotics platforms use the driver in articulated arms for pick-and-place applications, where ENABLE pin gating saves power significantly by 90 % while idle. CNC machine A4988 configurations actuate lead screws at 1-2 A for engraving and have the ROSC tied to 30 kΩ with a turn-off time of 30 µs for high-inductance loads. Other automation projects include conveyor indexing and camera sliders that take advantage of the DIR pin input to perform bidirectional homing routines.

 

Scroll to Top