Lessons and the learning game

Magnetism and inductors

Coils as magnets and as inductors, the sensors that read a magnet and the actuators a coil drives, ending in an Uno that sorts by magnet.

What the course covers

Magnetism and inductors is seven lessons, one chapter each, with a quiz after every chapter:

  1. Fields and coils: force from current, the square law, saturation, and the least voltage that holds a load on an electromagnet.
  2. Inductance: L over R as a time constant, the voltage jump at every edge, and an inductor that is a wire at DC.
  3. Back EMF and flyback: a solenoid on a MOSFET, the spike at switch-off, and the diode that clamps it.
  4. Hall sensors: the linear 49E and the A3144 switch, both poles and one, and hysteresis.
  5. Reed switches: closing and opening distances, and sensitivity.
  6. Solenoids and electromagnets: a 12 V door lock and a 5 V holding magnet, what they draw and what 3.3 V costs.
  7. Boss: a magnetic sorter: an Uno running the magsorter sketch kicks south parts, holds north ones, counts them all, and takes a new threshold over serial.

What the simulation is and is not

  • There is no field solver. The electromagnet follows the square law up to its rating; the Hall sensors and reed see a 10 x 3 mm disc magnet whose distance you set with a slider.
  • The inductor is ideal; a resistor stands in for a coil's winding.
  • The switch-off spike is computed but lasts microseconds, too fast for a lesson check, so that one step is ticked by hand. The flyback lesson's coil is a big 1 H one so its decay is slow enough to watch.
  • The MOSFET has no avalanche model, so an unclamped spike runs higher than a real part would survive.

Relays and motor control for relay coils, and DC motors and generators for the coil that spins.