Traction Power Availability Monitor

Samples the ZMPT101B on ADC1 (GPIO34) as fast as analogRead allows. 2. Computes true-RMS over a short window (default 40 ms = 2 cycles @ 50 Hz). 3. Detects a voltage sag that stays under the rolling-stock threshold for longer than SAG_HOLD_MS.

Field 1 Chart
Field 2 Chart
Field 3 Chart
Field 4 Chart
Field 5 Chart
Field 6 Chart