Magnetic levitation toy with arduino.
- Easy to print and mount (Just some glue, no screws).
- Just install the firmware(Levitator.ino) in the arduino board.
- Do not need a computer, just the 12V power supply, after install the firmware.
- With a stick use the switches to adjust the magnet position.
- Use the arduino serial monitor to see the correct value for you.
- You can hard code the correct value in your toy.
- I put all parts you need in 1 plate, have fun.
My videos:
All you need:
- 1x Arduino Board (Nano to use the shield);
- 1x Electromagnet - ZYE1-P25/20 12V, 25mm diameter, 20mm height (ebay $7.00);
- 1x Linear hall effect sensor - 49e (ebay Kit 5 - $1.50);
- 1x Magnet cube 10mm (ufo_1) or magnet sphere 10mm (ufo_2);
- 1x Darlington Transistor NPN - TIP120;
- 1x Resistor 1K ohm;
- 1x Diode N4007;
- 1x Power supply 12V 1A (ebay $2.00);
- 2x Micro switch;
Attention:
- Put the hall sensor in the bottom of the tip(top_sensor.stl) see the images;
- To work correct, the hall effect sensor must be at least 5mm of distance from electromagnetic;
- You can use other linear hall sensor (do not use hall sensor switch);
- Use neodymium permanent magnets (it will not work with common magnets);
- Heavy objects are more stable;
Think it is hard:
Possible upgrades:
- Safety mode in the code for the toy(in test):
Turns off the electromagnet in case the permanent magnet fall; - Curved arm to hold the electromagnet:
Bigger objects and more free space; - Hall effect sensor below the permanent magnet:
No electromagnet interference, accurate measurements and more stable levitation;
It is a little better than the prototype! ;-)