Tuesday, October 28, 2014

Magnetic levitation

Some students wanted to build a toothbrush holder that floated a toothbrush in mid air to avoid contamination.
I build a prototype to see if it was possible to implement the control system in software.

This project allow a small permanent magnet to be levitated by a electro magnet.
Since static passive magnetic levitation is not possible a HALL effect sensor
 is used to constantly regulate the magnetic field.
To achieve stability a software based PID controller is used.
5 potentiometers is used to control the PID parameters.
This is the Arduino code for the project


  1. Can you please send your email at ultimateavengers100@gmail.com? I would like to discuss with your regarding this project. please do reply as soon as possible :)

  2. This comment has been removed by the author.