TIDUFK2 September 2026
The breaker control is implemented as a state machine with the three states listed in Table 3-2.
| State | Relay command | Status indication |
|---|---|---|
| OPEN | De-energized | Open - Blue LED |
| CLOSED | Energized | Closed - Green LED |
| TRIPPED | De-energized | Trip - Red LED |
After reset, the breaker always enters the OPEN state. The relay driver is disabled, the open LED is activated, and no current can intentionally flow through the load path. This provides a defined hardware-safe startup condition independent of the previously commanded Zigbee state.
A short press of the local button toggles the requested breaker state. Zigbee On/Off commands explicitly request either an open or closed state. Both interfaces write to a common control mailbox, and the most recently received normal control command is processed by the Protection task.
Protection events have priority over all user commands. When an instantaneous-current, ADC window-comparator, or overload trip occurs, the breaker:
The trip state remains latched until a new explicit open or close command is processed. An open command clears the trip indication and places the breaker in the OPEN state. A close command resets the trip state and attempts to energize the relay again.
The relay is controlled through the DRV8213. To close the breaker, the PWM output is prepared before IN1 is enabled. The coil then receives full drive for 100ms. This interval is monitored using a timestamp without blocking the Protection task. Afterwards, the driver changes to a 20kHz holding waveform with 35% effective coil drive, corresponding to IN2 being low for 35% and high for 65% of each PWM period.
Opening or tripping clears IN1 immediately and subsequently stops the PWM output. A protection trip can initiate this sequence directly from the ADC interrupt path. If the relay driver cannot be prepared successfully, the close operation is aborted and the breaker remains OPEN.