Building an electromagnetic spherical robot

Electromagnetic Spherical Robot Project Team Picture

Joshua Bauman, Lucas Henderson, Kristopher Kirkwood, Logan Underwood and Levi Varsanyi

Our project

Although many capstone projects focus on a specific use case and application, we wanted to pursue a project where the potential applications were of secondary importance to our desire to grow our knowledge of fundamental physics, gain experience applying magnetic circuit theory, develop power electronic systems and implement advanced control algorithms.

We came up with the idea of building a spherical robot that could actuate itself and move along a ferromagnetic surface using electromagnets configured inside the ball. 

Our goal was to be able to move and direct the sphere by turning on different electromagnets in different sequences.

Our design solution

Each of our 20 magnets is mounted to the inside of the shell and paired with its own custom printed circuit board that drives current through the electromagnet. These actuator modules are powered by a central board that is connected to two internal batteries. That same central structure also holds the ESP microcontroller, which runs the control algorithm and sends signals out to every magnet board. Because the sphere is built from two completely modular halves, each side mirrors the other.

We built the entire system from scratch, including designing and manufacturing the electromagnets and control circuits and 3D printing the shell. 

Diagrams showing a spherical robot design with internal components, control loop, and information flow.Technical diagrams of electromagnet design, control system, and magnet selection process.

The technical challenges we faced

One of the biggest technical challenges was determining how to reliably control the sphere’s motion. We assumed that, in principle, we could activate specific internal magnets to drive the ball in a given direction, but that only works if you know where those magnets are as the ball rotates. 

Once we solved that, we had to design an algorithm that could decide which magnets to activate, and at what strength, to produce the desired velocity. This required integrating data from an inertial measurement unit, applying filtering techniques to clean up the signal, and then building the control algorithm and software architecture to integrate it all. 

Another major challenge was identifying how to physically fit and organize all the components inside a completely wireless spherical shell. We have 20 magnets inside a 3D‑printed shell, and each one needs its own dedicated driving circuit. 

Designing an internal structure that could hold those magnets, their individual boards, the batteries, and all the wiring took a lot of design and thought. We also wanted the entire assembly to be spherically symmetric to keep the system’s behaviour predictable, but achieving that symmetry while accommodating so many components was far from straightforward. 

How our design progressed over two years

In year one, we focused mainly on magnet design. Knowing that we needed the magnets to be as strong as possible, we derisked our project by focusing on making an electromagnetic disk that spun along one axis. We invested considerable time designing and building a test stand to measure the force generated by the magnets, and then used this information to select a magnet shape optimized for strength and weight.

In 2025/2026, year two, we split up the work based on our interests and areas where we wanted to gain more experience.

How we validated our solution

We used software called ANSYS to model the force of our magnets. But we’ve also done a lot of manufacturing to test whether our spherical robot performs in accordance with our modelled scenarios. We took a hands-on iterative approach to try things out, test them and make modifications. When we had some unwanted smoke coming out of our electronics at one point, that was a pretty clear indication that something wasn’t quite right!

ANSYS

What’s next for this project

Although our sphere moves in response to our control, it does not move as quickly as we had hoped, primarily as a result of its weight. Our final project report outlines a series of recommendations, including using higher capacity batteries, implementing advanced magnet activation algorithms, increasing the number of magnets, using improved magnet materials and exploring sheetless propulsion methods. 

What we’re most proud of

We are proud of the progression we’ve made from an early idea to a fully functioning system we can hold in our hands. 

Each part of the project went through multiple iterations, whether it was the driver boards, the software architecture or the electromagnets themselves. The first magnet we tested was probably six times weaker than what we have now. 

If you look at the boards you can see the evolution of a progression of design choices. It all comes together into one system with each of the layers—physics, electronics, software and mechanical design—integrated in a system that is easy to control with a joystick. 

Over the course of this project we have learned a significant amount about magnetism, including how magnets of different materials and geometries perform, as well as how electronics interact with these magnetic fields and the interdependencies that emerge between the two. 

Finally, this project has reinforced the importance of integration. This project draws on many different areas of science and engineering, and they all need to work together. Effective engineers are confident working in – or coordinating with – multiple domains to achieve complex project goals. 

Two UBC Engineering Physics students preparing for the annual summer robot competition.

Engineering Physics

EngPhys students build a solid foundation in applied physics and a blend of electrical and mechanical engineering, while gaining extensive engineering design experience.

Engineering Physics

Discover Student Experiences

UBC Applied Science students are people who are passionate about their chosen field — architecture, landscape architecture, community and regional planning, engineering and nursing — and those that inspire others by making meaningful contributions to the betterment of society.

Browse Student and Alumni Spotlights

Want to know more about UBC Engineering?

Sign up to receive emails from us, and every few weeks we’ll keep you up to date on topics to help you learn more.

An engineering student at the Design and Innovation day exhibit

A roadmap for future innovators

See how your studies, experiences, and co-op placements connect to help you design your future and make an impact as an engineer.

Roadmap_960*480

UBC is located on the traditional, ancestral and unceded territories of the xʷməθkʷəy̓əm people (Musqueam; which means 'People of the River Grass') and Syilx Okanagan Nation. The land has always been a place of learning for the Musqueam and Syilx peoples, who for millennia have passed on their culture, history and traditions from one generation to the next.

UBC Crest The official logo of the University of British Columbia. Arrow An arrow indicating direction. Arrow in Circle An arrow indicating direction. Caret An arrowhead indicating direction. E-commerce Cart A shopping cart. Time A clock. Chats Two speech clouds. Facebook The logo for the Facebook social media service. Social Media The globe is the default icon for a social media platform. TikTok The logo for the TikTok social media platform. Calendar Location Home A house in silhouette. Information The letter 'i' in a circle. Instagram The logo for the Instagram social media service. Linkedin The logo for the LinkedIn social media service. WhatsApp The logo for the WhatsApp social media service. Location Pin A map location pin. Mail An envelope. Telephone An antique telephone. Play A media play button. Search A magnifying glass. Arrow indicating share action A directional arrow. Speech Bubble A speech bubble. Star An outline of a star. Twitter The logo for the Twitter social media service. Urgent Message An exclamation mark in a speech bubble. User A silhouette of a person. Vimeo The logo for the Vimeo video sharing service. Youtube The logo for the YouTube video sharing service. Future of work A logo for the Future of Work category. Inclusive leadership A logo for the Inclusive leadership category. Planetary health A logo for the Planetary health category. Solutions for people A logo for the Solutions for people category. Thriving cities A logo for the Thriving cities category. University for future A logo for the University for future category.