Hardware
A Flipsky 75100 dual VESC motor controller, 6.5” hoverboard hub motors at 36 V, a BNO055 IMU, and an Xbox controller connected with xone and evdev.
Motor control
- Wrote the VESC UART protocol from scratch after the PyVESC library proved unusable, including CRC-CCITT framing and a fix to how one telemetry command’s response was parsed.
- Characterized the motors with a moving average to correct the speed difference between the two wheels.
- Added leader/follower trim, manual d-pad trim and expo curves for smoother joystick control.
Running it reliably
- A systemd service starts it at boot, with its logs kept separate from the rest of the system.
- A launch file restarts crashed nodes, and state is saved to JSON so it persists across restarts.
- Fixed a hang at shutdown in the multi-threaded executor.
- Moved from Raspberry Pi OS to Ubuntu 24.04, set up the Pi 5’s hardware serial port, and fixed netplan and mDNS networking problems.
ROS 2 packages: speed, teleop, entry_point, boxes_interfaces and boxes_utils.
Where it is now
The robot is built. Its Raspberry Pi has since been repurposed to run my home infrastructure.