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
The desktop computer you've been waiting for: Raspberry Pi 500+
"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 500+ in Raspberry Pi Official Magazine issue 158
We’re quite taken with Raspberry Pi 500+. But when you don’t need all that processing power, and just want a board that will make a plastic skeleton jump around in a terrifying manner, you’ll find Raspberry Pi Pico more than up to the job. There’s more terror in the magazine (which is only right as […]
Read more →

Win one of five Raspberry Pi SSD 1TB
Raspberry Pi prides itself on high quality hardware, and this 1TB Raspberry Pi SSD is no different. You can use it with a standard Raspberry Pi or even in your desktop PC – the choice is yours. We have five to give away and you can enter below Win 1 of 5 Raspberry Pi SSD […]
Read more →

Dual-screen cyberdeck
Twin screens mean you can code on one screen while watching David Bowie’s 1978 Musikladen show on the other.
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.