https://spectrum.ieee.org/this-maglev-heart-could-keep-cardi...
That's some high-stakes software programming!
Passively-stable magnetic levitation is possible with diamagnetic materials (notably including superconductors), but those probably don't meet the requirements of this project.
- "This positional control system works as follows: Tiny contactless sensors send out magnetic fields that interact with the rotor, determining its exact location many times per second. If the rotor is moving in one direction or another, the control system puts electrical energy into electromagnetic coils within several actuators, causing them to cancel out that movement."