The user press the start or On button, the micro controller closes the relay and ramp up the PWM signal to the gate of the mosfet so that the speed matches with the user RPM settings, however the motor didn't turn, the micro controller times-up and flag an error signal and turn off the relay for safety. [here when you measure the relay, the relay is off]
Well, the system is turned on, then diagnostic is done (possibly even without switching on the relay), then if everything is okay, it waits for the user to choose his "walking/running" program ;-) . I do really know that the relay is currently off, of course, but I got interested by the fact that the resistor was too hot for normal operations (thermal camera pinpoint obvious things like that, and more than 100°C is usually not good so I dig this path).
When you jumper the relay, the motor spin at full speed instead of controlled speed, that could mean that the mosfet is full ON or shorted. The resistor should not be hot, the only reason I can think of is, the mosfet is full ON or shorted but the relay is not closed, thus the current at full DC voltage is applied across the resistor, heating it up. It should not be so hot.
It's even worse in fact, I asked for a few more tests, the Mosfet is not controlled (VGS~0V), meaning that neither the engine should spin full speed, neither the resistor should heat that much : I ordered two mosfet, he will change it, then we will see.
In fact, in those tests everything is online (engine disconnected), the capacitor charge, then connect the engine, it spin a bit (capacitor discharge) + VGS kept equal to 0V (not commanded).
The mosfet is an IRFP460 (meaning I was right not a bipolar, anyway I wouldn't understand why putting something else than a Mosfet ;-) in this specific case, well maybe an IGBT if it was a giant treadmill for an elephant
).
EDIT (22/01/2017) : IRFP460 is advertised on the silk, real part is an IGBT G4PC40U (IR)
If the incoming AC voltage is 230vac, and the bridge rectifier is a full bridge, you should be getting more than 300Vdc instead of 200Vdc.. please check the full bridge rectifier.. don't look right. [Remember to discharge the capacitor when working with such voltage].
You are totally correct, I do know that I've forgotten this part of "high voltage" courses... the V*sqrt(2) or Vmax/sqrt(2)... Well, a good time to fix that in my brain after all (I usually never work with electronic related to the main voltage. Moreover my non DC signals are never sinusoids so I either calculate or measure the real Ueff or Umax).
In fact I said 200Vdc for, I don't remember why, I didn't measure this one, so
ok for ~320 VDC, thus I asked him to measure it again (engine unplug, meaning even if the mosfet is fried... this will be ok).
the relay is out. You can't get more than 200V because the current is limited by the 5k resistor. If you're lucky, everything is fine on the motor side, you need only 30mA to drop 150V on 5k resistor. At this time, the power dissipated is 150x150/1500=15Watts, 3 times the rating, it goes hot.
Do you ear the relay click ?
I think it didn't click anymore (first thing we checked - without forcing it yet), but if I had designed this I would have used the inrush resistor to diagnostic if there is any short or mosfet default with the micro controller without even turning on the relay (before doing that in fact). Obviously there is at least engine current measurement (clearly) and I think I've seen something looking like 300VDC measurements for the uC. I think the relay is not turned on because the default is detected, but we will check it (harder to supply than the mosfet by the way).
The relay is a SLA 12 VDC A - 30A
By the way there is 230V AC across the inrush resistor, so if I'm correct, it's 230Veff so we more or less have 230*230/5000 = 10.58W dissipated, so twice the resistor rate which was what I calculated when I've seen that and the reason why it's that hot... indeed.
Indeed the relay is the most likely culprit being mechanical and all. No need to mess with the mains voltage just put 12V across the relay coil and test for continuity across the relay contacts. If it is working then the next most likely would be that the back emf diode has failed and the transistor switching the coil has been killed out by the coil.
We are thinking of testing the relay since the beginning of the battle, but, it proves a bit tricky to be done safely... we may manage to do that but the time the new mosfet arrived. However basically, either we do that when everything is online (AC connected) and it's a bit dangerous, either we do that offline with a 12V DC source but if I'm pretty sure the NPN transistor don't care about it, I'm not exactly sure if the 7812 will like the 12V on is output when it's not powered ;-) , and it will get the chained 7805 online, which means everything else in the logic part will start, mmm not perfectly happy with all of that.
I am really too tired this evening to recheck how exactly a 7812 is made* and what will happen if we put 12V on its output and nothing on its input
*by the way I should check for this specific flavor of 7812... which I don't know, since we didn't remove it from the board and it's difficult to readNext steps- Check V_GS :
done V_GS=0, but the mosfet is conducting > change the MOSFET
- Order two replacement mosfet :
done- Change the mosfet :
waiting- Check the relay (if needed - depending of the mosfet results) :
waiting if needed- Check the NPN + diode command of the relay :
waiting if needed