Levitating Magnet
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. Project Page Thanks for the tip Chris.