CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-16-2007, 04:21 PM
 
Join Date: Apr 2007
Location: US
Posts: 17
legomanww is on a distinguished road
H-bridge problems

I'm trying to use this H-bridge to drive a tiny motor.
The B2 B3 and PWM B are 5V logic signals from a microcontroller.

When I have V+ connected to 5V it seems to work fine, but when I connect it to something higher, the output voltage is severely reduced, and the N-channel mosfets get pretty warm.
If I don't connect the left side and right side, and just have the motor on one of the halves, it seems to work fine. When I connect the second half, (even if it is off) it starts to behave weird. If I have one of the half's V+ set to 10V, and the other to 5V it works fine. When I connect them both to the same 10V it starts to have problems.
I measured the current going into the P-channel mosfet on the side that isn't activated and when it is connected to 5V there is nothing special.
When it is connected to 10V current flows continuously.

Any ideas on how to fix it?

Thanks
Attached Thumbnails
Click image for larger version

Name:	robot2.jpg‎
Views:	133
Size:	36.8 KB
ID:	46864  
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 11-16-2007, 07:06 PM
 
Join Date: Mar 2005
Location: usa
Posts: 509
smarbaga is on a distinguished road

hello, maybe your on,off transistors are not completely turning on/off before they are told to.
therefore they are shorting the supply and drawing excesive current.
just a maybe.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 11-16-2007, 07:30 PM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

Investigate the phenomenon called "shoot thru".

You can't drive the gates (commonly) the way you are and prevent "shoot thru".

YOu have to make sure the gate you turn ON is coming on when the gate going the "opposite" way is going OFF - else "Shoot thru".

Try using dedicated fet drivers in place of your discretes - they are designed to prevent shoot thru when properly integrated
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 11-16-2007, 08:14 PM
 
Join Date: Apr 2007
Location: US
Posts: 17
legomanww is on a distinguished road

When I've been testing it, one side has always been off. So I was just dealing with one half of the bridge at a time to make it easier.
The PWM signal is pretty low frequency (around 50-200hz).

Wouldn't having one half of the bridge off prevent shoot through?
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 11-16-2007, 08:33 PM
 
Join Date: Apr 2007
Location: US
Posts: 17
legomanww is on a distinguished road

Maybe I didn't do a good job describing the problem before.
My concern is why it would work fine with 5V for a long time without any noticable heating, but once I use something higher, like 10V, it starts to heat up and pull lots of current?
It does it with a resistive load as well as with a motor, no difference.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-17-2007, 04:06 AM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

The RATE at which you enhance/drive the gate of the fet determines how fast the fet turns on/off.

In your case, you are relying on the individual response of the verious transistors to determine the rise/fall rate of gate charge. If one set of transistors allows the gate to enhance or collapse slower or faster, the potential for shoot thru occurs. This rate of decay/enhancement varies with gate voltage applied as well as current flow thru transistor.

When you use upstream logic to drive the H bridge - IE: proper drive sequence staging via true flip/flop logic as opposed to cascading transistors as you did - you prevent shoot thru by NOT allowing the semi enhanced/collapsed condition of the fets to occur,

Another possibility is simple oscillation. Strange things affecte board capacitance and other drive issues. This can be a problem to gate charge sensitive fets thus they can start to spontaneously oscillate. Again, fet drivers and sometimes the addition of "pull downs" on the gates can prevent this.

Finally, It is always better to use a hard/fast DRIVER to drive a fet than to use a resistive pull up to drive them - especially if you expect any speed. You don't want the resultant RC constant of the gate/pull up to start to cause the fets to oscillate.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 11-17-2007, 09:47 AM
 
Join Date: Apr 2007
Location: US
Posts: 17
legomanww is on a distinguished road

If I hooked the control inputs up so that there was no switching going on, after the initial turn on, would that remove any problems associated with the switching times?
I'm never going to be switching it very fast, the PWM will always be slow and the overall direction controls will also change probably once every few seconds.
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 11-17-2007, 12:51 PM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

If you simply drive the totem pole with a Flip flop set up to "toggle", you can do the same thing with a logic IC instead of with slow or uncontrolled enhancing rate transistors.

You can also do the same thing with an appriate fet driver as they make dual channel ones with "flip flop" capabilities so as NOT to have shoot rhru.

Fix the circuit design problem - not the symptoms.

Finally, even though 5v TTL IC's can drive fets, they DON'T do so well - not enough current to "hit the gates" to turn them on fast and hard.

GET A FET DRIVER!!!!!!!!!!!!!!!!
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 11-17-2007, 01:44 PM
guru_florida's Avatar  
Join Date: Nov 2007
Location: United States
Age: 36
Posts: 256
guru_florida is on a distinguished road

Take a look at open servo. http://www.openservo.com/

They use the high side gates to drive the low side, it has a simple h bridge that has worked for many people.

colin
Tweet this Post!Share on Facebook
Reply With Quote

  #10  
Old 11-17-2007, 03:01 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,669
Mariss Freimanis is on a distinguished road

Your circuit has problems above +5VDC as drawn. The PNP 3906 turns your n-channel MOSFET on. Everything works OK until you go above +5.6VDC, then it all falls apart. Here's why:

The emitter of the PNP goes to +supply. The output of your 74LS00 cannot be pulled above +5VDC. The base of the PNP cannot be pulled lower than one diode drop below your supply voltage. At 10VDC, the base is at 9.4V, the 74LS00 output is at 5V, current flows through your 100K resistor (44uA) and you cannot turn off the n-channel MOSFET. The p-channel MOSFET turns on and crowbars your supply. This is not a good thing.

Please see the attached gif. I redrew your circuit so that it will work from 5V to 24V. Above 24V you may rupture the p-channel MOSFET gate to source oxide. The PNP now turns the p-channel MOSFET off instead of on. The PNP base is driven by the NPN collector which acts a voltage level shifter. The MOSFET action will be 'fast off, slow on' which should prevent shoot-thru drain currents. This is not a high-speed circuit (about 1kHz max). High-speed circuits become more complex.

Mariss
Attached Thumbnails
Click image for larger version

Name:	MOSFET BRIDGE.gif‎
Views:	115
Size:	22.8 KB
ID:	46903  
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-17-2007, 03:57 PM
 
Join Date: Apr 2007
Location: US
Posts: 17
legomanww is on a distinguished road

Mariss, Thanks for the explanation.

Since I won't be able to get more 2.2k resistors until monday, can I make the circuit using 10k resistors and still have it work?
Tweet this Post!Share on Facebook
Reply With Quote

  #12  
Old 11-17-2007, 04:08 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,669
Mariss Freimanis is on a distinguished road

You can try it with 10K resistors and it will work. You should replace them with 2.2K resistors when you can. The switching speed of this circuit, already miserably slow at 5uS, will be 5 times slower yet with 10K resistors.

Mariss
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
H-Bridge for comment epineh General Electronics Discussion 107 08-21-2008 10:33 PM
another H bridge? integerspin General Electronics Discussion 0 09-30-2007 01:53 AM
DIY H-bridge medved General Electronics Discussion 13 03-22-2007 07:40 PM
Help with H-Bridge problem JRoque General Electronics Discussion 5 10-03-2005 11:06 PM
My new bridge duluthboat DIY-CNC Router Table Machines 15 07-19-2004 12:58 PM




All times are GMT -5. The time now is 07:47 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353