Zum Inhalt springen

WSAL22311 – Stepper Motor HAT (B)/en

Aus JW Tech Wiki

Documentation notice: This technical documentation was independently rewritten from an archived supplier source. Check technical details and commands against the product version and manufacturer documentation before use.

Summary

The Waveshare HRB8825 Stepper Motor HAT is a dual stepper driver module with two integrated DRV8825/HR8825 chips, supporting up to 1/32 microstepping. It provides 5V power (up to 3A) to the Raspberry Pi and allows adjustment of output current via a potentiometer.

Related products at JW Tech

Technical overview

  • Compatibility: Fits Raspberry Pi Zero/Zero W/Zero WH/2B/3B/3B+. The module mounts directly on the RPi's GPIO header.
  • Terminal blocks: Six available terminal block options for various stepper motor specifications (A1/A2/B1/B2 for M1; A3/A4/B3/B4 for M2).
  • Microstepping: Six modes selectable via DIP switches: full-step, half-step, 1/4-step, 1/8-step, 1/16-step, and 1/32-step.
  • Current setting: Maximum output current is 2.5 A. The current magnitude can be adjusted via the onboard potentiometer.
  • Protection circuitry: Integrated short-circuit, overheat, under-voltage, and cross-conduction protection circuits detect fault conditions and quickly disconnect the H-bridge.
  • Power supply: Input range 8.2–28 V; the onboard voltage regulator (MP1584) supplies up to 3 A at 5 V for the Raspberry Pi.
  • Software microstepping: Requires soldering six resistors on the back; all DIP switches must be set to position 1 for software control to take effect.
  • Hardware microstepping: S0–S2 control the M1 driver, S3–S5 control the M2 driver. By default all switches are at position 1 (slowest subdivision); set to 0 for testing.
  • Pulse count without subdivision: 42 motors require 200 pulses per revolution (360° / 1.8°). 28BYJ-48 motors require 2048 pulses per revolution in single four-beat mode.
  • Open-loop operation: The driver operates open-loop, meaning no feedback signal from the motor is fed back to the controller.

Notes and version constraints

  • Exact compatibility with Raspberry Pi 5 is not confirmed in the source text; provided demos refer to older Pi models.
  • When using software microstepping, six resistors must be soldered on the back – this step requires manual soldering work.
  • If the driver chip gets hot and the motor does not turn: check whether the motor current stays below 2.5 A; otherwise there is a risk of burning out. Increase the current via the potentiometer or use a higher-power supply if needed.
  • The default position of all DIP switches (position 1) results in the slowest subdivision; set to position 0 for experiments.
  • Official lgpio C-language guides for Raspberry Pi 5 are missing; only a Python3/gpiozero demo has been provided.
  • The driver is open-loop – step loss may occur during load changes since there is no positional feedback.

Source and revision record