loading

Need help with MOSFET h-bridge; gets hot when using PWM frequency of ~500Hz.

Hello,
I recently bought an Arduino and used it to control a MOSFET h-bridge circuit.Everything worked fine until I started using PWM to drive the motors.The PWM frequency is about 500 Hz and I've already tried switching out the 1N4004 flyback diodes in the h-bridge circuit for 1N5819 shottky diodes but it didn't help. The schematic of the h-bridge can be found here ( https://cdn.instructables.com/FDQ/NF1D/GWF60U03/FDQNF1DGWF60U03.MEDIUM.gif )

What should I do?

Andy

sort by: active | newest | oldest
iceng4 years ago
Which of the inputs are you sending PWM ?
You do realize only one half of a leg needs the PWM..

a
Monoclecat (author)  iceng4 years ago
oh ok, my circuit looks like this:
MyPWM.png

thanks sir, very helpful.
telolet

Monoclecat (author)  Monoclecat4 years ago
should it rather look like this?
MyPWMhowitshouldbe.png
Here you are...
Only PWM the Fast direct MOSET the other NPN to a P-FET is Slow
So it is simply on and they are crisscrossed for current to flow through the motor.

And the diodes should be 1N4004.  Keep in mind each MOSFET has a
built in Fast inverse diode..  The 1N4004 can be slower and it is there
to take the heavier reactive inverse current that could damage or over heat
the MOSFET !!!   .   .   .   .   A
PWM-brige.GIF
Monoclecat (author)  iceng4 years ago
Thanks, but I have one question, can I connect the PWM A and PWM B to the same PWM output on my Arduino and select the direction with ON B and ON A?
That would not take up as many PWM outputs on my arduino.

I think that was the reason for the overheating!
Thanks!

andy

nnnno because ...... You do understand that would cause two mosfets shorting the 12v supply !!

Monoclecat (author)  iceng2 years ago

Yes sir, that was two years ago. I then designed the circuit so that the direction pins and the PWM were seperate.

You must know you helped me out very much back then. I used that circuit in my robot I built with my friend. It turned out very well.

Good to hear.

No !
Monoclecat (author)  steveastrouk4 years ago
Oh alright then

i made this circuit on proteus....it work well for few instants than give follwing errors

proteus file is given below.

Capture.PNG
Monoclecat (author)  huzaifaali.73932 years ago

I can't help you with that, I never touched Proteus and don't know anything about it

rickharris4 years ago
Almost every case of transistors getting hot is because you not turning them fully on.

In this case I expect the MOSFET isn't well matched to your needs at 500 HZ

Respond to Steve's questions & we may be able to advise further.
NOT a good circuit
Monoclecat (author)  steveastrouk4 years ago
What do you mean? Is this circuit not good?
No.
Monoclecat (author)  steveastrouk4 years ago
Do you have a better circuit for an MOSFET h-bridge using IRF9540's and IRF540's?
That way I could use it on my next project.

andy
You'll probably get away with it, if you change out the bits I suggested. Otherwise., as I said before, what current are you expecting the motors to take ?
Monoclecat (author)  steveastrouk4 years ago
About 4 amps stall current.
What rating are the Mosfets ?

What current are you taking ?

What voltage are you supplying ?

Does the motor drive ?
Monoclecat (author)  steveastrouk4 years ago
I'm using IRF9540N and IRF540N.

I'm supplying the circuit with a 12V SLA battery.

Now's the interesting part I just now found out: I tried switching the transistors without load and they still heated up so I don't think it has anything to do with current. What do you think?

andy
That 22k on the NPN transistors seems very small to me. Make it 4.7K.

Your IRF 540 must be IRL540 if you're driving them from a 5V source.

Steve
Monoclecat (author)  steveastrouk4 years ago
Wait, you find the 22k is too small and recommend a smaller 4.7k resistor?
Is that a typo or am I not getting it?
Its too little current into the base, so its too small. Use a 4k7.

Steve
Monoclecat (author)  steveastrouk4 years ago
Oh ok thanks.