Hawkridge Maker BuildsGift builds

All builds › Desk gadgets and clocks

MagLev Electromagnet Levitator for Arduino

A desk-top magnetic levitation stand. A permanent magnet on top of a hand-wound coil pulls a small neodymium "floater" upwards; a linear Hall sensor under the coil watches the floater, and an Arduino Uno runs a fast proportional-derivative loop that pushes the coil just hard enough to keep the floater hanging in free air. Two sketches are included: a basic version where you set the balance point and gains by hand, and an adaptive version that detects when a floater is placed under the coil, learns its balance point and switches the coil off when it is removed.

  • Difficulty: Intermediate (estimate)
  • Rough parts cost: see the Bill of Material for current prices
  • Purchase list: 16 rows
Open the Bill of MaterialBuild guidePrintablesThingiverseGitHub

Based on MagLev-Project (pull-up magnetic levitation based on Arduino) by xiaochutan123l (MIT). Remixed and documented for current parts by Hawkridge.

MagLev Electromagnet Levitator for Arduino: A desk-top magnetic levitation stand.

Key parts

Same shop links as the Bill of Material. Showing 10 of 16 linked parts; the full list is on the Bill of Material page.

PartQtyShop
Arduino Uno R3 ATmega328P with USB cable1Amazon AliExpress
SS49E linear Hall effect sensor 49E1Amazon AliExpress
LM358N dual op-amp DIP-81Amazon AliExpress
L298N dual H-bridge motor driver module1Amazon AliExpress
Enamelled copper magnet wire 0.3 mm 100 g1Amazon AliExpress
Neodymium disc magnets 20 x 3 mm 10 pcs1Amazon AliExpress
TM1637 4-digit 7-segment display module1Amazon AliExpress
10k trimmer potentiometer 3296W 10 pcs1Amazon AliExpress
Resistor assortment kit 1/4W 1% 600 pcs1Amazon AliExpress
Ceramic capacitor assortment kit1Amazon AliExpress

Related builds