Using a hall effect device a magnet is allowed to hover in mid air. A microcontroller monitors the hall effect feedback to determine how close the magnet is and adjusts the strength of the electromagnet to attract the magnet or allow it to drop. This calculation and adjustment is performed so quickly that the magnet appears to remain at a constant height.
Thanks for the tip Chris.
Permalink
This is cool
Permalink
Very clever. I’m pretty sure the code/equation for this is simple. I’m thinking of it as magnetic PWM 😉