explaingit

peng-zhihui/xuan

5,588Audience · developerComplexity · 4/5DormantSetup · hard

TLDR

XUAN-Bike is a DIY self-balancing bicycle project with PCB schematics and mechanical CAD files, an ESP32-based controller and motion sensor make the bike balance and steer without a rider.

Mindmap

mindmap
  root((xuan-bike))
    What it is
      Self-balancing bicycle
      DIY hardware project
    Tech Stack
      ESP32
      MPU6050 sensor
      CAN bus
      Fusion 360
    Contents
      PCB design files
      Mechanical CAD files
    Use Cases
      Study balance control
      Reproduce the build
      Adapt frame design
    Audience
      Electronics hobbyists
      Robotics engineers
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Study the PCB design for a self-balancing vehicle controller built around an ESP32 and MPU6050.

USE CASE 2

Use the Fusion 360 mechanical files as a starting point for your own self-balancing bicycle or robot frame.

USE CASE 3

Learn how CAN bus is used to connect motor drivers in a DIY robotics or automotive-style project.

USE CASE 4

Reproduce or adapt the XUAN-Bike build as a hands-on electronics hobby project.

Tech stack

ESP32MPU6050CAN busFusion 360

Getting it running

Difficulty · hard Time to first run · 1day+

Control software is not included in this release, only PCB and mechanical design files are provided.

No license is described in the explanation, check the repository before reusing hardware designs.

In plain English

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.

Copy-paste prompts

Prompt 1
I want to build a self-balancing bicycle using an ESP32 and MPU6050 like XUAN-Bike. Explain how the balance control loop works and what PID parameters I should start with.
Prompt 2
How does CAN bus communication work between the ESP32 controller and the motor drivers in a self-balancing vehicle project?
Prompt 3
I'm opening the XUAN-Bike PCB design files. What software do I need, and what should I check before sending the board to a fab?
Prompt 4
How do I open and modify the XUAN-Bike Fusion 360 mechanical files, and how do I export them as STEP files for a CNC shop?
Open on GitHub → Explain another repo

← peng-zhihui on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.