diy
ai
Microcontroller
Intelligent robots
Xiao Zhi AI

4
1
The XiaoZhi AI Walking Base enables precise control over the robot’s walking and turning motions.
I. Components:
1. SG90 Servo Motor, 2. Dual-Axis TT DC Gear Motor, 3. H-Bridge Motor Driver Module (two-channel), 4. XiaoZhi Accessories (no need for further elaboration)




II. Functions:
Control the motor and servo actuators
III. Notes:
1. All components must be assembled; 2. Use adhesive to secure connections between parts (refer to the assembly diagram).
IV. Firmware:
Several firmware versions are available—burn the version that best suits your application needs.
The firmware file shared via cloud storage: XiaoZhi Control Firmware – Walking.zip
Link: https://pan.baidu.com/s/1krFXx3FBhKsOIz4nXEcR1Q | Extraction Code: jk88
V. Control Modifications:
1. There are a few minor issues with the program, but I’m too lazy to make extensive changes—so here’s what we’ll do: (Reconfigure the two input pins on the motor driver module to GPIO18 and GPIO19), 2. Make adjustments in the background.
Commands:
Upon startup, the servo motor defaults to 90°. If no command is received, the servo remains at 90°. When the system detects a command like “turn left,” it rotates the servo to 70° for 2 seconds, then returns to its original position. Similarly, when the system hears a command like “turn right,” it rotates the servo to 110° for 2 seconds before returning to its default position.
When the system receives a “stop” command, both the motor and the light are turned off simultaneously; when it receives a “move forward” command, the light is switched off while the motor runs continuously for 8 seconds—after which both devices are shut down together, marking one step forward; when it receives a “move backward” command, the light is turned on while the motor is stopped for 8 seconds—after which both devices are shut down together, marking one step backward. When the system hears a “dance” command, the servo motor cycles between 60° and 120°, then back from 120° to 60°, repeating this sequence five times—finally settling at 90° before taking one step forward and one step backward. To move “left,” the robot maintains a leftward angle for two steps, then turns 90°—and similarly for “right,” “left back,” and “right back!” To execute a “U‑turn,” the robot first moves forward while turning right for two steps, then moves backward while turning left for two steps, followed by another two steps forward while turning right, then two steps backward while turning left—and finally settles at 90°.
Bill of materials
- NameQuantityNotes
- 1sg90舵机1
- 2双轴TT直流减速机1
- 3电机H桥两路控制模块1
- 4小智ai配件(不多赘述)1开源资料都有的
Originality of the Model
The author declares that this work is their personally original model
This model is licensed under the following terms:
This work is licensed under a Standard Digital File License. Digital files have a strict non-commercial, personal use only license.
You shall not share, sub-license, sell, rent, host, transfer, or distribute in any way the digital file or 3D printed versions of this object, nor any other derivative work of this object in its digital or physical format (including remixes of this object). You can not host these files on other digital platforms, web stores or cloud repositories. The objects may not be used in any way whatsoever in which you charge money, collect fees.
Models(7)
3.stlDesigner1.06 KB
2026-02-16
4.stlDesigner3.01 KB
2026-02-16
5.stlDesigner19.03 KB
2026-02-16
w1.stlDesigner113.66 KB
2026-02-16
w2.stlDesigner307.31 KB
2026-02-16
1.stlDesigner17.86 KB
2026-02-16
2.stlDesigner1.64 KB
2026-02-16
View all(7)







