The coil is suspended in an external magnetic field and the current running through it adjusted so that the attraction between the two magnets balances the gravitational force on the suspended mass.
With more than 700 patents to his name, Tesla invented radio, the coil transformer, wireless communication, fluorescent lights and the alternating-current motor, which allowed electricity to flow over long distances.