• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Electromagnet Levitation Circuit with Hall Effect Sensor

Electromagnet Levitation Circuit with Hall Effect Sensor

Last updated on 6 September 2025 by Admin-Lavi Leave a Comment

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:

Electromagnet Levitation Circuit Diagram with Hall Effect Sensor

Parts List:

Component NameValueQuantity
Resistors10k 1/4 watt1
100k 1/4 watt1
250Ω 1/4 watt2
SemiconductorsTransistor NPN TIP122, 2N22221 each
Transistor PNP TIP1271
Hall Effect Sensor A31441
Diode 1N49332
Electromagnet Coil 24V DC Solenoid coil1

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.

References:

A3144 Hall Effect Sensor: Datasheet, Circuit and Pinout

Filed Under: Sensors and Detectors

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Simple Digital Thermometer Circuit with IC LM35
Next Post: Single Transistor Theremin Oscillator Circuit »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • Alarm Circuits (34)
  • Amplifier Circuits (67)
  • Arduino Projects (59)
  • Audio Circuits (98)
  • Automobile Circuits (19)
  • Battery Charger Circuits (49)
  • Free Energy (13)
  • Heater and Temperature Controllers (10)
  • High Voltage (1)
  • Indicator Circuits (41)
  • Inverter Circuits (14)
  • LDR Circuits (17)
  • LED and Lamps (118)
  • Meters and Testers (29)
  • Motor Controllers (18)
  • Oscillator Circuits (34)
  • Power Supply Circuits (93)
  • Remote Control Circuits (7)
  • Security and Protection (26)
  • Sensors and Detectors (98)
  • Solar Circuits (17)
  • Timer Circuits (31)
  • Transistor Circuits (57)
  • Transmitter Circuit (14)
  • Tutorials (5)
  • Water Level Controller (4)

Recent Posts

  • Smart Energy Meter Circuit with Arduino UNO
  • LED Binary Counter Circuit
  • Audio Spectrum Analyzer Circuit using IC MSGEQ7
  • RGB LED Color Control Circuit with LDR and Arduino
  • Arduino Based GPS Digital Clock Circuit

Recent Comments

  1. Admin-Lavi on Constant Voltage, Constant Current Battery Charger Circuit
  2. Bill on Constant Voltage, Constant Current Battery Charger Circuit
  3. Admin-Lavi on Long Range FM Transmitter Circuit (2km)
  4. Sina on Long Range FM Transmitter Circuit (2km)
  5. Admin-Lavi on Long Range FM Transmitter Circuit (2km)

Copyright © 2025 | New Circuit Ideas