Good day folks. I've got this module/sub-board with 3 chunky relays on it out of a Legrand UPS - pretty big and beefy thing. My colleague began repairing it, replaced some components which were blown, but eventually gave up due to lack of time after failing to get it to work after several attempts, so I decided to give it a shot myself.
So what even is this ? Its purpose as part of the UPS itself is of no relevance to us right now - what DOES matter is that we're dealing with a non-isolated power supply driven by U1, a UC3843 (can't figure out how to insert links without pasting the whole URL, sorry...

). Glossing over what it actually does when bolted in its place inside the UPS (since I'm not sure), it's powered straight from the mains AC input of the UPS (measured continuity to confirm this), which is why I just soldered that mains lead where the lugs are to power it on the bench, as it would take far too long to install it back on the UPS for every test.
FET Q1 was blown. U1 was shorted VCC-GND. R5, R13 were open (R13, R5). With no exact schematic available, as expected, we did the next best thing we could and tried analyzing other schematics based around the UC3843 to at least try and suss out the values of these 2 resistors.
R5 is the gate drive - it sits between the gate of the FET and pin 6 of U1. It was fairly simple to work out the value, as most schematics show it as a low-ish 10ohm resistor, or thereabouts which makes sense - you don't put a high resistance between the gate and the driver IC, so we went with 10ohms.
R6 is a 10k resistor sitting between the gate of the FET and GND, which corresponds to the middle AC lug. I'd call it "neutral", but here in the EU that's all academical, because it all depends on how you plug it in at the wall, so I'll just call it "AC". This also makes sense because all the negative legs of the electrolytic capacitors are tied together to this lug.
R13 is not so straightforward: it sits between the large ceramic 0.15ohm current sense resistor and pin 3 of U1. Unfortunately, there doesn't seem to be a clear-cut value for it: it varies from circuit to circuit. I see my colleague left a 1k on there, which indeed seems to be the most prevalent value among other circuits, though I've seen it as high as 5k - never lower than 1k, so I just rolled with it for now.
For Q1, my colleague installed a 6N90C - whether this is a direct replacement of the original, I have no idea, so I just rolled with this too.
There's also the matter of this U2 (LM393) in the bottom-left which to me is a bit of a mystery as to what it does - I know it has something to do with pin 1 (COMP) of the IC, but I don't know how it works: long story short, U2 was also damaged. I removed it and tried it out on its own - the outputs were shot and remained 0v regardless of what I fed on the inputs. I replaced it too. I also checked U3 (TL431) off the board and it's fine (2.5v on the REF pin).
With all this done, I used a 25w bulb in series with the mains and plugged the whole thing it: the filament glowed briefly as the big cap charged, then it began pulsing faintly as if trying to pull the relays in. I took a shot plugging it in without the bulb, thinking perhaps it hasn't got enough current. Sadly, it popped the fuse, shorted D2 (upper-right) and Q1 became shorted D-S (not G though !). Everything else seems to have survived, resistors and all. I'm not sure about U1, other than the fact that it doesn't show any shorts to GND, but given that none of the resistors blew and Q1's gate was ironically NOT shorted, we can assume it's fine for now. Ok, so what now ?
I tried it one more time, thinking perhaps D2 was already shorted the first time around and I simply missed it. Not having another 6N90C on hand, I used a 2SK3532 in its place. Same story though: the filament pulses repeatedly and blows D2 and Q1 when directly on mains. Because of this, I can't take any voltage readings.
Another thing I tried: hooked up my bench supply to those 12v test hooks (AC disconnected, of course). All 3 relays pull in and the board seems stable. Current draw is around 40mA (probably close to 1A at pull-in, with such beefy coils). NOW I can take some partial readings:
- 0.7v on pin 1 (COMP) of U1
- 5v on pin 8 (VREF) of U1
- 12v on pin 1 (OUT) of U2
- 2.5v on pin 1 (REF) of U3
That's it for now....
My money is on R13 not being the right value. I'm aware there IS a way to calculate these values based on calculations and formulas in the datasheet, but it goes way over our heads for now - we're not exactly scientists to be able to work through all that, plus we don't know the specs of the transformer to begin with, so we just have to ballpark it enough to get it going again. Any help as to why may be causing the FET to lock up and short D-S each time would be greatly appreciated.
Pictures were taken in a bit of a hurry I'm afraid (Friday

), so they're not ideal...sorry about that.