Direct Current Motor Simulation

Use the simulation by starting, pausing, or stepping the rotor with the playback controls, then adjust the speed slider to see how the rotation changes. Switch between split-ring and slip-ring modes to compare behaviour, and use the magnetic field, current, and force toggles to focus on specific effects. You can also choose conventional or electron flow to change how current direction is displayed. In the 3D view, drag to rotate, right-drag to pan, and scroll or pinch to zoom so you can inspect how the coil, commutator, and brushes interact from different angles.
Open the simulation here.
The Problem
At the heart of any direct current (DC) motor lies a simple interaction between electricity and magnetism. When you pass an electric current through a rectangular coil of wire suspended inside a magnetic field, the magnetic field exerts a mechanical force on the moving charges.
By applying Fleming's Left-Hand Rule, you can deduce that one side of the coil will experience an upward force while the opposite side experiences a downward force. Together, these forces generate a torque ($\tau$), causing the coil to rotate.
If you connected the coil directly to a DC battery, it would rotate exactly $90^\circ$ until it reached the vertical plane. At this point, the forces would be pulling directly up and down, parallel to the plane of rotation, yielding zero torque ($\tau = 0$). If momentum pushed the coil slightly past this vertical alignment, the forces would now act to pull it backwards. The motor would wobble back and forth and quickly grind to a halt.
Enter the Split-Ring Commutator
To maintain continuous, unidirectional rotation, the direction of the current within the coil must be reversed the exact moment the loop swings through the vertical plane. This is accomplished mechanically by the split-ring commutator.
The commutator consists of a conductive metal cylinder split down the middle into two distinct, insulated half-rings (often referred to as segments). These segments are mounted on the rotating motor shaft and connected to the ends of the coil. Two stationary, carbon-composite "brushes" press gently against the sides of the split ring, supplying electricity from the stationary battery.
Enter the Split-Ring Commutator
During the first stage of a half-turn, the motor's brushes are in full contact with the commutator segments, allowing current to flow smoothly and generate the maximum torque needed to rapidly rotate the coil. As the coil reaches a vertical position, it enters the second stage where the brushes momentarily align with the insulated gaps; this drops the current to zero ($I = 0$) and vanishes the electromagnetic force, but the rotor's rotational momentum easily carries the coil past this brief dead point.
Finally, in the third stage, current reversal occurs as the segments cross the vertical threshold and switch contact to the opposing brushes, reversing the current's path through the physical wires to maintain the mechanical force in the same absolute direction and ensure uninterrupted rotation.
A Legacy of Modern Engineering
The split-ring commutator is an incredibly robust mechanical solution to an electrical problem. Though brushless DC motors (which use electronic sensors and microprocessors to shift magnetic fields) have become common in modern high-precision electronics, the mechanical split-ring commutator remains a foundational concept in physics and is still found in countless household appliances, power tools, and toy motors worldwide.