Wed Feb 20, 2019 10:39 am
danjperron wrote: ↑Wed Feb 06, 2019 5:12 pm
1. I notice on one of your picture that the resistor was on the ground instead of the GPIO. 2. Then The Raspberry Pi wasn't really at the same ground level than the rest of your setup.
3. You have a kind of faulty ground there.
Setting Rpi Ground and MOSFET Ground Not At the Same Level
The following electronics.stackExchange explains why there is a resistor between the two grounds. (But I don't understand the explanation about the ground loop!
)
The Rg of 200Ω seems a calculated value, unlike my wild guessing 560Ω . So I will follow him.
Connecting controller to IRF540N
https://electronics.stackexchange.com/q ... to-irf540n
Bruce Abbott 2016apr19
R1 limits the charge/discharge current and damps any 'ringing' due to the tuned circuit formed by the Gate's capacitance and inductance of the wiring. Its value is not critical, but while larger values provide better damping they also slow down the switching speed.
The slower the FET switches the more time it will spend in the 'linear' region where it is dropping high voltage, which makes it heat up more. The higher the PWM frequency the more critical this becomes, as there are more switching events per second. The Arduino normally runs fairly low frequency PWM so R1 can be quite high.
200Ω should be high enough to damp any ringing without slowing the FET down too much.
The purpose of R2 is not clear. Theoretically the Arduino ground could be connected directly to the power supply ground. I suspect R2 was put there to protect the Arduino from differences in ground potential if the power supplies were not connected correctly. However as it is in series with the Gate drive circuit, if the two grounds are not joined together elsewhere it will drastically increase the FET's switching time. I would reduce its value to 100Ω or less - high enough to prevent dangerous current flow if a 'ground loop' occurs, but low enough to not affect the Gate drive.
...
-
Attachments
-

- between_ground_resistor_2019feb2001s.jpg (127.68 KiB) Viewed 2861 times
I am an electronics and smart home hobbyist.