Bobble-Bot has a teaching problem built into its mechanics: its software has to keep working on time, or the two-wheeled robot loses its balance. Mike Moore and fellow project contributors documented Bobble-Bot on Hackaday.io as a platform for students, educators and hobbyists to experiment with robotics. Their central choice was to put the balance controller on a Raspberry Pi running real-time Linux, making demanding control work accessible through a familiar computer rather than hiding it entirely inside a microcontroller.
Created on April 15, 2019, the project combines physical hardware with a free, open-source simulator. The useful story in its development logs isn't just that a robot can stand upright. It's how motor control, operating-system timing and software tests fit together to make that possible.
Keeping time matters as much as computing speed
In a June 23, 2019 log about real-time Linux, contributor James Holley explains the team's Raspberry Pi decision. A microcontroller would have offered a straightforward route to regularly scheduled control work, but the team wanted learners to experiment with the controller on an accessible Linux machine.
That creates a timing challenge. A control loop expects to run at regular intervals; jitter is the difference between that schedule and when it actually runs. For a balancing robot, inconsistent timing is more than an untidy performance statistic—it affects the system trying to keep the chassis upright.
The documented setup used RT patches for the Raspbian 4.14-y kernel, with its scheduler base frequency configured to 1,000 Hz. That setting is not itself a stated balance-loop rate. Holley also describes comparing standard and real-time kernels using RT-Tests, though the available excerpt doesn't give numerical latency results. The important design choice is clear: the team treated scheduling behavior as something to configure and test, not simply assume away because the Pi was fast enough.
Hobby motors need more than hobby speed control
The Raspberry Pi 3B connects over CAN to custom Chupacabra servo drives. Each wheel has a magnetic encoder wired directly to its drive, while a DFRobot SEN0140 inertial measurement unit connects to the Pi's GPIO pins.
The September 28, 2019 assembly log places that IMU between the wheels, aligned with their axis of rotation. The stated reason is practical: this positioning reduces the complexity of the transformations needed to get useful sensor data. Mechanical placement can simplify software before a line of code changes.
The wheels use brushless hobby motors, with sensors and custom controllers providing the fine control needed for balancing. Earlier prototypes carried large external inductors to smooth current while the team changed motor configurations. By September 27, 2019, Holley reported that those inductors were no longer needed. The excerpt doesn't reach the full explanation of their removal, but it captures the tradeoff: inexpensive hobby motors still required purpose-built electronics to serve as controlled wheel actuators.
Test the controller before asking the robot to stand
Bobble-Sim gives learners a way into the project without assembling hardware first. The software infrastructure uses ROS and Gazebo, and the project advertises C++ and Python APIs for customization. The supplied controller repository is a starting point for exploring that software.
Simulation also served the team's development process. In a May 26, 2019 testing log, Moore describes an automated pipeline triggered by proposed repository changes. It built, tested and analyzed the software, including 18 pass/fail checks on the balance controller in simulation, followed by a Jupyter-based analysis stage.
That makes the simulator more than a demonstration. It provides a repeatable place to check whether a software change breaks expected controller behavior before moving to a physical robot. It doesn't replace hardware testing, but it gives contributors a shared baseline.
Moore also released a MATLAB interface in July 2019. His blue-ball tracking example focused on simulation and required MATLAB's Image Processing and Robotics System Toolboxes. It was an optional route for learners already using those tools, not a requirement for the core platform.
Printable structure wasn't the whole build
The assembly account describes a roughly three-pound robot with three main sections: two wheel actuators and a central assembly holding the Pi, CAN shield, power distribution unit and battery. All structural components were described as 3D printed, with six threaded inserts available for additional peripherals.
Reproducing the electronics was a separate issue. In a November 23, 2019 reply, Holley acknowledged that the team had not yet released the CAD and some custom-board designs. A cheaper, simpler build and further releases were plans at that point. A November 2020 commenter was still asking where to find Gerber files; that question alone doesn't establish their later availability.
The latest supplied log, dated October 4, 2020, invited contributions to computer-vision and navigation issues. Those were development opportunities, not evidence of completed autonomous capabilities.
Bobble-Bot's most useful lesson is the separation of problems: test controller behavior in simulation, examine scheduling on the actual computer, and account for the custom electronics needed to turn commands into controlled motion. For anyone revisiting the design, starting with the simulator—and checking hardware-file availability before buying parts—is the practical way to follow that lesson.
Source: Bobble-Bot