How to wire up optocoupler for digitally controlled UV (under voltage) input protection?
simulate this circuit &ndash; Schematic created using CircuitLab

When V1 &lt; 3.3V, Q1 OFF, V2 = 0

When V1 = 3.3V, Q1 ON, V2 = 5