Vs ---- resistor ----- output | switch | GND