← Back to the chapter · Previous detail

Technical detail · Hardware Build Discipline and Debugging

Pump surge and relay flyback

The pump-start example connects shared-path resistance to the regulator input requirement. The relay example connects interrupted coil current to a need for a clamp.

The mathematical gist. A 1.50 A pump surge through a 2.00 Ω shared path drops V=IR=3.00V=IR=3.00 V, leaving only 2.00 V at the regulator input from a 5.00 V supply. That is below the stated 3.60 V regulator-input requirement; if the 3.3 V output then drops below the example’s 2.43 V ESP32 brownout threshold, the chip resets. A 5 V, 71 Ω relay coil draws 70.4 mA; if its 0.3 H current is forced to zero in 1 µs without a clamp, V=L dI/dtV=L\,dI/dt gives about 21,127 V in this idealized calculation. This is not a captured peak; it motivates flyback protection rather than specifying a measured switch voltage.

← Back to the chapter · Previous detail