Study the PCB design for a self-balancing vehicle controller built around an ESP32 and MPU6050.
Use the Fusion 360 mechanical files as a starting point for your own self-balancing bicycle or robot frame.
Learn how CAN bus is used to connect motor drivers in a DIY robotics or automotive-style project.
Reproduce or adapt the XUAN-Bike build as a hands-on electronics hobby project.
Control software is not included in this release, only PCB and mechanical design files are provided.
XUAN-Bike is a DIY hardware project for building a self-balancing, self-driving bicycle. The creator, a Chinese engineer known for ambitious hands-on electronics projects, documented the build in a video on the Chinese video platform Bilibili. The project shows how an ordinary bicycle frame can be outfitted with electronics and motors that allow it to balance and steer on its own without a rider. The repository is organized into two main folders. The Hardware folder contains printed circuit board (PCB) design files for the controller board. The controller is built around an ESP32 microcontroller chip and uses an MPU6050 sensor (a common motion-sensing chip that measures orientation and acceleration). The motors are connected through a CAN bus, which is a communication protocol common in automotive and industrial electronics for linking components together reliably. The Structure folder contains the mechanical design files for the bicycle frame in a format used by Fusion 360, a 3D design tool. The creator notes that the exported STEP files may have some bugs and recommends opening the original Fusion 360 project file directly using a shared link. The software for controlling the bike is not included in this release. The creator explains that it is tied closely to the specific motor driver used and is not easily generalized. However, they plan to later open source a simplified version of the complete bicycle project using smaller, more common DC motors. The README is written in Chinese and is brief. The project is intended for electronics hobbyists and engineers interested in self-balancing vehicle control systems.
← peng-zhihui on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.