deepseek Bot 5d9e5f73b0 Add AP+STA WiFi manager and stabilize balancing
- Replace wifi.cpp/wifi.h with wifi_manager.cpp/wifi_manager.h: AP and STA
  run together, external WiFi credentials are stored in NVS and editable at
  /wifi, with optional static IP, 15s auto-reconnect, disconnect reason
  reporting, and build/version diagnostics
- Fix MPU6050 I2C port to I2C0 to match the board wiring
- Initialize distance_zeropoint at startup and on Robot Go! rising edge
- Clamp angle_zeropoint to +/-10 degrees to prevent balance-point drift
- Add DEBUG_DISABLE_YAW switch and periodic balance debug output
- Update WiFi setup instructions in README.md and README_CN.md
2026-10-25 19:15:17 +08:00
2024-08-21 09:14:32 +08:00
2024-08-12 08:50:46 +08:00

Micro-Wheeled_leg-Robot

The smallest two-wheeled-leg robot!

Video:[自制]首款桌面级双轮腿机器人

Real Robot 3D Design
Image 1 Image 2

中文文档

QQ group (unofficial): 991727288

Mechanical Structure Documentation

  • The file "OriginalRobotModel.stp" is the robot model file.
  • The "Parts-Manufactured" folder contains parts that need to be processed and produced by yourself, including 3D printing, CNC, and panel cutting.
  • The "Parts-Purchased" folder contains parts that need to be purchased.

PCB Documentation

  • There are four PCBs that need to be fabricated; the circuit boards provide both the schematic and PCB source files, and the IDE used is LCEDA.
  • The main control board is based on the ESP32, with the brushless motor driver chip being the L6234PD013TR.
  • The encoder chip used is the AS5600, communicating with the main control board via the I2C interface.
  • The IMU used is the MPU6050 module, which shares the same I2C interface with the right-side encoder.
  • The servo debugging board unifies the two serial lines into one signal line, completing the task through time-division multiplexing to send and receive data.
  • In addition, you will need three GH1.25 4PIN double-ended cables, with a recommended length of 15cm. These need to be purchased separately.
Wire Connection
Image 3

Source Code Usage

  • Based on Arduino IDE, it is very easy to learn and use.
  • The brushless motor drive for the wheels is based on simpleFOC.
  • The left bus servo ID is 1, and the right is 2; the calibration for the legs to fully squat to the mechanical limit position is 2048; configuration is done using FEETECH Debug Software.
  • The ESP32 itself has WiFi capabilities, with the webpage code stored in flash, transmitting JSON data via the WebSocket communication protocol.
  • Please use the WebSocket library located in 3.Software/libraries. The recommended esp32 version is 2.0.3.
  • There are two WiFi models, AP mode and STA mode. AP mode uses the device as a wireless hotspot, and STA mode uses the device as a client to connect to an existing wireless network.

Usage Instructions

    1. Connect the battery's XH2.54 plug to the rear interface of the main control board and turn on the switch to power the robot.
    1. After turning on the switch, a red light on the main board will indicate that the power is on.
    1. Next, the wheels will start FOC motor initialization, with the wheels moving slightly and the legs starting to move.
    1. If the battery is sufficient, the blue LED on the main control board will light up. If it does not light up, charging is needed.
    1. After this process is complete, press the EN button on the main control board to restart. Connect to the robot's WiFi network WLROBOT (password 12345678).
    1. Open http://192.168.4.1 in a browser. The remote control interface is compatible with Android, iOS, Windows, Linux, macOS, etc., and it is recommended to use Chrome or Firefox.
    1. To use an external WiFi router, open "WiFi 设置 / WiFi Settings" on the page, enter the 2.4 GHz SSID/password (static IP is optional), and save. The robot will reboot and join that network. The WLROBOT AP remains available as a fallback.
    1. Manually stabilize the robot, with the wheels slightly touching the ground. Click the "Robot go!" button on the web page, and the robot will stand up. You can then control the robot's movement using the joystick.

Open Source Contributors

  • Mu Shibo
  • Li Yufeng
S
Description
全球最小的桌面级双轮腿机器人 (imported from MuShibo)
Readme
28 MiB
0 Stars 1 Watchers 0 Forks
Languages
C++ 95.7%
C 2.5%
CMake 0.7%
Python 0.5%
Shell 0.4%