A constant-current controller that supplies a constant current to an inductive load. This controller comprises an electric control circuit module. The electric control circuit module comprises a primary switch and a secondary switch. During a time interval in which the primary switch is closed (ton), the secondary switch is open and the voltage across the inductive load is equal to the source voltage (Vs). At time ton until the end of a time interval (T), zero volts appears across the inductive load. During this interval, current continues to flow as supplied by the energy stored in the inductance. The periodic current in the inductive load becomes constant with a sufficiently large PWM switching frequency and is dependent upon the parameters of the control circuit and the duration of ton.