What this simulation shows
The stage shows one moving-coil unit sliced in half along its axis. At the back is a magnet whose centre pole is N and whose outer ring is S. A coil of thin copper wire sits in the narrow gap between them, and the coil is glued to a light paper cone that opens out to a fixed rim. Underneath, a trace scrolls past showing the last 10 ms of signal. Everything runs 400 times slower than real life, and the cone's travel is drawn far bigger than it really is, so you can follow a single cycle.
The loudspeaker: current becomes sound
In the gap, the magnet's field points straight across from the centre pole to the ring. Every turn of the coil crosses that field at 90°, so every bit of wire feels a force, and all of those forces point the same way: along the coil's axis. This is the motor effect at work.
An alternating current from the amplifier flows round the coil. While it flows one way, the coil and cone are shoved forwards; when it reverses, they are dragged back. The cone therefore vibrates at the frequency of the current. Each forward push squashes the air in front into a compression, and each pull back leaves a rarefaction, so a sound wave spreads out with the same frequency as the electrical signal.
Swap the a.c. for a steady direct current and the force no longer reverses. The cone moves out once and stays there. With nothing vibrating, there is no sound, which is why loudspeakers need a.c.
Working out the force
Because each turn meets the field squarely, the size of the push comes from
with the length of wire inside the field (m), the current (A) and the magnetic flux density (T). The model coil has 4.0 m of wire in the gap, so the default 0.50 A peak in a 1.0 T field gives a peak force of 1.0 × 0.50 × 4.0 = 2.0 N. Double the current and the force doubles too, so the cone swings further and the sound is louder. A higher frequency does not change the force at all: it simply makes the cone reverse more often, giving a higher pitch.
The microphone: sound becomes a signal
Run the same unit backwards. Now sound arrives from in front. Each compression shoves the light diaphragm inwards and each rarefaction lets it move out, so the coil is carried back and forth through the magnet's field. A wire moving across a magnetic field has a potential difference induced across it: the generator effect. The coil's p.d. alternates at the frequency of the sound, so the electrical signal is a copy of the sound wave.
Watch where the p.d. peaks. It is largest as the coil rushes through the middle of its swing and zero at each end, where the coil stops for an instant to turn round. The induced p.d. depends on how fast the wire moves, not on where it is. A louder sound moves the coil faster, giving a bigger p.d.; a stronger magnet does the same. Beyond GCSE, the size is , where is the speed of the wire.