Author Topic: PWM motor controller for large motor, with low amps.  (Read 14638 times)

0 Members and 1 Guest are viewing this topic.

Offline PorchTopic starter

  • Contributor
  • Posts: 37
PWM motor controller for large motor, with low amps.
« on: December 23, 2014, 06:54:34 am »
Hello to the forum. Long time reader, first poster.

I am having a few problems making a motor controller and I am hoping someone can point me in the right direction. My electronics skills are limited to making simple circuits. Lucky with the popularity of hobby micro controllers, the hardware can stay simple and the programming can be complex. I am much better with the software side.

Quick overview. I have a water well that uses a jack "oil well style" pump. This pump has evolved and changed over 10+ years. It's currently solar powered at 24V and uses a way over sized golf cart motor. It's a DC series motor, I think it's rated 10hp peak. It's far too powerful and fast for this well. So I PWM it down to a slow speed.

I used a CanaKit UK1133 to control speed. With the CanaKit, the motor pulled about 18Amps at 24V.  But they would only last a few months. The on-board diode across the load (flyback diode?) would get very hot. It would burn out and and everything would stop working. After a few burned out CanaKits, I connected some 10A10 rectifier diodes right at the motor(had them in my parts box). Problem solved. everything was nice and cool. For about 8 months. Then it failed again staying closed and running the motor at full speed. Not good.

Along with other problems, it was time to rip out the entire control system and move on to the next version. Arduino this time.
I wanted the Arduino to control the speed directly so I can very the speed of the motor based on battery voltage.
I copied this circuit.
http://bildr.org/2012/03/rfp30n06le-arduino/
I used the RFP30N06LE MOSFET. I used this FET in a bunch of other circuits and love it, but not on a motor this big. It's rated up to 30A and I am running maybe 20A in it peak, so it should work.
I desoldered everything from a busted CanaKit and reused the circuit board and heatsink.

I started and stop it a few times with a slow ramp up as I worked on my code. It worked perfect. Then the motor went to full speed. The FET is shorted full on.
It was not hot, and no magic smoke went out.

I am assuming that I need some additional protection to protect the FET from EMT. I currently have 2 10A10 diodes at the motor, and a 6A8 diode near the FET. I am not sure what else I need for a motor this large. All examples I can find on-line deal with smaller motors. 

Any suggestions?
Thanks for any help.
 

 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 17816
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: PWM motor controller for large motor, with low amps.
« Reply #1 on: December 23, 2014, 08:03:40 am »
20-30A on a PCB, I hope it was designed appropriately.

You need to make sure you have back emf diodes that will cope. The mosfet needs to be over rated, remember that the amps specified are with the die in the mosfet at 25C or whatever other temperature stated. Make sure your heat sinked and try and work the thermals back. I think you need a higher rated mosfet, you can put then in parallel.

Make sure the gate is driven hard enough, just sending PWM from a uC to the gate will not work for large loads as the gate has a capacitance that needs charging and discharging so you need a mosfet driver chip to do this as if there is not enough current capability the mosfet will switch too slowlyand the slow change in channel resistance will give time for heating to occur..
 

Offline Seekonk

  • Super Contributor
  • ***
  • Posts: 1938
  • Country: us
Re: PWM motor controller for large motor, with low amps.
« Reply #2 on: December 23, 2014, 11:03:47 am »
That FET was guaranteed to fail. 30A FET on a 20A load sounds logical, but it isn't.   Until the motor comes up to speed it looks like a dead short.  FET needs to be rated for locked rotor current.  I would use three FET's  in parallel rated for at least 150A total.  Of course I get most of my power FET from old UPS and they come assembled that way.  UNO PWM is only 490hz so you can get away with a lot.  I use very slow drivers like an opto isolator into a resistor to do level shifting ans that also allows me to have the UNO 30 feet away from the drive.  Relatively speaking it is a slow turn off with less spike noise.  I do prevent in software the PWM going above 95% and below 5%.  The FET's run cool as can be and don't really need a heatsink.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: PWM motor controller for large motor, with low amps.
« Reply #3 on: December 23, 2014, 12:31:38 pm »
those 10A10 and 6A8 diodes are kind of useless as flyback diodes because those are dead slow - good enough to rectify 50/60Hz but not good for anything faster... you need fast diodes to provide the needed protection to the mosfet. another point is the rating of the mosfet - as it was suggested above - your mosfet must be able to drive a dead-short - it might be in the range of 100s of AMPs peak (while the rotor is not turning yet).
if you're runnign arduino PWM @ 490HZ the cycle is approx 2ms , at 5% duty during startup , the pulse is 0,1 ms - so find a mosfet rated for e.g. 300-400Amp pulsed @ 0.1ms pulse width  - most probably you'll have to parallel two or more of them to get there.
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 17816
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: PWM motor controller for large motor, with low amps.
« Reply #4 on: December 23, 2014, 03:27:20 pm »
To know the motor startup current measure the resistance of the motor and divide the supply voltage by it.
 

Offline PorchTopic starter

  • Contributor
  • Posts: 37
Re: PWM motor controller for large motor, with low amps.
« Reply #5 on: December 27, 2014, 04:09:18 am »
Thanks for all the help. I understand what is going on now. Picking out parts, is another story.

What fast acting diode would be recommended for a load like this?
Since the 10A10 helped, I am assuming leaving them in will not hurt anything.

The FETs I am looking at using is the IRF404. The same one in the CanaKit. It's rated at 202A. It tends to last months, so I figure it's a good part, I just need more of them.
http://www.irf.com/product-info/datasheets/data/irf1404.pdf

Looking at how the CanaKit is wired, the only thing "driving" the gate of the FET is a LM78L05. So it looks like the IRF404 is logic level, no driver needed.
Good idea taking a heat sink from the UPS. I found one that has a place for 5 TO-220.  So 5 IRF1404 in parallel with some quicker flyback diodes should do it, correct?

Thanks for the help.

 
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 17816
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: PWM motor controller for large motor, with low amps.
« Reply #6 on: December 27, 2014, 09:55:44 am »


Looking at how the CanaKit is wired, the only thing "driving" the gate of the FET is a LM78L05. So it looks like the IRF404 is logic level, no driver needed.


What? Can you clarify that, are you saying that the effect is directly driven by the regulator or that the whole drive circuit is working at 5 V. Whether or not the MOSFET is a logic level I makes no difference to the problem you will have with overheating. If you want to drive a powerful inductive load at frequency you must switch that MOSFET on and off as fast as possible. Now you need to understand about RC circuits, your MOSFET gate is a capacitor, the larger the MOSFET or the more MOSFETs you put in parallel the larger that capacitor is. Your drive circuit is a series resistor, the resistor is a problem because it slows down but charging time of the capacitor in the gate, so that resistor needs to be as small as possible be it wiring or internal resistance of drive semiconductors. Your MOSFET will fully turn on at a certain gate voltage, you can supply that voltage exactly or a slightly higher voltage and it will take anything from the time constant of the RC circuit to 5 times the time constant of the RC circuit to get the voltage on the gate to a value which will fully turn on the MOSFET. If you take the same values of resistance and capacitance and you supply in a higher voltage you will achieve the same threshold voltage much quicker? That is why even if it's logic level and will switch at two or 3 V you should still drive it at 10 to 15 V as this will cut the switch in time to half or less without any more clever circuitry.

What is actually driving the MOSFET gate? If it's a simple logic gate it's no good and certain cause of your problems.
 

Offline PorchTopic starter

  • Contributor
  • Posts: 37
Re: PWM motor controller for large motor, with low amps.
« Reply #7 on: December 27, 2014, 09:48:18 pm »
Thanks to 3roomlab. That is the information I am looking for. I am learning so much. 
The IRF1404 list 75 amps max due to the TO-220 case. It surprises me that a TO-220 can handle that amount of current over the little pins.
Regardless, the IRF1404 used in the CanaKit is handling about 18 amps average and with it's heat sink and little fan, it only gets warm. It's that startup current that is the problem, but adding 3+ IRF1404 to the system should help solve the problem.

Simon:
The CanaKit has a little micro-controller. One of it's I/O pins drive the LM78L05, and the LM goes to the gate of the IRF1404. The entire CanaKit can handle 24+V (with the exception of the fan), so I am assuming someone figured the IRF1404 could only take 5V or they did not want the frequency to change one little bit if the input voltage changed.

My knowledge of FETs just came into existence over the past year, so it was my understanding that most FETs required a higher gate voltage then the circuit voltage or they won't open fully, needing the the use of a driver circuit. But the IRF1404 and others don't seem to have one, and from what I am reading, it's built in to some models. But I might be incorrect.

The sheet of the IRF1404 list a 2.5ohm resistor on the gate lead. I need to look over the CanaKit and and see what values they use. Since I will be driving it from 5V like the CanaKit is, the value the kit uses might be better.

Thanks for the help. The hard part is now trying to figure out how to mount it all.



 
 

Offline PorchTopic starter

  • Contributor
  • Posts: 37
Re: PWM motor controller for large motor, with low amps.
« Reply #8 on: December 27, 2014, 10:43:46 pm »
Instead of the BYW51-200
http://www.mouser.com/ds/2/308/BYW51-200-D-106001.pdf

Can I use the MUR1620CTR
http://www.mouser.com/ds/2/308/MUR1620CTR-D-79742.pdf

It's common anode. So I can mount it to the same heat sink at the FET and electrically connect the anode to the drain that way.
The MUR1620 has an 85ns recovery time, and the BYS51-200 is 35ns. I am not sure if the slower time will have any affect in my application. 

Since it's been 10 years since I etched my own circuit board, I am trying to avoid that trial and error and just dead bug this system, 1950's tube tv style.   
 

Offline Leadfootin

  • Contributor
  • Posts: 30
Re: PWM motor controller for large motor, with low amps.
« Reply #9 on: December 27, 2014, 11:33:42 pm »
PWM motor drives will almost always bite you. As advised, switching device needs to be 5-10 X motor current and at least 2-3 X the voltage. The back EMF diode must be at least the full load motor amps and 2 X the voltage applied to the motor. Preferable to use a fast Schottky for the diode which will also protect the mosfets from excessively high voltage spikes. If one fails the other will immediately follow. A small inductor between the mosfets and the load or an R-C snubber from drain to source will help. Others have discussed the criticality of mosfet switching. Often using a 555 timer, changing from TTL to CMOS versions will cause issues, gate burn thru being one I have experienced first hand. Gate capacitance limits switching speed.
 

Offline PorchTopic starter

  • Contributor
  • Posts: 37
Re: PWM motor controller for large motor, with low amps.
« Reply #10 on: January 02, 2015, 04:16:42 am »
Thanks for the help. I ordered some parts. I will post back when I build it.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19525
  • Country: gb
  • 0999
Re: PWM motor controller for large motor, with low amps.
« Reply #11 on: January 02, 2015, 10:09:48 am »
What? Can you clarify that, are you saying that the effect is directly driven by the regulator or that the whole drive circuit is working at 5 V. Whether or not the MOSFET is a logic level I makes no difference to the problem you will have with overheating. If you want to drive a powerful inductive load at frequency you must switch that MOSFET on and off as fast as possible. Now you need to understand about RC circuits, your MOSFET gate is a capacitor, the larger the MOSFET or the more MOSFETs you put in parallel the larger that capacitor is. Your drive circuit is a series resistor, the resistor is a problem because it slows down but charging time of the capacitor in the gate, so that resistor needs to be as small as possible be it wiring or internal resistance of drive semiconductors. Your MOSFET will fully turn on at a certain gate voltage, you can supply that voltage exactly or a slightly higher voltage and it will take anything from the time constant of the RC circuit to 5 times the time constant of the RC circuit to get the voltage on the gate to a value which will fully turn on the MOSFET. If you take the same values of resistance and capacitance and you supply in a higher voltage you will achieve the same threshold voltage much quicker? That is why even if it's logic level and will switch at two or 3 V you should still drive it at 10 to 15 V as this will cut the switch in time to half or less without any more clever circuitry.

What is actually driving the MOSFET gate? If it's a simple logic gate it's no good and certain cause of your problems.
You're right about the resistance of the driver and capacitance of the MOSFET gate but using a higher voltage to drive the MOSFET won't necessarily speed it up. A higher voltage will improve is the on time but it will also lower the off time as it takes longer to discharge the gate.


Thanks to 3roomlab. That is the information I am looking for. I am learning so much. 
The IRF1404 list 75 amps max due to the TO-220 case. It surprises me that a TO-220 can handle that amount of current over the little pins.
Regardless, the IRF1404 used in the CanaKit is handling about 18 amps average and with it's heat sink and little fan, it only gets warm. It's that startup current that is the problem, but adding 3+ IRF1404 to the system should help solve the problem.

Simon:
The CanaKit has a little micro-controller. One of it's I/O pins drive the LM78L05, and the LM goes to the gate of the IRF1404. The entire CanaKit can handle 24+V (with the exception of the fan), so I am assuming someone figured the IRF1404 could only take 5V or they did not want the frequency to change one little bit if the input voltage changed.
That's no good because it won't turn off the MOSFET quickly enough. You need a proper gate driver.
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 17816
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: PWM motor controller for large motor, with low amps.
« Reply #12 on: January 02, 2015, 10:33:00 am »
True but maybe you can get a faster turn off than turn on as all you need to do is short the gate with a N channel mosfet or NPN transistor which usually work faster and with less resistance than a high side driver. From what has been said it sounds like the gate is driven by a voltage regulator that is powered by a uC pin.
 

Offline poorchava

  • Super Contributor
  • ***
  • Posts: 1672
  • Country: pl
  • Troll Cave Electronics!
Re: PWM motor controller for large motor, with low amps.
« Reply #13 on: January 02, 2015, 03:20:02 pm »
MOSFET current ratings are very misleading for inexperienced users. The way how manufacturers specify it is following:

-Measure Rds(on) at
-Measure Rthja of the package. They usually use huge watercooled copper blocks for that to simulate perfect heatsink.
-Based on the Rthja measured and Rds figure out maximum current that can be passed without exceeding maximum junction temperature.

This means two things: you'll need an enormous and in most cases impractical heatsink and your MOSFET will run very hot which is never a good thing. As someone suggested before - I'd use 3 or even more 100A+ rated mosfets in large package (TO-247 or something) bolted to a hefty heatsink.
I love the smell of FR4 in the morning!
 

Offline PorchTopic starter

  • Contributor
  • Posts: 37
Re: PWM motor controller for large motor, with low amps.
« Reply #14 on: January 12, 2015, 06:28:47 am »


5 FETs on the left for power, 3 diodes on the right for filtering. They share a common drain with the heatsink.
I call this the Vegas show girl mounting with the legs of the TO220 splayed out.  ;D

Positive is the bolt on the right. Source is the large bolt on the left. Drain is the heatsink. Small screw is the gate.
Heat sink came from a old UPS and the board it's mounted to is a plastic cutting board. 
A few 63V 100uf caps for extra filtering.

It works, to a point. The caps get really hot only after about 30 seconds of use. I am going to upgrade them to 200V with 1.73A ripple and hope that solves it.
 

Offline johansen

  • Frequent Contributor
  • **
  • Posts: 995
Re: PWM motor controller for large motor, with low amps.
« Reply #15 on: January 12, 2015, 07:45:05 am »
the capacitors need to be able to handle the same ripple current, as there are amps flowing though the motor.
the circuit should look something like this.
http://johansense.com/bulk/pwm_resistor_2.png

it sure looks like you have those caps soldered directly across the diode.
 

Offline PorchTopic starter

  • Contributor
  • Posts: 37
Re: PWM motor controller for large motor, with low amps.
« Reply #16 on: January 12, 2015, 08:24:02 pm »
Considering the peak amps of this motor is around 200 amps, that would be a lot of caps.

Yes, I have the caps across the motor and the diode, all in parallel.  I am trying to protect the mosfets from the motor. The rest of the circuit is driven off it's own power supply. So it can make the source/battery lines as noisy as it wants and will not affect anything.

Or am I thinking wrong?

 

Offline Seekonk

  • Super Contributor
  • ***
  • Posts: 1938
  • Country: us
Re: PWM motor controller for large motor, with low amps.
« Reply #17 on: January 13, 2015, 03:24:37 pm »
Just why do you want to put capacitors on the motor.  That is the last thing I would want to do.  Incidently, I quickly wired up a simple half wave power supply yesterday.  Managed to place the diode backwards.  I hadn't blown up a cap in 25 years, it is an experience.  Why don't you post an actual schematic.
 

Offline PorchTopic starter

  • Contributor
  • Posts: 37
Re: PWM motor controller for large motor, with low amps.
« Reply #18 on: January 13, 2015, 04:14:37 pm »
3roomlab suggested that some caps will arrest the ripple from the motor, based on his simulation.

I will write up a schematic.
 

Offline johansen

  • Frequent Contributor
  • **
  • Posts: 995
Re: PWM motor controller for large motor, with low amps.
« Reply #19 on: January 13, 2015, 05:42:02 pm »
 :wtf:

who told you to put the caps across the motor.. lol.

nope, capacitors go across the battery.. and you need very low inductance between the capacitors, mosfet, and diode. you can put as much inductance in series with the motor as you like.

for 200 amps i would be looking at using 20 mosfets.. why? so you can get lower inductance connections to the fet. yes technically you can push 50 amps through each one, but you don't have a 4 layer pcb board to make that happen.
here's a way to do it if you don't like heatsinks: http://johansense.com/bulk/50_buck2.jpg
note that the capacitors are soldered to the edge of the board, and the fet's source lead drops through a hole in the board to reach the other side.
 

Offline Seekonk

  • Super Contributor
  • ***
  • Posts: 1938
  • Country: us
Re: PWM motor controller for large motor, with low amps.
« Reply #20 on: January 13, 2015, 06:06:25 pm »
"the motor pulled about 18Amps at 24V. "

If one is to believe these previous numbers, 10 would be sufficient overkill with a decent FET.  Then again this person is quoting 10HP at 200A (that would be over 300A @24V).  Pick any numbers you want. He also said he ran for several months with just one FET. 
« Last Edit: January 13, 2015, 11:37:14 pm by Seekonk »
 

Offline johansen

  • Frequent Contributor
  • **
  • Posts: 995
Re: PWM motor controller for large motor, with low amps.
« Reply #21 on: January 13, 2015, 06:37:50 pm »
18 amps is a somewhat believable no load draw for such a motor.
 

Offline PorchTopic starter

  • Contributor
  • Posts: 37
Re: PWM motor controller for large motor, with low amps.
« Reply #22 on: January 14, 2015, 07:46:37 am »
It's a rather large DC Series (Series wound) motor that came out of a golf cart. The number plate is just about gone, but I think it said 10HP peak at 48V. It's very overkill, but the other option is getting a 1800RPM motor and waste the energy running it though several gear boxes to get it down to the 1RPM needed for the well. And I had the motor.   ;D

So it's running almost no load at 18amps.

If I am not worried about filtering the power, and I am not since it's going to a set of golf cart batteries at 24V, then what are the purpose of the caps on the battery side? Thanks for answering my questions. Just trying to lean.



 

Offline johansen

  • Frequent Contributor
  • **
  • Posts: 995
Re: PWM motor controller for large motor, with low amps.
« Reply #23 on: January 14, 2015, 01:19:15 pm »
you have to have the capacitors located very close to the mosfet and diode (the three components form a loop)

the reason why is because when you turn the mosfet off, there is energy stored in the parasitic inductance, it is proportional to current squared. (yes, the battery has quite a bit of inductance too)

That inductance dumps its energy into the mosfet when the fet turns off, when the voltage across the mosfet exceeds the battery voltage, limited only by the mosfet avalanche breakdown, which is usually 5% more than the maximum rated volts.

you can put an RC snubber across the mosfet as well, but the inductance of the snubber has to be low enough to provide a reasonable path, and the capacitors also have to deal with high peak currents (about the same as what is flowing through the motor, but only for a short instant) -and it wastes power and you have to buy low inductance resistors. (wirewound won't work) --as well as you need an oscope to figure out what is going on.

its cheaper and easier just to use a bunch of capacitors and a low inductance dc bus, rather than trying to get snubbers to work.

another option is to install TVS diodes or MOVs across the fet.. but that will also require a bit of engineering to figure out if they will handle the current.


i would go with a gear box regardless of the wasted power.. you'll be burning up a lot of heat in the copper trying to run a motor at 1 rpm
« Last Edit: January 14, 2015, 01:24:36 pm by johansen »
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4078
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: PWM motor controller for large motor, with low amps.
« Reply #24 on: January 15, 2015, 06:47:37 pm »
You can buy the best fets in the world, or put as many together as you want. If you do not drive them fast enough, your fets will die due to thermal hotspots.
If a mosfet is turned on, the only loss is it's resistance. Which should be in the milli-ohms. However, it takes time to enable the fet. During this time "ginormous" amounts of energy will be generated inside tiny places on the mosfet silicon because it does not work theoretically perfect. Your heatsink is useless against this effect. You can only choose fets with lower gate capacity and get better drivers. Your atmega is not a capable driver. If you do the design properly you might even run it with only a tiny heatsink, the metal case for example.
(You're putting it inside a metal case right?)

The characterization people do use some fancy "thermostreamer" cars. Those are huge phase change coolers, not water as suggested above. Capable of cooling it sub zero, very fast. Or making it hot, very fast. Something like -55? to +125?C in less than 10 seconds.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf