-1

I want a DC output of 0 V if the AC SPST is open (off state) and 5 V if the AC SPST is closed (on state.)

Please provide any circuit or solutions for this.

JRE
  • 71,321
  • 10
  • 107
  • 188
Raghuvir
  • 19
  • 1

2 Answers2

0

A 230 V ~ SPDT Relay may be used to detect the state of the SPST switch.

enter image description here

vu2nan
  • 18,175
  • 1
  • 16
  • 47
0

You can use an AC input solid state relay or photocoupler like the PS2705 across the switch contacts, with a series resistor that provides something like 2-5 mA at the voltage being switched. The output of the optocoupler would then be connected with a pull-up resistor of perhaps 5k to a 5V supply. The voltage across the device's output transistor will be low (less than 100 mV) when the switch is open, and pulled up to 5V when closed. This assumes that the switch has a substantial load that will not be affected by a few mA when the switch is open. This will also work on DC.

PStechPaul
  • 7,425
  • 1
  • 7
  • 26