HomeEngineering & MaterialsMagnetic Levitation Controller

🧲 Magnetic Levitation Controller

Interactive 3D electromagnet-and-puck rig where adjusting feedback gain and coil current shows how active control stabilizes an object at an unstable levitation point.

Engineering & Materials3DModerate60 FPS⚡ Plasma
maglev-control-lab ↗ Open standalone

An electromagnet hovers a ferromagnetic puck at a fixed gap using real-time feedback control — tune the gains and watch the same unstable equilibrium that governs real maglev trains and active magnetic bearings.

🔬 What It Demonstrates

Magnetic pull grows sharply as the gap shrinks and fades as it widens, so an electromagnet alone can never hold a stable hover — only continuous feedback correction, driven by proportional and derivative gains, keeps the puck locked at the setpoint.

🎮 How to Use

Adjust the proportional and derivative gains and the hover setpoint, then knock the puck or add sensor noise to see whether your tuning rejects the disturbance or lets the gap run away.

💡 Did You Know?

Earnshaw's theorem proves that no static arrangement of magnets alone can produce a stable levitation point — every real single-magnet maglev demo needs an active electronic control loop just like this one.

⚙ Under the hood

Interactive 3D electromagnet-and-puck rig where adjusting feedback gain and coil current shows how active control stabilizes an object at an unstable levitation point.

maglevmagnetic-levitationcontrol-systemsfeedback-controlelectromagnetismstabilityengineering

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)