M5Stack Encoder-Motortreibermodul, DRV8837DSGR, I2C, Einkanal
Shipping from China within 5–10 working days
- During check out, you can choose direct shipping from China, or let us import the order to our EU/US office first and ship it to you locally.
- Import customs clearance and VAT are fully handled by us.
Need a larger quantity?
Need bulk pricing?
Get a formal quotation with lead time and volume pricing.
For universities, companies, distributors, and project orders.
M5Stack Encoder-Motortreibermodul, DRV8837DSGR, I2C, Einkanal
Description
The M5Stack Unit EncoderMotor Driver is a compact single-channel controller for a brushed motor with encoder feedback. It combines an onboard microcontroller, an H-bridge and acquisition of both encoder signals in a low-profile Unit housing. A host controller can manage one drive axis without directly implementing every power-stage and feedback connection itself.
The module suits compatible six-wire geared motors and TT geared motors with the correct pin assignment. It supports direction and duty-cycle adjustment alongside regulated motion using measured feedback. Integrated current sensing and operating-voltage detection provide additional information about the drive state. A motor, mechanical axis and host controller are not included.
An onboard converter reduces the external input to the required motor supply. Grove-powered operation is also available, but has a different current limit. Check nominal motor voltage, startup current and stall current before connecting a load, as well as connector compatibility. A matching connector shape alone does not establish the correct electrical assignment or sufficient power capacity.
Features
- Integrated controller: The STM32G031G8U6 processes motor commands and feedback locally. The host uses a serial two-wire interface instead of directly handling the individual power-stage connections.
- Single-channel H-bridge: The DRV8837DSGR enables forward, reverse and stop operation. With external power, the maximum motor load is 1.2 A at five volts; this rating is not blanket approval for any motor with a matching connector.
- Feedback and regulation: An AB encoder with 3–15 PPR can be read. The unit supports speed control and position control, while mechanical backlash, gear ratio and encoder configuration affect the complete mechanism.
- Selectable operation: Duty-cycle commands, soft start, soft stop and sleep support different motion sequences. Regulated operation requires correctly connected feedback and appropriate encoder configuration.
- Drive-state measurement: An INA199A sensing circuit measures current, complemented by motor operating-voltage detection. These readings can support diagnosis and monitoring in the surrounding control application.
- Programmable status indication: One WS2812C-2020 RGB LED provides application-defined signaling. Software can use color to indicate an operating state, but the indicator does not replace an independent safety mechanism.
Specifications
| Model / SKU | U232 / M5-U232 |
|---|---|
| MCU | STM32G031G8U6 |
| Communication | I2C @ 0x2F; 0x08–0x77 |
| Motor Driver | 1 × DRV8837DSGR |
| Motor Load with External Power | DC 5V, maximum 1.2 A |
| Operating Modes | PWM, forward/reverse, soft start/stop, speed/position loops, sleep |
| Encoder | 1 × AB, 3–15 PPR |
| Motor Connector | 1 × PH2.0-6P |
| External Power Input | DC 6–12V; 1 × PH2.0-2P |
| Grove Connector | 1 × HY2.0-4P; DC 5V |
| Grove Current Limit | Total load ≤1 A at five volts |
| Current Sensing | INA199A |
| Status Indicator | 1 × WS2812C-2020 |
| Product Dimensions | 32.1 × 24.0 × 8.0 mm |
| Product Weight | 4.8 g |
| Package Dimensions | 138.0 × 93.0 × 11.0 mm |
| Gross Weight | 13.4 g |
Applications
- Small mobile platform: Drive one compatible wheel motor with feedback and test defined movement segments. Additional independently driven wheels need additional control channels.
- Single articulated joint: Move a lightweight joint axis using feedback for positioning. End stops, overload handling and a suitable reference procedure remain part of the mechanical safety design.
- Teaching experiments: Compare open duty-cycle operation with feedback-regulated movement. Investigate load changes, measured current and differences between requested and actual motion.
- Compact feed mechanism: Operate a small electrically compatible geared actuator in a prototype. Assess temperature, friction, current surges and supply capacity before extended operation.
- Automated test fixture: Repeat short movement sequences while logging electrical operating values. The host application supplies the broader sequence timing, data recording and evaluation.
Product List
- 1 × Unit EncoderMotor Driver
- 1 × HY2.0-4P Grove cable, 20 cm
- 1 × PH2.0-2P cable, 100 mm
- 1 × PH2.0-6P cable, 100 mm
Other Content
Model Comparison
| Feature | U232 – this product | U233 |
|---|---|---|
| Communication Interface | I2C | I2C |
| Channel Count | 1-channel encoder motor | 4-channel encoder motor |
| Motor Driver | DRV8837DSGR | 4x DRV8837DSGR |
| Main Controller | STM32G031G8U6 | STM32F030C8T6 |
| Encoder Motor Interface | 1x PH2.0-6P | 4x PH2.0-6P |
| Power Input | DC 6–12V (1x PH2.0-2P) | DC 6–12V (2x PH2.0-2P) |
| Load Capacity | DC 5V@1.2A | Single-channel DC 5V@1.2A |
| Current Detection | INA199 | INA199 |
| Grove Interface | 1x HY2.0-4P | 2x HY2.0-4P |
| Product Positioning | Single-motor control | Multi-motor control |
Connection and First Commissioning
Disconnect all power sources before changing wiring. The six-contact connection carries motor terminals, ground, encoder supply and both feedback signals. Follow the printed pin assignment; do not confuse the motor wires with the encoder signals. Reversing motor or encoder direction can make a feedback loop drive away from its target instead of producing stable motion.
At the Grove port, match ground, supply and both bus wires to the host. First check communication with the unit, then connect an unloaded motor with the mechanism secured. Configure distinct addresses before using several devices on the same bus. Host pin assignments depend on the selected controller model.
Power and Motion Limits
The external input voltage is not the motor voltage. The internal converter provides five volts. Its converter capacity must not be interpreted as permissible motor current; the output is subject to the substantially lower driver limit. With Grove power, consider total load and the host device's own supply capability as well.
Begin testing at a low target speed with clear movement space. For positioning tests, verify counting direction, pulse count, gearbox ratio and reference point before applying a movement command. Current readings and software commands do not replace an emergency stop or mechanical protection. Do not continuously energize a stalled motor.
Schematic

Dimension Drawing

Feature Diagram and Included Cables

Pin Assignment

Resources
- Product Documentation
- Communication Protocol
- Arduino Driver Library
- Schematic PDF
- Dimension Drawing PDF
- Mechanical Design Files
- Driver Datasheet
FAQ
How many motors can it control independently?
This product has exactly one motor channel with its corresponding encoder input. The four-channel model shown in the comparison is not included.
Is a motor included?
No. The package contains the driver unit and the three listed connection cables. Choose an electrically and mechanically suitable motor separately.
Does external input voltage reach the motor directly?
The intended motor output is supplied at five volts by the onboard converter. Do not treat the higher external input as the required motor voltage.
What feedback is required?
A compatible two-phase encoder provides feedback. Pulse count, direction and electrical assignments must match the configuration for regulated operation.
Does the unit work without a host?
A compatible host sends commands. Local regulation simplifies the control task but does not replace the surrounding application.











