T-Bao Gear get it now
Overview
T-Bao Gear is the smart car expansion of the T-Bao AIoT terminal, combining the K210 RISC-V AI chip and ESP32 dual-core MCU with a wheeled robot chassis. It uses a DRV8833 dual H-bridge motor driver to control two DC gear motors and an ES_9051 servo for camera pan/tilt. The K210 handles on-device AI inference (face detection, emotion recognition, object tracking), while the ESP32 manages motion control, WiFi communication, and Web remote control. Suitable for AI robotics education, autonomous navigation research, and remote-controlled vehicle projects.
Quick Start
Example Support
| Example | PlatformIO / Arduino | Description |
|---|---|---|
| DRV8833 | ✓ | Basic DC motor drive via serial command |
| ES_9051 | ✓ | Servo precise angle control (0–180°) |
| Seeking | ✓ | Auto face-tracking with timeout search |
| Emotion | ✓ | Random emotion animations — car plays random emotion expressions and motions |
| Factory | ✓ | Multi-mode: face follow / object detection / remote control |
| Remote | ✓ | Web-based WiFi remote driving |
Firmware Download
| Example | ESP32 Firmware | K210 Firmware | K210 Model | Notes |
|---|---|---|---|---|
| DRV8833 | firmware_lilygo-t-bao-esp32-DRV8833 | maixpy_twatch_v0.6.2-75-g973361c0d-dirty | — | Serial control |
| Seeking | firmware_lilygo-t-bao-esp32-Seeking | maixpy_twatch_v0.6.2-75-g973361c0d-dirty | face_model_at_0x300000 | Face tracking + auto search |
| Emotion | firmware_lilygo-t-bao-esp32-Emotion | ⚠️ maixpy_v0.6.2_87_g37c84a3e7 | — | K210 firmware differs from other examples |
| Factory | firmware_lilygo-t-bao-esp32-Factory | maixpy_twatch_v0.6.2-75-g973361c0d-dirty | face_model_at_0x300000 | Multi-mode integrated |
| Remote | firmware_lilygo-t-bao-esp32-Remote | maixpy_twatch_v0.6.2-75-g973361c0d-dirty | — | ESP32 firmware only needed |
K210 Firmware Flashing
- Download MaixPy IDE — online debug and firmware flash tool
- Download kflash_gui — flashing tool for K210 firmware and model files
- Select the corresponding firmware and model files for your example and flash
Note: The Emotion example uses a different K210 firmware (
maixpy_v0.6.2_87_g37c84a3e7.bin). Do not mix it with other examples.
PlatformIO
- Install Visual Studio Code and Python
- Search for and install the PlatformIO IDE extension in VS Code
- Open the
T-Baoproject folder - Open
platformio.iniand uncomment the example you want to use - Click ✓ to compile, connect via USB-C, click → to upload
Arduino
- Install Arduino IDE
- Install Arduino ESP32
- Open the target example
.inofile - In Tools → Board, configure:
| Arduino IDE Setting | Value |
|---|---|
| Board | ESP32 Dev Module |
| Port | Your port |
| Flash Size | 16MB (128Mb) |
| Partition Scheme | Huge APP (3MB No OTA/1MB SPIFFS) |
| PSRAM | Enabled |
| Upload Speed | 921600 |
- Click Upload
Related Videos
Key Features
- K210 RISC-V dual-core 64-bit AI chip (400 MHz), KPU neural network processor — on-device face detection, random emotion animations, object tracking
- ESP32-D0WDQ6-V3, 16 MB Flash, 8 MB PSRAM, Wi-Fi + Bluetooth 4.2
- DRV8833 dual H-bridge motor driver, controls two DC gear motors
- ES_9051 servo for camera pan/tilt (0–180°)
- OV2640 2 MP camera with 180° rotation
- ST7789V 1.54-inch IPS touch screen (240 × 240)
- WiFi Web remote control support
- K210 ↔ ESP32 UART communication (TX: GPIO25, RX: GPIO26)
- Multiple operation modes: face tracking, emotion interaction, Web remote, multi-mode factory
Specifications
| Parameter | Value |
|---|---|
| AI Chip | K210 RISC-V Dual-core 64-bit, 400 MHz, KPU ~0.5 TOPS |
| MCU | ESP32-D0WDQ6-V3 Dual-core LX6, 240 MHz |
| Flash | 16 MB |
| PSRAM | 8 MB |
| Wi-Fi | 2.4 GHz 802.11 b/g/n |
| Bluetooth | Bluetooth 4.2 + BLE |
| Display | 1.54-inch ST7789V IPS TFT, 240 × 240 |
| Camera | OV2640 (2 MP, 180° rotation) |
| Motor Driver | DRV8833 dual H-bridge |
| Servo | ES_9051 (0–180°) |
| USB | 1 × Type-C |
Pin Diagram
Motor (DRV8833)
| DRV8833 | EN | IN1 | IN2 | IN3 | IN4 |
|---|---|---|---|---|---|
| ESP32 | GPIO2 | GPIO22 | GPIO21 | GPIO15 | GPIO13 |
Servo
| ES_9051 | Signal |
|---|---|
| ESP32 | GPIO19 |
K210 UART
| K210 | TX | RX |
|---|---|---|
| ESP32 | GPIO26 | GPIO25 |
Dimensions
Schematic
Datasheet
Software Libraries
- T-Bao GitHub Repository — ESP32 Arduino/PlatformIO examples
- LilyGo-K210-Script — K210 MicroPython examples
- MaixPy — K210 development framework
- MaixHub — Online model training platform
FAQ
Q. How do K210 and ESP32 communicate? A. Via UART serial — K210 TX → ESP32 GPIO26, K210 RX → ESP32 GPIO25. K210 acts as AI processor; ESP32 handles motion control and WiFi.
Q. The Emotion example doesn't work after flashing the standard K210 firmware. A. The Emotion example requires a different K210 firmware (
maixpy_v0.6.2_87_g37c84a3e7.bin). Flash the correct firmware listed in the firmware table above.Q. How do I adjust motor speed? A. Modify the PWM value in the
MotorPWMConfigstruct. The range is 0–255, e.g.{200, 0, 0, 200}for higher speed.Q. How do I change the servo angle range? A. Edit
SERVO_MIN_ANGLEandSERVO_MAX_ANGLEconstants in the example source code.Q. Web remote control is not connecting. A. Ensure the ESP32 is flashed with the Remote or Factory firmware, connect your phone/PC to the ESP32's WiFi AP, then open the displayed IP address in a browser.
Changelog
| Version | Date | Notes |
|---|---|---|
| V1.0 | — | Initial release |
