Without the electronics the upper magnet would turn around and stick to the base. But when it starts turning the accelerometer detects it and starts the DC-motor. Then the propeller pushes the magnet back to the vertical position. It's fixed with plexi sheets from to direction so it can move only in 2D.
So basically this is my concept. If you have any opinion or remark, feel free to comment here, or on my facebook site.