Ball Balancer
By Andrew Gregory. Posted
This article was originally published as part of HackSpace magazine, which has since been incorporated into Raspberry Pi Official Magazine.

This robot is able to balance a ball on its flat surface. The designer, Johan Link, is an 18-year-old Swiss maker, self-taught on electronics and programming. "When I started learning how to use OpenCV, I wanted to put my knowledge into practice, that’s how I started this project," says Johan.
Advertisement
Introducing the smarter desktop: use cloud apps, thin clients, and get real work done on a Raspberry Pi. Also in the magazine we’re building a digital jukebox, controlling a robot arm, storing…
"Three servo motors are used to tilt the plate to compensate the motions of the ball. A USB camera is perched above the platform, and a Python program analyses the images to detect the ball position, then the computer controls the servos via a custom PCB inside the robot."
"I quickly realised that I was not the only one who had the idea of this kind of robot, that’s why I wanted to stand out by making a robot as elegant as possible."
The build instructions are available at: www.instructables.com/id/Ball-Balancing-PID-System/

Features Editor Andrew trawls the internet for Cool Stuff while keeping the magazine running smoothly.
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles

Raspberry Pi camera tripod mount review
The easy way to mount a Raspberry Pi Camera Module.
Read more →

Cassette MagSafe stand
This is one of those builds that straddles the line between silly and brilliant.
Read more →

The Smarter Desktop in Raspberry Pi Official Magazine 156
3D printing has come a long way. Once upon a time you’d have to spend countless hours sanding everything that came off your print bed, and you could have any colour you wanted as long as it was beige. Now you can send a design off to a factory and get industrial-quality prints for pocket-money […]
Read more →
Sign up to the newsletter
Get every issue delivered directly to your inbox and keep up to date with the latest news, offers, events, and more.