|
|
|
|
|
|
United States, NJ, Edison
Joined Mar 2008
34 Posts
|
H-bridge motor controller
I am trying to make a simple H-bridge controller for a brushed DC motor and I'm not having a lot of luck getting it to work.
I am using N-Channel Mosfets (IRF540S). Datasheet Here I am driving them (or trying to) with MCP-14700's. Which are high/low side combination drivers with built in bootstrap for the high side. Datasheet Here My PWM is supplied with a PIC18F. The entire contraption can be see here. And my schematic is here. The problem: When I view the waveform going INTO the MCP-14700, everything appears to be correct. I get a nice square wave on Q1 and Q4, and a flat nothing on Q2 and Q3 (for going forward). (Waveforms I've tried are anything from 500hz to 10khz with 50% DC) However, the output pins of the MCP-14700's behave in odd ways. (Probe reading across Vgate-source). Typically the low side FET will show the correct waveform. The complimentary high-side FET will show a bastardized waveform, but that is still similar enough. The two FETS that should be *completely turned off* show all kinds of bizarre spikes and waves, of up to 5V. Enough that they are also trying to conduct (obviously very bad). Eventually the MCP drivers go into thermal shutdown (handy feature, that). A variety of things I've tried: Replaced motor load with a simple resistive load. No change. Add explicit 10k pulldown resistors to the inputs of the MCP-14700. This had some marginal improvement, even though the datasheet shows the MCP as having internal pulldowns. I have metered for shorts and such for a good while and it appears to be put together alright. I've ordered parts to make another, though, just to be sure. My question: am I misunderstanding how the MCP-14700 is supposed to work? Should a single chip control opposite corners of the bridge, instead of one side like I've shown it? Can the high-side bootstrap function without the low-side switching? Intuitively there must be a maximum duty cycle of the high side, or else the bootstrap cannot recharge, but I don't see it in the datasheet. Is there an obvious blunder on the schematic? I think this particular example is beyond debugging with my 1 channel of scope, so I'd just like to not repeat mistakes when I make attempt number two... Thanks. |
|
|
|
|
|
|
||
|
United States, NJ, Edison
Joined Mar 2008
34 Posts
|
Quote:
And all the outputs would work correctly in turn. The moment I open two corners of the bridge to conduct, it all goes haywire. Appreciate the help so far. Is there a popular high-side driver for this time of application? Or is there nothing inherently wrong with my selection of MCP-14700? |
|
|
||
|
|
|
|
Ohio
Joined Nov 2003
1,645 Posts
|
The high side chip may need a path to ground to work properly, if broken, the whole
thing crashes. You can try these: http://www.irf.com/product-info/cic/...driverics.html I have a bunch of TC4420 and TC4804CPA, but I don't think are for high side. Digikey and Mouser have P ch fets you can use for high side, or must you go thru the complex way? That is for companies making zillions of units, so they get the cost benefit of buying a million N ch fets. Also, P ch cost more, and can be hard to get because laptops, Iphones, etc drain the supply (pun!). |
|
|
|
|
|||
|
United States, NJ, Edison
Joined Mar 2008
34 Posts
|
Quote:
Quote:
Appreciate the feedback. Just wanted to know that I don't have something obviously wrong and that it's probably something more obscure that is causing my grief. Definitely on to P-channels if the second go-around fails. |
||
|
|||
|
|
|
|
Ohio
Joined Nov 2003
1,645 Posts
|
The chip you are using should work, but would be nice if they had an app diagram
for the full bridge, all the waveforms, etc. Layout really can be critical, weird parasitics can wreak havoc. Forget about the white breadboards for HF work. You may even have ground loop problems. Learn about "loop area" and transmission line techniques. A line pair carrying HF, with sharp edges, power or signal, if..... they are separated, NOT run parallel, or twisted pair, or coax, or ground plane protected, CAN become a loop antenna, and send or receive EMI. Know the "source, path, receptor" model for interference. You can get output circuits talking to the input circuits through drain to gate capacitance, or transformer leakage capacitance. Layout is everything. |
|
|
|
|
|
|
Joined Jun 2011
167 Posts
|
Hi,
I think you're on the right track but I don't think you can statically switch through the various states of the 4 FETs because your gate drive to the two upper FETs is AC bootstrapped and relies on continuous switching of the output drive. Without this the top FETs will briefly turn on then start to fall back to the lower voltage of the driver chip itself. Normally the diagonally opposite pairs of FETs will conduct to give one direction and the other pair for the reverse direction. Upper FETs can be PWMed while the corresponding lower devices can be held on. I think you need to maintain switching to preserve your upper FET gate drive so I guess 100% duty cycle is out. Cheers, David |
|
|
|
|
|
|
Aberdeen, Scotland, UK
Joined Dec 2007
601 Posts
|
Here's a design of mine........it's 2ch but you'll get the jist. Also, it's a lot higher power than you'll need probably so choose your FET's accordingly if you decide to use it. I use it to drive a couple of wheelchair motors.
There's a bit of logic up front so that all you need is a single PWM input and a simple direction input. This also helps protect the circuit from turning on hi & lo on the same side accidentally. The resistors on the gate of the FETs are very important:- The 2K2ohm resistors protect the 4431/4432 drivers from over-current and also help protect Vgs. The 50N06 & 47P06 Mosfets in my circuit have a max. Vgs of +/-25vdc and the 15K/2k2 resistors will give approx 21vdc Vgs. So, if you happen to choose Mosfets with a max. Vgs of 20vdc for example then you can drop the value of the 15k resistors to 8k2 which will give you approx. 19vdc approx for a 24vdc supply. The 15k resistors also protect the gate from floating in the event of a 4431/4432 driver failure (open circuit). I use an Arduino to provide the PWM and direction control signals. http://www.ianjohnston.com/content/i...ge/PCB/Mcb.pdf Ian. |
|
|
|
|
|
|
|
FET bridge drive circuits can be trickier than you think.
As already mentioned most high side drivers require the output to be continually switching in order to pump up the high side PSU. You need the right combination of gate source impedance. Too low and it tends to ring causing high FET dissipation, too high and it can't charge the gate capacitance quickly enough causing high dissipation. Also if say the top right FET switches on very fast, the Miller capacitance of the lower right will try to turn it on too, causing ... high dissipation! Usually the drive circuitry has a small amount of cross conduction delay to make sure devices are off before swapping diagonal paths. If you're monitoring the output signal without resistive load the two lines go all over the place. I usually place temporary resistors from each side to gnd to clean things up while testing. Not sure on your load but you show no anti-parallel snubber diodes. Low power bridges may get away without, but for higher power the intrinsic diodes in the FETs aren't very good. Steve |
|
|
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Discussion How to implement PWM for H bridge? | UncleJoe | DIY Electronics | 1 | Jan 31, 2012 11:21 AM |
| Wanted OS 50 SX-H Carb # 40E Mixture Control Valve | sgilkey | Aircraft - Fuel - Engines and Accessories (FS/W) | 0 | Jan 13, 2012 10:10 AM |
| Cool View the bridge of chongqing chaotianmen bridge,across the bridge | leemiller | Video Piloting (FPV/RPV) | 2 | Dec 12, 2011 05:38 AM |
| Sold REDUCED! W/FREE S&H! Phoenix 10 amp ESC $35 sensorless brushless motor speed control | Trader Hill | Aircraft - Electric - Power Systems (FS/W) | 6 | Apr 13, 2007 08:38 PM |
| For Sale REDUCED! W/FREE S&H! Phoenix 10 amp ESC $35 sensorless brushless motor speed control | Trader Hill | Aircraft - Electric - Power Systems (FS/W) | 6 | Apr 01, 2007 10:48 PM |