Skip to content

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

ExamplePlatformIO / ArduinoDescription
DRV8833Basic DC motor drive via serial command
ES_9051Servo precise angle control (0–180°)
SeekingAuto face-tracking with timeout search
EmotionRandom emotion animations — car plays random emotion expressions and motions
FactoryMulti-mode: face follow / object detection / remote control
RemoteWeb-based WiFi remote driving

Firmware Download

ExampleESP32 FirmwareK210 FirmwareK210 ModelNotes
DRV8833firmware_lilygo-t-bao-esp32-DRV8833maixpy_twatch_v0.6.2-75-g973361c0d-dirtySerial control
Seekingfirmware_lilygo-t-bao-esp32-Seekingmaixpy_twatch_v0.6.2-75-g973361c0d-dirtyface_model_at_0x300000Face tracking + auto search
Emotionfirmware_lilygo-t-bao-esp32-Emotion⚠️ maixpy_v0.6.2_87_g37c84a3e7K210 firmware differs from other examples
Factoryfirmware_lilygo-t-bao-esp32-Factorymaixpy_twatch_v0.6.2-75-g973361c0d-dirtyface_model_at_0x300000Multi-mode integrated
Remotefirmware_lilygo-t-bao-esp32-Remotemaixpy_twatch_v0.6.2-75-g973361c0d-dirtyESP32 firmware only needed

K210 Firmware Flashing

  1. Download MaixPy IDE — online debug and firmware flash tool
  2. Download kflash_gui — flashing tool for K210 firmware and model files
  3. 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

  1. Install Visual Studio Code and Python
  2. Search for and install the PlatformIO IDE extension in VS Code
  3. Open the T-Bao project folder
  4. Open platformio.ini and uncomment the example you want to use
  5. Click to compile, connect via USB-C, click to upload

Arduino

  1. Install Arduino IDE
  2. Install Arduino ESP32
  3. Open the target example .ino file
  4. In ToolsBoard, configure:
Arduino IDE SettingValue
BoardESP32 Dev Module
PortYour port
Flash Size16MB (128Mb)
Partition SchemeHuge APP (3MB No OTA/1MB SPIFFS)
PSRAMEnabled
Upload Speed921600
  1. Click Upload

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

ParameterValue
AI ChipK210 RISC-V Dual-core 64-bit, 400 MHz, KPU ~0.5 TOPS
MCUESP32-D0WDQ6-V3 Dual-core LX6, 240 MHz
Flash16 MB
PSRAM8 MB
Wi-Fi2.4 GHz 802.11 b/g/n
BluetoothBluetooth 4.2 + BLE
Display1.54-inch ST7789V IPS TFT, 240 × 240
CameraOV2640 (2 MP, 180° rotation)
Motor DriverDRV8833 dual H-bridge
ServoES_9051 (0–180°)
USB1 × Type-C

Pin Diagram

Motor (DRV8833)

DRV8833ENIN1IN2IN3IN4
ESP32GPIO2GPIO22GPIO21GPIO15GPIO13

Servo

ES_9051Signal
ESP32GPIO19

K210 UART

K210TXRX
ESP32GPIO26GPIO25

Dimensions

Schematic

Datasheet

Software Libraries

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 MotorPWMConfig struct. 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_ANGLE and SERVO_MAX_ANGLE constants 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

VersionDateNotes
V1.0Initial release