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! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-01-2008, 03:15 PM
 
Join Date: May 2008
Location: USA
Posts: 12
dakimber is on a distinguished road
H-Bridge Design

I'm restoring a 1986 model Jetmatic mill and using EMC2 to control it. I've installed and configured EMC2 using the Pluto-P as the interface. So far I've been able to accurately read the encoders to track position, but I'm having trouble with the H-bridge design. The servos on this machine are 100 volts and 9.5 amps, although the mill supply only outputs 90 volts. Still, the H-bridge needs to be pretty stout.

My first design used MTY55N20E MOSFETS (from Motorola originally, now from ON semi) that I had left from a previous project a long time ago. These are 55 amp 200 volt MOSFETs. I used a pair of LH1262 parts to drive the gates. The LH1262 uses an led to shine on an led stack to create the gate voltage. I liked this design because of the isolation between the control and the power circuits, but the LH1262 is pretty slow, leaving the MOSFET in the linear region too long, and the MOSFETs get very hot very fast (a few seconds is all I dared run them). I was able to get the X-axis going by reducing the voltage to 12 volts, but it is very slow!

So I redesigned the circuit using the IRS2304 from International Rectifier. I followed the example in the IR appnote, replacing the IR2110 with the IRS2304. This design proved disastrous! It blew the lid off the IRS2304 and destroyed my power supply. I haven't determined if the MOSFETS survived yet. Further investigation shows the two high-side MOSFETS are both being driven simultaneously - one with about 8V and the other with about 4V. This only happens if the servo supply voltage is on. If the servo supply is off, only one MOSFET gate is driven, and it is driven with a full 12V. Removing the servo motor from the circuit makes no difference.

Does anyone with experience building H-bridges have some ideas? I suspect I've overlooked something obvious, but I'm not sure what...

Here are links to the relevant data sheets:

MTY55N20E: http://www.onsemi.com/pub/Collateral/MTY55N20E-D.PDF
LH1262: http://www.vishay.com/doc?83802
IRS2304: http://www.irf.com/product-info/data...rs2304spbf.pdf
IR App note: http://www.irf.com/technical-info/appnotes/an-978.pdf

Thanks!

Doug
Reply With Quote

  #2   Ban this user!
Old 10-02-2008, 07:54 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

I have played around a little bit. I have had good luck with the ir2111. I made a h-bridge without current limit to play with.. It seemed to work great.

http://www.electronicsam.com/images/...rt/ampmess.JPG
http://www.electronicsam.com/images/...art/almost.JPG
http://www.electronicsam.com/images/...vostart/schem/
you can read a bit about it here
http://www.cnczone.com/forums/showth...=large+brushed

I ran this at around 60v 10a for testing - mosfets never got warm to the touch attached to the heatsink. The mosfets are 44a 600v iirc but the Rds and thermal transfer of the silicon would only allow a max of 20a.

the next version is only on paper at the moment - I have done some limited logic testing but have not had time to mill a board. (it also has a drive enable)

http://www.electronicsam.com/images/...boardagain.png
http://www.electronicsam.com/images/...schemagain.png

same basic design but with current limit. so I am using ir2184 as they had an disable pin unlike the ir2111.

sam
Reply With Quote

  #3   Ban this user!
Old 10-02-2008, 11:21 AM
 
Join Date: May 2008
Location: USA
Posts: 12
dakimber is on a distinguished road
H-bridge Driver Options

Sam-

Thanks for the reply! Your original thread:
http://www.cnczone.com/forums/showth...=large+brushed

is part of what inspired me to try this. Like you, I discovered the parport wasn't fast enough to catch all the encoder pulses, so I got a Pluto-P. (Too bad - the dual parallel port card worked well and had just enough I/O for what I wanted to do!).

I haven't had time to completely digest your new schematic, but I did notice you addressed the isolation issue with the TLP2530 photocouplers. I picked up some Sharp PC900v0nszxf optos, but they are 1 opto per 8-pin dip, so maybe I'll try to find some TLP2530's and save some space.

I see why you prefer the IR2184 over the IR2111 - the 2111 always had one half of the bridge being driven, while the 2184 lets you turn both off (via the /SD pin). I picked the IRS2304 for a similar reason - it has independent control of the upper and lower channels. But, it doesn't include a shutdown pin. My plan was to connect the HIN of one 2304 to the LIN of the other 2304, and vice versa. Then, driving one pair of pins is forward, the other reverse, and neither being driven leaves the motor off.

I'm starting to wonder now if my problem was a bad mosfet right from the start. I haven't been able to find a logic or wiring mistake, and don't see the reason both upper mosfets were being turned on. Since this happened with the motor disconnected, it wasn't related to the large inductance. Looking at other half-bridge drivers (e.g., from National), they all seem roughly similar. My plan is to rebuild with different parts and try again (without applying the 90V if I don't get good results!).

What do you use for schematic capture and board layout? I've been using the ExpressPCB stuff since it was free. I can order boards from them over the internet (I don't have a PCB router - that will be another project....) and the quality seems decent, but it still costs more than if I was able to make my own.

Doug
Reply With Quote

  #4   Ban this user!
Old 10-02-2008, 12:16 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

I use eagle. I am getting used to it finally. It seems a bit counter intuitive - but once you get used to it....

Yes - the ir2111 always has either the upper or lower fet on. This really isn't a problem or atleast it wasn't a problem for me. They call this 'slow decay' iirc. This is a picture of a so-so tuned pid loop. aprox .0005 max following error. (I am pretty new to tuning)

http://www.electronicsam.com/images/...art/ferror.png

I also have the pluto - I will use it for testing. I actually have a mesa 5i20 for the final solution.

I am hoping for around 150v 20a.

sam
Reply With Quote

  #5   Ban this user!
Old 10-02-2008, 07:18 PM
 
Join Date: May 2008
Location: USA
Posts: 12
dakimber is on a distinguished road
H-bridge seems to work now!

Maybe I'll have to spring for Eagle - it seems fairly popular. I used HiWire and OrCad eons ago, but last I checked OrCad was way beyond hobby prices.

Now I finally get it on the ir2111's. When the motor is not being driven both lower mosfets are on, providing braking. And that's why it's ok to always have one of the two mosfets on in each half-bridge.

When you tuned your system to the 0.0005 following error did you use the auto tune feature of at_pid? Or did you do it manually?

I'm thinking now my H-bridge problem was a bad bootstrap cap. One of the caps was 67 ohms (yes ohms) when I checked it. Anyway, I rebuilt with all good parts and it seems to work! I ran the X-axis back and forth a number of times using the full 90V and the Mosfets never got warm. I used a 555 timer circuit with adjustable pulse width and frequency, since I don't have isolation yet to keep my computer safe. That's the next step, after which comes the current limiting.

Doug
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-02-2008, 07:24 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

That is awesome! I think the at_pid works the best with velocity mode amps. It does get you close - but from my experience a bit squirley(sp). Pid tuning seems to be something that you just need to do. The more you play with it - the better you get. Don't forget ff1 and ff2. <- seems to do the best for current mode amps.

sam
Reply With Quote

  #7   Ban this user!
Old 10-15-2008, 06:16 PM
 
Join Date: May 2008
Location: USA
Posts: 12
dakimber is on a distinguished road
More on H-Bridges and Tuning....

Sam-

I'm just getting back to this - had boards made so I didn't have all that spaghetti wire...

In looking at your schematic I see you used a pair of caps (0.1uF and 10uF) in parallel for the bootstrap capacitance. How did you determine the values? When I followed the IR app notes I got values that were much less (granted, I'm using different MOSFETs and drivers). I used a 1.5 uF cap, but that was way more than I calculated was necessary. I don't see a downside to going larger (too small could pose problems), but I was curious.

Another schematic question - you used a cap across the series resistor on the opto (TLP2530) inputs. It seems this will slow the rise and fall times of the opto inputs, but why is that needed? Is it just to filter out noise? I used the TLP2531 in my design (Digi-Key didn't have the TLP2530's).

I'm starting to try and tune, and you mentioned using the feed-forward parameters (FF0, FF1, FF2). How do you select values for these? I didn't see anything other than the descriptions on the manual pages. The examples mostly have them set to 0, with an occasional FF1=1. The Wiki doesn't add much about them under tuning, and the manual doesn't say anything at all that I saw.

Thanks!

Doug
Reply With Quote

  #8   Ban this user!
Old 10-15-2008, 10:41 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

Some one I trust recomended the 10uf cap. The only issue brought up is that it might take more than 1 pwm cycle to charge totally. (I am not worried.)

As far as pid tuning. Good luck . It is really something you have to do to get used to. Here is a little help.
http://wiki.linuxcnc.org/cgi-bin/emc.../HAL_PID_Loops
http://www.linuxcnc.org/handbook/part2/pidtune.html
http://linuxcnc.org/docs/html/motion_pid_theory.html

I have been testing
http://www.electronicsam.com/images/...ostart/amp.JPG
Maybe in a few days I will know for sure.. Time will tell.

sam
Reply With Quote

  #9   Ban this user!
Old 10-16-2008, 03:49 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

http://www.electronicsam.com/images/...pmessagain.jpg

sam
Reply With Quote

  #10   Ban this user!
Old 10-16-2008, 09:36 PM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

Sam,

I have been trying to embed a YouTube video on a post in my CNCLathe conversion log and I can't get it to work. How do you do it?

Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-17-2008, 10:09 AM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

Sam,

Thanks for the help.

I watched your test video and it was really looking good. Does this version of your h-bridge have the current limiting on it?

Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

  #12   Ban this user!
Old 10-17-2008, 10:51 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

Yes - it is basically this circuit without R10.

http://www.electronicsam.com/images/...schemagain.png
Reply With Quote

Reply

Tags
driver, h-bridge, half-bridge, servo




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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check my *cough* logic - H-bridge design. samco General Electronics Discussion 47 04-17-2009 02:56 PM
mosfet h-bridge design visky General Electronics Discussion 6 06-11-2008 03:51 PM
Half bridge or Full bridge bunalmis General Electronics Discussion 3 04-13-2008 02:11 PM
Finding Engineering Design Software For Automatic Machine Design hellokitty General CAM Discussion 0 01-06-2008 12:39 AM
Fixed Bridge CNC Router design Helstrom DIY-CNC Router Table Machines 0 12-08-2007 01:14 PM




All times are GMT -5. The time now is 05:27 PM.





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 354 355 356 357 358 359 360 361