It is much like the floating globes you can buy, except it works by balancing the forces of permanent magnets with electromagnets, rather then simply using combinations of permanent magnets.
This is done by using a microcontroller and an IR sensor to detect where an object is floating below. Then based on a set value, the microcontroller uses the electromagnets to to hold the floating object at a given height.
The place the object floats at depends on the weight of the object and the power of the magnets in the object. The height is set by holding the object under the magnets and sensor and pushing the button.
The object floats at the point where the force of gravity down equals the force of the magnets pulling up, which allows it to use non-industrial electromagnets and less power to float. The program also dynamically adjusts so the object is always at the perfect height.
I decided to make the electromagnetic floater because I have always been fascinated by the floating globes in the store, but I never wanted to pay their prices, and I never liked how they only floated objects that you had to buy or came with it. So, I decided to make my own that could float anything with a magnet. The results are what you see here.
Remove these ads by
Signing UpStep 1: Materials
- ATMega168 Microcontroller
- 1 16-20 MHz Crystal
- 28 Pin Socket
- Dual Full H Bridge IC
- 1 Power NPN
- 2 Electromagnets
- 1 Bicolour LED
- 2 IR LED
- 1 IR Photodiode
- 1 5V Regulator
- 2 Leveling Capacitors
- 1 SPST Switch
- 1 NO Button
- 1, 470 Ohm Resistor
- 1, 5 Ohm Resistor
- 1 Universal Breadboard
- 2 Cases
- Plexiglas
- Solder
- Hot Glue
- Steel Wire
- Vinyl Tubing
- 3 or more 1/4" diameter x 1/4" thick rare earth magnets (for the base)
- 2 or more 1/2" diameter x 1/8" thick rare earth magnets (for the objects)
Tools:
- Soldering Iron
- Hot Glue Gun
- Desoldering Pump
- 3rd Hand
- Plexiglas cutter










































![EMP HDD Launcher, [HD Video]](http://www.instructables.com/files/deriv/FUM/QO3R/GQBCI72I/FUMQO3RGQBCI72I.SQUARE.jpg)



Visit Our Store »
Go Pro Today »




what do you think?
but then why 2 electromagnets?
can you label the pins on your H-bridge symbol (never seen that symbol, so I don't know what pins do what)? what do 2 Leveling Capacitors do? it is a bit complicated to understand
I would like to make my own but it isn't very straight forward
http://www.adafruit.com/datasheets/l293d.pdf
took me 3 months of looking be happy :)
Bertmci
Excuse me if this was already posted. I couldn't find it. I am too much of a newbie to know what to buy when I see "Power NPN": there are so many transistors.
2. Is it possible to drive the electromagnet (via transistor/bridge) with the PWM output of the Arduino? Or does this higher frequency switching cause the magnetic field to not behave properly? I ask because this project has inspired me for another project I want to do (and post on instructables, of course).
How does the arduino control the coil in this instructable?
thanks