Capstone Project
Embedded Systems | Control Theory | Arduino | Electronics
Project Overview
This capstone project demonstrates an active electromagnetic levitation system that suspends a steel bolt beneath an electromagnet using closed-loop PID (Proportional-Integral-Derivative) control. The system continuously measures the position of the levitating object and dynamically adjusts the magnetic field to maintain stable levitation in real time.
Project Objective
The objective was to design and build a stable magnetic levitation system capable of maintaining a constant air gap through continuous feedback control. The project combines principles from physics, mathematics, electronics, and embedded systems to demonstrate how real-time control can stabilise an inherently unstable system.
How It Works
An IR distance sensor continuously measures the position of the levitating steel bolt. The sensor data is processed by an Arduino UNO, where a PID control algorithm calculates the required correction. The Arduino regulates the current supplied to the electromagnet through a MOSFET driver circuit, continuously adjusting the magnetic force to maintain the desired levitation height. An LCD display provides real-time information on the target gap, measured distance, and PWM output.
Technologies & Components
Arduino UNO | Electromagnet | IR Distance Sensor | MOSFET Driver Circuit | 12V DC Power Supply | LCD Display
Skills Demonstrated
PID Control | Embedded Programming | Arduino Development | Circuit Design | Sensor Integration | Electronics Assembly | Real-Time System Control
Key Learning:
This project bridged physics, mathematics, and electronics demonstrating how control theory can stabilise an inherently unstable system. It deepened my understanding of feedback loops, electromagnetic forces, and real-time system control.





