Product description: RollerCAN Lite Unit - brushless motor with STM32 controller - Unit expansion module - M5Stack U188-Lite
RollerCAN Lite Unit is a compact module designed for precise motion control in robotic and industrial applications. Based on the STM32G431CBU6 microcontroller and the DRV8311 controller, the module controls a 3504 type (200 kV) brushless DC motor , using advanced FOC (Field-Oriented Control) technology with three-loop control (current, speed, position). Additionally, RollerCAN offers an interactive user interface: a 0.66-inch OLED screen , a button and an RGB diode informing about the operating status. The module can be powered by CAN (XT30, from 6 V to 16 V) or Grove port (5 V). The whole is enclosed in a housing measuring 40 x 40 x 40 mm, with LEGO mounts and M3 holes, which facilitates installation in various structures. RollerCAN is an open source solution supporting CAN and I2C communication as well as debugging via SWD / SWO .
The RollerCAN Lite Unit is a compact module designed for precise motion control in robotic and industrial applications.Special Features
- Advanced Closed-Loop Motion Control (FOC) - The module uses the Field Oriented Control (FOC) algorithm in a closed-loop configuration, which allows for extremely smooth and precise control of motor current, speed and shaft position
- Built-in high-resolution magnetic encoder - thanks to the TLI5012BE1000 sensor, the module offers precise angular positioning, which allows for movement control with very high accuracy - regardless of load or voltage changes
- Dual communication - CAN and I2C - the device supports two communication standards simultaneously: CAN Bus (power supply and control via XT30 connector) and I2C (power supply via Grove port). This solution enables flexible integration with various hardware platforms and control systems
- OLED display and RGB indicator - on the back of the device there is a 0.66-inch OLED screen , which allows for current reading of the operating parameters and status of the device (e.g. temperature, current, error messages). Additional RGB diode indicators of the WS2812 facilitate quick diagnostics and interaction with the user
Compatibility and programming
RollerCAN Unit is compatible with the M5Stack ecosystem - it can be easily integrated with Core , Stick , Atom series modules and external systems. It supports CAN and I2C communication, allowing control from Arduino IDE, PlatformIO or ESP-IDF. Configuration of parameters such as operating mode (RPM, position, current, encoder), PID or I2C / CAN addresses is done via the configuration menu available from the button and OLED, as well as via communication protocols. The module also provides SWD / SWO interfaces for advanced debugging.
Based on the STM32G431CBU6 microcontroller and the DRV8311 controller, the module controls a 3504 (200 kV) brushless DC motor.
The whole thing is enclosed in a housing measuring 40 x 40 x 40 mm, with LEGO mounts and M3 holes, which facilitates assembly in a variety of structures.Connection and power supply
The module offers two independent power supply methods:
- Via XT30 connector (CAN) - voltage from 6 V to 16 V DC
- Through Grove port - 5V DC voltage
Communication takes place via:
- CAN (XT30, two data lines + power supply)
- I2C (Grove)
RollerCAN Lite Unit Technical Specifications
- Microcontroller: STM32G431CBU6, Cortex M4
- Memory: 128kB Flash, 32kB SRAM
- Motor type: Brushless BLDC D3504, 200 kV, diameter 41 mm
- Driver: DRV8311HRRWR
- Encoder: TLI5012BE1000 (magnetic)
- Display: OLED 0.66'', resolution 64 x 48 px, SPI communication
- Communication interfaces:
- 2x CAN (XT30 connector, 2 + 2 PW-M configuration)
- 2x I2C (address: 0x64)
- LED indicators: 2x WS2812-2020 RGB diodes
- Engine power:
- via CAN connector (XT30): 6 V to 16 V DC
- via Grove port: 5V DC
- Noise level: 48 dB
- Operating temperature: 0°C to 40°C
- Dimensions: 40 x 40 x 30 mm
- Weight: 71.9 g
Kit Contents
- 1x RollerCAN Unit
- 1x PwrCAN power and communication cable (10 cm)
- 1x Grove cable 4-pin, pitch 2 mm (5 cm)
- 6x pin
- 1x mounting flange
- 1x mounting bracket
- 1x Allen key 2.5mm
- 1x 2mm Allen key
- 6x M3 nuts
- 17x M3 and M2 screws (different types)
- 1x 5-pin debugging cable, single-sided, pitch 1.25 mm (10 cm)

