3D Speaker Electromagnet: How a Voice Coil Makes Sound

A Blender-built loudspeaker driver: a voice coil in a magnet gap, the Lorentz force, back-EMF, resonance and sound level from voltage and frequency.

Switch to 2D

Presets

Playback

Parameters

Camera

Layers

Quality

Model check

The science

What is modelled

A bookshelf loudspeaker with a 6.5 inch woofer. A sinusoidal voltage drives a voice coil that sits in the radial magnetic field of a ring magnet. The coil carries current, the field pushes on the wire (Lorentz force), and the coil moves the cone, which pushes on the air. The same motion generates a back-EMF in the coil, so the electrical and mechanical sides are coupled and are integrated together.

Equations

  • Mechanical side: M x″ = Bl·i − Rm x′ − k x where Bl is the flux density in the gap times the length of wire in it.
  • Electrical side: Le i′ = u(t) − Re i − Bl·x′. The term Bl x′ is the back-EMF.
  • Resonance fs = (1/2π)√(k/M), Qms = √(kM)/Rm, Qes = Re√(kM)/Bl².
  • Steady state (phasors): Zmech = Rm + jωM + k/(jω), Ze = Re + jωLe + Bl²/Zmech, I = U/Ze, v = Bl I / Zmech, x = v/(jω).
  • Sound: for a baffled piston at low frequency, prms(r) = ρ0 Sd arms / (2π r) and acoustic power P = ρ0 ω² Sd² vrms² / (2π c0). Sound pressure level is 20 log10(p/20 µPa).

Checks run in the page

  • The peak cone excursion from a time integration (RK4) of the coupled equations against the phasor formula.
  • Free ringing with the source shorted: the measured ringing frequency against the complex root of the characteristic polynomial (M s² + Rm s + k)(Le s + Re) + Bl² s = 0.
  • Energy balance over four periods: average input power against Re⟨i²⟩ + Rm⟨v²⟩.

Honest simplifications

The driver is linear: Bl, stiffness and inductance do not change with cone position, so there is no distortion even when the page reports that the linear excursion limit is exceeded. The radiation model is the low-frequency piston limit (valid below roughly 700 Hz for this cone), ignores the cabinet and the room, and treats the acoustic load as negligible for the motion. The cabinet volume, the port and the crossover are drawn but not simulated. The cone motion is exaggerated in the picture and time is slowed down by the chosen factor; the numbers shown are real-time values.

What to try

  • Use the 45 Hz preset: the cone swings far more than at 220 Hz for the same voltage, and the impedance graph peaks there.
  • Raise Bl and watch the resonance peak shrink: a strong magnet damps the cone electrically (lower Qes).
  • Make the cone heavier and see sensitivity at mid frequencies fall.
  • Switch on the half cutaway to see the coil moving in the gap and the Lorentz force arrow flip with the current.
Loading model...
Loading Blender model...
Sound level at 1 m against frequency
Cone excursion and coil current over three periods
Electrical impedance against frequency
Made with 🟠 Blender · Three.js