PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Electricity & Magnetism

Other simulators in this category — or see all 56.

View category →
NewUniversity / research

Gradient-B Drift

B_z(x,y) with weak gradient; orbit from q(E+v×B) at local B — gyration + drift.

Launch Simulator
NewUniversity / research

Magnetic Mirror (Bottle)

Axial B(z) pinch; μ adiabatic invariant, v∥ from −μ ∂B/∂z — Van Allen / mirror sketch.

Launch Simulator
NewSchool

Dipole Radiation Pattern

Time-averaged power ∝ sin² θ in the plane containing the dipole axis (far-field cartoon).

Launch Simulator
NewSchool

Half-Wave Dipole Antenna Pattern

Far-field E-plane pattern of a thin λ/2 wire: power ∝ [cos(½π cos θ)/sin θ]², directivity D ≈ 1.64 (~2.15 dBi); optional sin² θ overlay vs a short dipole.

Launch Simulator
NewSchool

Rotating Dipole E-field

±q orbit in the plane: Coulomb superposition arrows — near-field sketch before full radiation.

Launch Simulator
NewSchool

Bode Diagram (RC low-pass)

|H| in dB and phase vs log f; f_c = 1/(2πRC) marked — first-order pole intuition.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Electricity & Magnetism/DC Motor & Generator

DC Motor & Generator

A lumped brushed DC machine model uses one constant k linking magnetic flux linkage to both back-emf (E_b = kω) and torque (τ = kI). Motor mode integrates Jω̇ = kI − bω with V = I R_a + E_b; generator mode fixes shaft speed and computes E = kω and load current from R_a + R_load.

Who it's for: Introductory electromagnetism and energy conversion; complements the moving-magnet induction lab with a rotating-coil picture.

Key terms

  • back emf
  • DC motor
  • generator
  • Faraday induction
  • Lorentz torque
  • Ohm’s law

Live graphs

Mode & circuit

12 V
4 Ω
0.85
0.04
0.06

Ideal brushed machine: back-emf E_b = kω and torque τ = kI share the same k. Motor: V = IR + E_b and Jω̇ = τ − bω. Generator: open-circuit voltage grows with ω; current into the load follows Ohm’s law.

Shortcuts

  • •Switch motor/generator in the panel
  • •Reset motion clears angle and motor speed

Measured values

ω0.00rad/s
E_b or E0.000V
I0.0000A

How it works

A rectangular coil in a uniform magnetic field illustrates the same energy conversion in both directions. With a DC supply, current produces torque and the rotor accelerates until back-emf balances the circuit. When you crank the rotor, motion generates emf and drives current through a load — a dynamo.

Key equations

E_b = kω · τ = kI
Motor: V = IR_a + E_b , Jω̇ = kI − bω
Generator: E = kω , I = E / (R_a + R_load)

Frequently asked questions

Why is the same k used for torque and back-emf?
For an ideal energy-consistent model in SI units, the same flux linkage per ampere and per rad/s ties electrical and mechanical power: roughly P_elec ≈ E_b I ≈ τω, which forces k to appear in both relations when losses are lumped into R and b.
Where is the commutator?
Commutation is implicit: the model assumes torque and induced emf stay aligned so the rotor keeps turning in motor mode and delivers DC polarity into the resistive load in generator mode, as in a simplified textbook brushed machine.