A new open source levitation device has been created by Jonathan Lock that is formed of four electromagnets that repel a central magnet to keep it floating vertically.
The electromagnets are stabilised by a 1kHz loop created by a STM32 microcontroller that uses a hall sensor to detect the central magnet’s position and correct it with a PID loop.
The PCB also contains and ESP32 which is used as an overpowered USB/UART converter to communicate with the STM32 for tuning.
The project is open source and comes with build instructions, CAD files and the firmware which has been written about thoughtfully.
This isn’t the only levitation project we’ve covered, but it’s one of the more successful ones we’ve seen.