Magnetic levitation is fun science project.
In this Electromagnet Levitation Circuit with Hall Effect Sensor, small magnet can float in air without a touch.
It use electromagnet and hall sensor.
Hall sensor see magnet position and transistor gives current to coil.
This make balance of magnet force and gravity, so magnet look magic floating.
It is good project for learning feedback system.
Circuit Working:

Parts List:
Component Name | Value | Quantity |
---|---|---|
Resistors | 10k 1/4 watt | 1 |
100k 1/4 watt | 1 | |
250Ω 1/4 watt | 2 | |
Semiconductors | Transistor NPN TIP122, 2N2222 | 1 each |
Transistor PNP TIP127 | 1 | |
Hall Effect Sensor A3144 | 1 | |
Diode 1N4933 | 2 | |
Electromagnet Coil 24V DC Solenoid coil | 1 |
A3144 hall sensor is the main components of this circuit.
It sense magnetic field, when magnet come close and sensor output change.
This output goes to transistor amplifier stage.
NPN and PNP transistor work together like push pull pair.
They drive current in electromagnet coil.
If magnet goes down then sensor tell circuit to increase coil current.
If magnet goes up then sensor tell circuit to decrease the coil current.
In this way magnet stay in air at one balance point.
Diodes across the coil protect transistor from back emf when current switches fast.
Coil making:
We have used electromagnet coil from 24V DC solenoid.
As core its used steel bolts and its size 1/4 to 20.
Fix bolts into holes drilled in two iron bars size 1 inch by 1/4 inch by 10 inch.
Then cut bolt heads and make them one inch longer than coil length.
Each coil resistance is 80 ohms.
At 24V it take about 6 watts if fully ON.
But in normal running current is not always maximum.
If not then we need to do hand winding of many coils.
Formula:
Coil is wound using 250 turns of 35 gauge copper wire on a bolt of 1/4 inch diameter.
Inductance L can be approximate by formula:
L = (N^2 * μ * A) / l
where,
- N is the number of turns
- μ is the permeability of core
- A is area of coil
- l is the length of coil.
Current required depend on weight of magnet.
Force of electromagnet F is given by:
F = (B^2 * A) / (2 * μ0)
where,
- B is the magnetic flux density
- A is the area of pole face
- μ0 is the 4π × 10^-7 H/m.
How to Build:
To build a Electromagnet Levitation Circuit with Hall Effect Sensor following steps are required to follow:
- First collect all parts shown in circuit.
- Connect collector of Q1 to +24V by resistor R2.
- Connect base of Q1 between resistor R1 and output pin of IC1.
- Connect emitter of Q1 to -24V.
- Connect collector of Q2 to +24V.
- Connect base of Q2 between resistor R2 and collector of Q1.
- Connect emitter of Q2 join with emitter of Q3.
- Connect collector of Q3 to -24V.
- Connect base of Q3 between collector of Q1 and resistor R2.
- Put diodes D1 and D2 in series between +24V and -24V.
- Connect one end of coil to emitters of Q2 and Q3.
- Connect other end of coil to ground.
- Connect pin 1 (Vcc) of IC1 A3144 to +5V.
- Connect pin 2 (GND) of IC1 A3144 to ground.
- Connect pin 3 (OUT) of IC1 A3144 to base of Q1.
Conclusion:
Magnetic levitation is fun hobby.
It also show real use of control and feedback.
This project show how hall sensor and electromagnet balance magnet weight.
With little practice we can make small magnet float stable in air.
This Electromagnet Levitation Circuit with Hall Effect Sensor can be improved with strong coil, more stable float or used in school science project.
Leave a Reply