blake/makes

BH-003Oct 2026roboticscontrols

Self-Balancing Robotic Arm

Work in progress

A self-balancing hoverboard base with an SO-101 robotic arm on top.

Self-Balancing Robotic Arm — cover photo

Update log

Update · Nov 24, 2026

Arm mounted, driving around

I mounted the SO-101 robotic arm on the self-balancing hoverboard base, and it now balances while driving forward, back, and turning left and right.

Update · Nov 23, 2026

It finally balances

After a lot of debugging, the base finally self-balances.

The last big problem was one wheel jittering constantly. I swapped which ESC was the leader and which was the follower, and the jitter always followed whichever ESC was the CAN follower in Balance mode, so the follower was getting its commands late. Twisting the CAN wires, changing the baud rate (250K made it worse), lowering the loop rate, and tuning Rate P didn't fix it, and the bus termination checked out at about 50 ohms.

The fix was to stop having one ESC drive the other over CAN. Now each ESC runs Balance on its own with its own IMU: an Adafruit LSM6DS3TR-C on the left and a GY-BMI160 on the right, each wired to its ESC's COMM port as I2C (TX to SDA, RX to SCL). Two ESCs can't share one IMU because each one is an I2C master. I turned off "Multiple VESCs over CAN" in Balance.

The BMI160 wouldn't show up until I tied SA0 to ground and added 2k pull-ups from SCL and SDA to 3.3V. After that I calibrated the IMU orientation on each ESC so both agree on level within a fraction of a degree. Any mismatch made it walk and turn to one side, so I trimmed pitch until it tracked straight. I also designed and 3D-printed a mount for the BMI160 with pegs that locate in the board's mounting holes and a window for the wires.

Next up: mounting the SO-101 arm on top.

Update · Nov 21, 2026

Found a dead splitter leg

Loading the right motor's config onto the left ESC threw a truncated-parameters error (FOC values are motor-specific), and the left motor stopped spinning. Then I found the right ESC was only powering on through CAN backfeed from the left ESC, because one leg of my 3-way XT60 splitter was dead, so I moved both ESCs onto the working legs. The left motor still won't spin after reloading its configs, most likely because the Balance app got turned back on.

Next: turn Balance fully off on the left ESC, spin-test both wheels, then retune balancing.

Update · Nov 19, 2026

IMU working, Balance vibrating

The IMU problem turned out to be swapped SDA/SCL. On VESC hardware 4.10 it's SDA to COMM TX and SCL to COMM RX, the opposite of the VESC 6 layout. With that fixed I saved my configs and set up the IMU orientation and the Balance app. Balance vibrated even with lowered gains and the IMU rigidly mounted, and DRV faults kept coming up. Reloading a known-good left motor config made the motor smooth again, and the "ticking" on manual duty commands turned out to be the Balance package overriding them.

Update · Nov 18, 2026

New ESC, both motors spinning

I installed a replacement left ESC, reran FOC detection on both Flipsky Mini 4.20s (left CAN ID 86, right ID 85 with direction inverted), and re-pinned the CAN cable with no 5V wire, so both motors spun. The external IMU wouldn't read on either ESC, even after trying a BMI160 and an LSM6DS3TR-C and resetting the configs.

Update · Nov 16, 2026

I put together the robotic arm and controlled it from my webcam. The next step is to mount it on the hoverboard and integrate it with the self balancing technology.

Update · Nov 12, 2026

CAN bus purgatory

Today I debugged for five hours trying to get the motors to spin smoothly. Below is motor noise I couldn't figure out.

Update · Nov 11, 2026

Getting the IMU working

Update · Nov 10, 2026

Getting the Hall Effect ESCs online

Update · Nov 7, 2026

Wiring Arduino and ESCs

What I'm designing

CAD render of an SO-101 robot arm mounted on my hoverboard chassis
Initial mockup of my idea. Most likely will change in the future.
Torn-down hoverboard with its covers off, showing the frame, wiring, and two hub-motor wheels
The $25 hoverboard, torn down for its frame and hub motors.

I tore down this $25 hoverboard with a dead battery to get the frame and hub motors. The plan is to make the board self-balance using an IMU and the hoverboard's Hall effect motor controllers, then mount an SO-101 open-source robotic arm on top.

The arm is already built and I can control it from my webcam. Next, I'll mount it on the hoverboard and tie it into the balancing system so the robot can stay upright while it reaches for, grabs, and places objects.