SKU: U232 / U233
Unit EncoderMotor Driver (U232) and Unit 4EncoderMotor Driver (U233) provide I2C control for one and four encoder motors, respectively. This project provides a Tab5 touchscreen demo with PWM, position, speed and RGB LED control, built with ESP-IDF 5.5.5 and LVGL 9.4.0.
- Unit EncoderMotor Driver (U232): Document & Datasheet
- Unit 4EncoderMotor Driver (U233): Document & Datasheet
Connect the module to Tab5 PORT.A (SDA: GPIO53, SCL: GPIO54), and connect the motor and its power supply. The default configuration targets ESP32-P4 v1.x.
Activate the ESP-IDF 5.5.5 environment and run the following from the project root.
Flash the prebuilt V1 firmware at 0x0:
python -m esptool --chip esp32p4 -p PORT -b 460800 write_flash \
--flash_mode dio --flash_freq 80m --flash_size 16MB \
0x0 firmware/P359-UnitEncoderMotorDriver-ESP32P4-UserDemo-V1-20261113_0x0.binTo build and flash from source:
cd src
idf.py build
idf.py -p PORT flash monitorReplace PORT with the Tab5 serial port. Press Ctrl+] to exit the monitor.
Select a motor channel and PWM, POSITION or SPEED mode, adjust the target and press START. POSITION provides target position and Max motor output (%) sliders. STOP stops the selected channel; STOP ALL stops all channels. DEVICE provides module information, I2C address settings and LED controls.
Switching control modes stops all channels and clears their motion targets. A green LIVE DEVICE badge indicates a connected device.
- M5Unit EncoderMotor Driver UserDemo - MIT