Skip to content

Active Magnetic Levitation System. A model-based implementation on ESP32 ensuring vertical stability via closed-loop feedback.

License

Notifications You must be signed in to change notification settings

michele-bisignano/Aether-Lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aether-Lock: Active Magnetic Levitation System

Language Platform Method License

Aether-Lock Logo

Aether-Lock Levitating

Aether-Lock is a high-precision, closed-loop electromagnetic suspension system designed with a Firmware-First and Model-Based engineering approach. It stabilizes an inherently unstable system (magnetic levitation) using a custom discrete PID controller running at 5kHz on an ESP32-S2.


🚀 Key Engineering Features

1. Model-Based Design

Control parameters were derived analytically from physical modeling.

2. Single Source of Truth (SSOT) Architecture

The project enforces consistency across Firmware, Simulation, and Documentation.

3. Advanced Control Logic

  • Feedforward Compensation: Real-time cancellation of the sensor-coil electromagnetic coupling.
  • Thermal Protection: A software-based thermal model estimates coil temperature.

🛠️ Hardware & Wiring

The system is built on the ESP32 WROOM architecture, featuring a custom power stage for the solenoid and signal conditioning for the Hall sensor.

For detailed schematics, the complete Bill of Materials (BOM), and assembly instructions, please refer to the dedicated documentation:

👉 Read Hardware Design & Assembly Guide

Directory Structure

The project follows a strict modular architecture separating Firmware, Hardware, and Simulation files.

👉 View Full Repository Tree


📊 Performance & Data Analysis

The system was rigorously characterized before writing any control code. A complete Data Engineering pipeline was built to derive physical parameters from raw sensor data.

1. Sensor Characterization (R)

Raw data from the Hall Sensor was processed using R (Tidyverse) to filter outliers, quantify noise ($\sigma$), and identify thermal drift.

2. Coil Coupling Compensation

An experimental ramp test revealed that the coil's magnetic field interferes with the sensor reading (-355 ADC points at 100% PWM). This phenomenon was modeled and corrected via a Feedforward term in the control loop.


📚 Technical Documentation Index

Detailed engineering reports and theoretical derivations are available in the Docs folder:

Document Description
Mathematical Model Physical derivation, linearization, and Pole Placement design strategy.
Hardware Design & Assembly Schematics, BOM, and wiring guide for the ESP32 and Power Stage.
Sensor & System Characterization Full report on sensor calibration, noise analysis (R), and coupling.
System Parameters Auto-generated table of current physical constants and controller settings.