EMDyna Sandbox Scene Details
Overview Manual & Theory Validation Suite Python API Gallery Open Simulator

← Back to Scene Gallery

OfficialEasyCompass Turned by Current (Oersted's experiment)

Oersted's experiment demonstrating the magnetic field produced by current in a straight wire (right-hand screw rule) using 4 compasses. [Highlights] - Current through the center wire produces concentric circular magnetic fields. - Closing the switch turns all 4 compasses to align along the circle! - Opening the switch removes current; reversing voltage rotates the compasses in reverse. - Drag diamond handles on compasses to explore fields throughout space.

Oct 17, 2026 • 10 views

Launch & Remix in Simulator

Read the explanation, with equations and figures ↓

Modify this scene in the simulator, then open the "Scene" tab and click "Publish Current Scene to Gallery" to share your remix!

·

In short

Four compass needles sit in a circle around a vertical wire. When electricity flows through the wire, all four needles suddenly swivel and point in a circle around the wire.

In 1820, Hans Christian Ørsted discovered this effect, proving for the first time that electricity and magnetism are linked.

Concentric magnetic field and compass needles (Ørsted's experiment, 1820)
Concentric magnetic field of a straight current aligning compass needles.

What you are looking at

A vertical conductor passes straight through the center of the scene, carrying current supplied by a battery and closed via an outer return loop. Positioned in the horizontal plane at four cardinal positions (East, North, West, South) at a radius of r=3.8 cmr = 3.8\text{ cm} are four compass needles:

  • Each compass needle has magnetic remanence Br=0.05 TB_r = 0.05\text{ T} and is pivoted to rotate freely about the vertical yy-axis.
  • When the switch is closed, current I≈5 AI \approx 5\text{ A} surges through the central wire.
  • All four compass needles instantly swivel in unison, aligning tangentially to form a circular magnetic ring centered on the wire.

This reproduces the historic experiment performed in April 1820 by the Danish physicist Hans Christian Ørsted, which provided the very first direct evidence unifying electricity and magnetism into a single physical phenomenon.

Circular magnetic field and the right-hand rule

The orientation of the magnetic field B\mathbf{B} circling around the current-carrying wire follows the right-hand rule:

  • If the right thumb points along the direction of conventional current II,
  • The curled fingers indicate the direction of the magnetic field vector Bθ\mathbf{B}_\theta.
PositionCoordinates (x,z)(x, z)Distance rrMagnetic field directionCompass needle alignment
East(+3.8 cm,0)(+3.8\text{ cm}, 0)3.8 cm3.8\text{ cm}−z-z (Southward)Points −z-z
North(0,+3.8 cm)(0, +3.8\text{ cm})3.8 cm3.8\text{ cm}+x+x (Eastward)Points +x+x
West(−3.8 cm,0)(-3.8\text{ cm}, 0)3.8 cm3.8\text{ cm}+z+z (Northward)Points +z+z
South(0,−3.8 cm)(0, -3.8\text{ cm})3.8 cm3.8\text{ cm}−x-x (Westward)Points −x-x

Magnetic field strength and compass torque

By Ampère's circuital law and the Biot–Savart law, a long, straight wire carrying electric current II generates an azimuthal magnetic field B\mathbf{B} whose field lines form concentric circles around the wire:

B(r)=μ0I2πrB(r) = \frac{\mu_0 I}{2\pi r}

where μ0=4π×10−7 T⋅m/A\mu_0 = 4\pi \times 10^{-7}\text{ T}\cdot\text{m/A} is the permeability of free space, and rr is the radial distance from the conductor axis.

Magnetic torque on a compass needle

A compass needle acts as a small magnetic dipole with magnetic dipole moment m\mathbf{m}. In an external magnetic field B\mathbf{B}, it experiences a restoring torque:

τ=m×B\boldsymbol{\tau} = \mathbf{m} \times \mathbf{B}

The torque drives the needle toward the lowest-energy state where m\mathbf{m} is parallel to B\mathbf{B} (τ=0\tau = 0, U=−m⋅B=−mBU = -\mathbf{m}\cdot\mathbf{B} = -mB). Because B\mathbf{B} forms concentric loops, the four needles naturally align into a circular daisy chain.

At distance r=3.8 cmr = 3.8\text{ cm} with current I≈5 AI \approx 5\text{ A}:

B=4π×10−7×52π×0.038≈2.63×10−5 T≈0.26 GB = \frac{4\pi \times 10^{-7} \times 5}{2\pi \times 0.038} \approx 2.63 \times 10^{-5}\text{ T} \approx 0.26\text{ G}

This field is comparable to Earth's geomagnetic field (≈0.3∼0.5 G\approx 0.3 \sim 0.5\text{ G}), allowing a laboratory current to clearly overwhelm local background magnetic fields and rotate compass needles with authority.

Try it

Comments