2

I'm trying to add an indicator to a relay circuit; specifically, I want to know if it's open or closed in a way that can detect contact welding. (I considered a DPDT relay, but it looks like these could fail with one contact welded while the other is open.)

Is there any way to detect continuity in a circuit that may or may not have a live (110 VAC) voltage, without affecting any load connected to that circuit?

Consider this diagram:

circuit

Basically, is there any way to implement the "magic box" here to detect whether the circled switch has continuity across its terminals, without circumventing the function of the switch, and that will work with the other switches in any position? (Assume the "magic box" is allowed to have an independent power supply. The "output" of the magic box should be illuminating one of two LEDs to indicate either "open" or "closed".)

To clarify, the goal is for the "tester" to be built into a larger device; the less steps the user needs to perform, the better. Ideally, imagine the relay replaced with a wall switch. The switch would have two lights, one indicating the switch is in the "off" position, and one indicating it is in the "on" position. (But the "on" light needs to light up whether or not there is voltage across the switch.)

I could wrangle something by hooking up a DPDT switch across the switch being tested that shunts it between a test circuit and "live" circuit, but that's not ideal. (In "test" mode, obviously the mains circuit can't be completed, and in "live" mode, the switch will always appear to be open.)

Note: it's fairly important that any failure in the "magic box" either does not short the switch, or is reliably detectable via the LEDs. (The former is more preferable.)

ocrdu
  • 8,705
  • 21
  • 30
  • 42
Matthew
  • 481
  • 2
  • 12
  • 2
    The circuit you show is going to burn the moment all switches are activated so, what are you really trying to accomplish (rather than show a faulty looking circuit)? – Andy aka Dec 22 '22 at 18:18
  • The circuit on the schematic does not make sense. Depending on the *real* circuit there might be ways. – Eugene Sh. Dec 22 '22 at 18:25
  • 1
    @Andyaka, see edit(s). I replaced one of the switches with a load. (There are actually four switches, all needing the "magic box", but I don't think that's relevant. What matters is having at least a second, so it's obvious the highlighted switch might not be the only interruption.) – Matthew Dec 22 '22 at 19:43
  • @EugeneSh., can you elaborate? What "doesn't make sense"? Is it just that I elided the load, which I have now fixed? – Matthew Dec 22 '22 at 19:54
  • With the load it makes more sense. In such a case you can perform your test in steps. First determine if the "main" switch is closed (that is the circuit is "live"). Can do by measuring the voltage between the "lower" pole of the power supply and the "upper" pole of your tested switch. If it is disconnected, a simple continuity test will do. If it is connected, measuring the voltage on the tested switch will tell you if it is closed or open. – Eugene Sh. Dec 22 '22 at 20:13
  • @EugeneSh., yeah, that's... not ideal. This is meant to be a built-in system, not something done ad-hoc. I think a better version of what you're describing would be to tie everything into a DPDT switch that shunts the switch being tested entirely out of the mains circuit. But that's still sub-optimal. – Matthew Dec 22 '22 at 20:18

2 Answers2

4

Something like this should work:
Updated to match your recent edit

schematic

simulate this circuit – Schematic created using CircuitLab

Ignore the Rsim resistors - they're only there to make the simulator happy.
The "Ground" nodes are not intended to represent "Earth Ground" - they're just the circuits common 0V reference. This entire circuit should be regarded as Live at all times and treated with the necessary respect. Visolated could be a battery supply, or an isolated DC supply powered by the incoming mains.
The first switch (SW1a) is just duplicating your diagram & doesn't serve any extra function in the circuit. It's simulated as a "Time Controlled Switch" so that the simulator can switch it on half-way through the simulation.
Note that there's nothing here which will differentiate between welded contacts and a normal "relay closed" state.

With SW1 off, the circuit relies on its "Visolated" supply to determine whether the relay contacts are open or closed. When they're open, Visolated supplies current through R2, D1, D2 & R1 to charge up C1 and switch on the NMOS M1. This then allows current to flow through Dgreen, turning it on, and effectively shorts out Dred, turning it off (not the most power-efficient method, but functional).
With the relay contacts closed, current from Visolated through R2 & D1 is 'shunted' to ground instead of flowing through D2 & R1, so C1 discharges through R3 and M1 turns off.
In this case, Visolated only supplies about 0.5mA (in addition to the LED drive current).

With SW1 on, we now have mains AC applied to the relay contacts.
When the contacts are open, current during the AC positive half-cycle flows through D2 & R1, again charging up C1 and turning M1 on. The voltage which C1 is allowed to charge up to is limited by the Zener D3, and R1's primary purpose is evident here because it's what limits the current flowing through the D3 to a sensible level.
During the negative half-cycle, no current flows through D2 & R1, and C1 will start slowly discharging through R3, but will not discharge enough during one half-cycle to cause M1 to turn off.
Similarly to the initial case with SW1 open, when the relay contacts are closed, current is shunted by the relay contacts instead of flowing through D2 & R1, so C1 discharges and M1 turns off.
In this case, Visolated is supplying more current than above since it's now effectively in series with the main supply. Assuming 110V mains then Visolated will be supplying about 10mA over the duration of the negative half-cycle, and nothing over the duration of the positive half cycle (due to D1 being reverse-biased).

It would be extremely unlikely for a failure in this circuit to result in a 'relay-closed' condition. The parts which would be most likely to fail almost invariably fail to an open-circuit condition. Choosing 'fusible resistors' for R1 & R2 would be a good idea.
But for a guaranteed fail-safe solution you could add a fuse at the D1/D2/Relay junction to separate D1 & D2 from the relay in event of any of the components failing to a short circuit.
The tricky part would be selecting a suitable fuse. It would need to have a relatively low fuse current rating - probably 100mA or less (definitely less than whatever the normal operating current of your load is) - but also have a breaking capacity which meets or exceeds the current rating of the circuit it's plugged into.

brhans
  • 14,373
  • 3
  • 34
  • 49
  • As to "there's nothing here which will differentiate between welded contacts and a normal 'relay closed' state"... I think I see where you're going with that. I could probably figure out how to wire 'and' logic to that indicator with the relay's coil state, but for my purpose I don't need that; the indicator only needs to indicate if the relay is closed. In usage, it's enough for that to light when not expected to indicate a fault. Anyway, I don't think it's *possible* to tell if the contact has welded when the relay coil is energized. – Matthew Dec 22 '22 at 19:58
  • Two other questions. What modifications if any are needed to run this on 12V? Can it use "packaged" LEDs (i.e. ones with internal resistors that expect a straight 12V across the wires)? I'd prefer to use [Alpinetech PL12M](https://www.amazon.com/dp/B071YM4C56)s as the indicators. (I *could* use 5V indicators, though I'd have to go with a different brand, but panel-mount is sort of a requirement, and I *believe* those tend to be the "don't add a resistor" kind.) – Matthew Dec 23 '22 at 16:28
  • BTW, "Visolated is supplying more current than above since it's now effectively in series with the main supply"... is that going to be a problem for the PSU, especially a) if it's a cheap LED driver and/or b) if it's also powering some other stuff (fans)? (...or a problem for the fans, for that matter...) – Matthew Dec 24 '22 at 18:42
  • If I replace the two grounds on the detector side with connectivity to each other (as I would naïvely expect to *actually* wire this thing), it seems (according to the sim) I wind up with 110VAC in some... undesirable places? Does one of those need to be *AC* ground/neutral? – Matthew Dec 30 '22 at 16:12
  • Those "grounds" are only the 0V reference for that side of the circuit. Yes they should be connected together, but there's no connection from there to AC mains neutral or earth-ground. – brhans Dec 30 '22 at 16:47
  • Do you know why, then, if I remove the grounds and instead add a connection from the lower branch to V-, the simulator shows that the LEDs see 110VAC? – Matthew Dec 30 '22 at 18:04
  • Do you still have a "ground" point for the simulator to use as its 0V reference when running the simulation? When you write "LEDs see 110VAC" where exactly did you measure? The entire circuit should be regarded as "live" at all times as it will be "floating" at 110Vac above "earth ground" in practice. – brhans Dec 31 '22 at 01:09
  • Okay, I think I see what you mean. I found another issue, however; the ultimate goal is to have four of these. When I drew that up, I eventually realized I'd created a short across the relay contacts, because the bottom "bus" is shared. (Basically, the ground at the bottom on the sense circuit — not the ground associated with the coil — eventually goes back to the same place.) I *think* this is fixed by adding a diode between the MOSFETs and the RC loop? (And moving the ground point behind the diode?) Would I just use another 1N4004 for that, or should it be something else? – Matthew Jan 04 '23 at 22:55
  • Also, I wonder if it would be sensible to add another fuse before said diode...? – Matthew Jan 04 '23 at 22:57
  • Each instance of this circuit should be completely separate from each other instance. They each have their own "Visolated" supply, and you do *not* connect the 0V "local ground" of one to any of the others. In fact if you're chaining a bunch of these together, then the 0V of one of them will be Hot/Live of the next one in the chain. – brhans Jan 04 '23 at 23:00
  • I've made a small edit to better illustrate what I mean - everything inside the box is isolated from anything outside the box. It's a 2-terminal "black box" with a pair of LEDs poking out. Nothing inside one box connects to anything inside another copy of the box. If "Visolated" is a little AC-DC switching supply, then it gets supplied from another 2 terminals which will be connected in parallel with the same set of terminals on all the other copies. – brhans Jan 04 '23 at 23:05
  • "...it gets supplied from another 2 terminals which will be connected in parallel...", right. But unless I'm still missing or misunderstanding something... that's equivalent to saying the two upper grounds (also the two positives) are tied (essentially, shorted) together, i.e. there is a three-way junction from the PSU to your "L" of both circuits. And the lower ground is actually connected to your "N". Which means both "N"s are shorted. And since the lower ground is *also* shorted to one of the relay terminals, I end up with two relay terminals shorted together, yes? – Matthew Jan 05 '23 at 03:25
  • No. "Visolated" is an *isolated* AC-DC converter. there's no connection between it's L/N mains AC input and its low-voltage DC output. N is not "grounded" to the circuit inside the box. – brhans Jan 05 '23 at 03:53
  • Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/141806/discussion-between-matthew-and-brhans). – Matthew Jan 05 '23 at 14:20
1

You ruled out DPDT relays because of the failure mode where one contact welds shut and the other opens. This is a common problem with a very simple solution: Use a safety relay with force-guided contacts, e.g. from the TE SR2M series.

Safety relays are designed in a way so that the failure mode described is avoided mechanically, i.e. the contacts are linked as such that if one welds, the other will not be able to open.

This relay does not seem fulfil the other requirements of your application. I provide it only to let you know those kinds of relays exist.

For higher contact ratings, there also are safety contactors with force guided contacts. A quick search revealed the Allen Bradley 100S-C with 23A rating as an example of a safety contactor. I'm sure there are lots more.

Crazor
  • 435
  • 3
  • 11
  • Oof. Contact rating, *6A*. The relays I currently have "penciled in" (G5RL-1A-E-TV8) are 16A plus inrush. I'm trying to build this to handle "anything" that could be plugged into an electrical outlet. I already consider not handling 20A a concession, albeit one I can live with as 15A limit is still pretty common. – Matthew Jan 07 '23 at 15:32
  • I did not say that this type of relay is the type to use in your application. I just added the part number from the top of my head to make it easier to find a datasheet of *one* kind of safety relay. Once you know they exist, you can probably find one that is suitable for your application. – Crazor Jan 07 '23 at 18:09
  • I updated my answer to mention safety contactors. – Crazor Jan 07 '23 at 18:18
  • Sure. But $240 each is also problematic. – Matthew Jan 07 '23 at 19:05
  • Basically, I am not aware of any such relays that have comparable contact ratings and aren't cost-prohibitive. If the options are building the circuit as described for $50 and using a $10 relay vs. using a $250 relay... – Matthew Jan 07 '23 at 19:19
  • Well, it didn't take that long to find a counter example (and I didn't even ask my rep yet). How about Elesta SIP6? And if not, you could always parallel two pairs of 10A contacts on a 3PDT. Vendors usual advice would be that that gives you 160% rating instead of 200% because of uneven load sharing. 16A isn't that big of a deal for safety relay applications. And IMHO a true dry contact beats a trick circuit like the one in the other answer every time. But you do you. – Crazor Jan 08 '23 at 06:41
  • Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/141903/discussion-between-matthew-and-crazor). – Matthew Jan 08 '23 at 15:00