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! > OpenSource CNC Design Center > Open Source Controller Boards


Open Source Controller Boards Discussion for Open Source CNC type Controller Boards and other related items. (for personal use only)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-30-2010, 10:04 PM
 
Join Date: May 2006
Location: USA
Posts: 144
rlwoodjr is on a distinguished road
FAN73832 for Mosfet Servo Driver

Hello,
I am working on building a servo driver and was trying to use the FAN73832 as the mosfet driver. Does anyone used this chip successfully?

I plan on using the Arduino for the micro-controller. I have had limited success,, but I am getting closer.

The problem I am having with it is that once the motor power is hooked up (even without a motor), the Arduino crashes. The only pins that are connected to the Arduino is the ground and the inputs to the FAN73832.


Any help or comments are appreciated. I have attached a schematic for review.
Attached Images
File Type: jpg fan73832.jpg‎ (53.2 KB, 83 views)
Reply With Quote

  #2   Ban this user!
Old 07-30-2010, 10:21 PM
 
Join Date: May 2006
Location: USA
Posts: 144
rlwoodjr is on a distinguished road
Next build

I was thinking about using a hex inverter and only using one PWM channel on the Arduino. I am not sure, but it seems that the inverter might filter out the noise that locks up the Arduino.

Again any comments or direction would be appreciated....
Attached Images
File Type: jpg Fan73832B.jpg‎ (38.1 KB, 66 views)
Reply With Quote

  #3   Ban this user!
Old 08-08-2010, 07:11 PM
 
Join Date: Oct 2008
Location: US
Posts: 115
bharbour is on a distinguished road

Hi,
I looked at your schematic and I think it would be a good thing to add some .1uF and maybe some .001uF ceramic caps on the motor voltage to ground. Make sure that the ones on the motor voltage go to your motor power ground near the power FETs. For the microcontroller power supply, put some as close to the mircorcontroller power pins as you can. Make sure that your motor ground current from the low side of the FETS has a separate way back to the power supply from the logic ground current. The inductance on the motor ground wire will allow quite a bit of noise that should not be seen by the microcontroller.

The larger caps are good to have, but electrolytic caps are only good for low frequencies (10's to 100's of KHz) while good ceramic caps are good well up into high frequencies.

BobH
Reply With Quote

  #4   Ban this user!
Old 08-08-2010, 08:03 PM
 
Join Date: May 2006
Location: USA
Posts: 144
rlwoodjr is on a distinguished road

Originally Posted by bharbour View Post
Hi,
I looked at your schematic and I think it would be a good thing to add some .1uF and maybe some .001uF ceramic caps on the motor voltage to ground. Make sure that the ones on the motor voltage go to your motor power ground near the power FETs. For the microcontroller power supply, put some as close to the mircorcontroller power pins as you can. Make sure that your motor ground current from the low side of the FETS has a separate way back to the power supply from the logic ground current. The inductance on the motor ground wire will allow quite a bit of noise that should not be seen by the microcontroller.

The larger caps are good to have, but electrolytic caps are only good for low frequencies (10's to 100's of KHz) while good ceramic caps are good well up into high frequencies.

BobH
Thanks. I worked on it a bit this week end and found that the Dell usb ports were the reason the Arduino serial would freeze, but when hooked to another computer, the motor voltage noise is still a problem. I will add some capacitors as you have suggested. The encoder/step input code works without motor voltage, but once the motor voltage is applied, the Arduino interrupts count incorrectly and rapidly.

I do have a path from the mosfet ground back to the power supply, but this ground goes to the Arduino ground too. What did you mean by "a separate way back from the logic circuit"? How can I remove this inductance noise?

I really appreciate your comments...
Reply With Quote

  #5   Ban this user!
Old 08-08-2010, 08:20 PM
 
Join Date: May 2006
Location: USA
Posts: 144
rlwoodjr is on a distinguished road

Here is the board I have so far....just designed I am using a perf board for the testing.
Attached Images
File Type: jpg Fan board.jpg‎ (139.1 KB, 45 views)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-08-2010, 09:28 PM
 
Join Date: Oct 2008
Location: US
Posts: 115
bharbour is on a distinguished road

What I mean by a separate path back to the power supply for motor ground current and logic ground current is that I would run a separate, heavy gauge wire from your Motor power connector to the power supply negative. I would also have a separate power and ground connector over by the LM7805 that just powers the regulator and logic. The ground wire from the logic power connector would connect to the motor ground wire at the power supply negative pin. From looking at your board layout, it looks like you have set up for this.

If you get reliability problems in the processor, you might try cutting the ground trace between the 220uF cap and the LM7805 and putting a 10 ohm resistor in. I would move the connector for the 15V supply to the space between the caps and the lower gate drive chip. That way, the ground and the +15V to the gate drive chips and the ground and +15V to the regulator don't have to share traces. I might even use a separate connector for 15V and ground to the gate drive chips with the ground meeting the other two grounds at the negative supply terminal and the +15V meeting the other +15V wires at the positive supply terminal.

What kind of motor currents are you planning to drive? If the motor currents are over 5A or so, I would go to a double sided board and have much larger motor power traces. Also, for heavier motor currents, I would probably use optical isolators instead of the7404 for isolation. Opto's would allow you to separate the power and ground to the gate driver chips from the logic power and ground until they get back to the power supply.

If your motor currents are modest, it should work the way it is.

The power and ground traces from the regulator to the controller look pretty long and thin to me. That processor probably does not pull much current average, but the high frequency noise current may be pretty substantial. Short, wide, power and ground traces and a few decoupling caps (0.1uF ceramic) near the chip are always good. I can't say it will not work the way it is, but I have been bitten enough times with power and ground problems that I tend to route them first and work around them. I would call the decoupling caps essential.

Bob
Reply With Quote

  #7   Ban this user!
Old 08-08-2010, 09:57 PM
 
Join Date: May 2006
Location: USA
Posts: 144
rlwoodjr is on a distinguished road

I am planning to use 48 VDC Pittman motor and 500 CPR encoder. I bought some of them on ebay:

http://cgi.ebay.com/ws/eBayISAPI.dll...T#ht_500wt_928

at 50 vdc they have a stall current of around 5 amps. I have some 2 oz copper boards. I was hoping to keep it single sided.

I have thought about opto couplers, but thought they were too slow. Looks like you can get them faster than I realized.

Is there an easy calculation to figure out what capacitors to use or it it just trial and error? I do have a scope to see the noise...
Reply With Quote

  #8   Ban this user!
Old 08-09-2010, 09:30 AM
 
Join Date: Oct 2008
Location: US
Posts: 115
bharbour is on a distinguished road

With a stall current of 5 Amps, you are probably OK with this layout for the power section.

There is no good method of calculating decoupling caps that I have seen. I try to put a 0.1uF cap per power pin, but on parts with many power/ground pins that gets impractical.

Most modern processors are fabricated with CMOS technology. CMOS does not require much current to speak of when it is sitting in one state. The current is required when you change states (1->0 or 0->1). What this means is that you get very short, fast current drain spikes. The inductance of the power supply network makes it difficult to supply these spikes directly from the power supply, so you put small capacitors close to the chips to supply these current spikes.

Unless you have a really fast scope, you can get an impression of the noise level on the power supply, but it is tough to measure the noise. I would add a .1uF cap or two to your power traces as close to the power and ground pins as you can and try it. If you get noise problems, you can go back in and solder a few more caps on the back side of the board or add jumper wires on the back side to fatten up the power and ground distribution.

With slower circuits like power supply filter caps, you can estimate your cap requirements reasonably well, because the speeds are low enough that real caps act enough like ideal caps to get by.

Bob
Reply With Quote

  #9   Ban this user!
Old 08-09-2010, 10:05 AM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,342
neilw20 is on a distinguished road
Bootstrap capacitor.

With the circuit you have, you need to pulse the high side drive on a regular basis to keep ensure the bootstrap capacitor has adequate charge so that it all stays digital and never goes linear.
Do you intend to have a current limit in the circuit?
What are you doing about shoot through protection? Inductive loads can do strange things, and you must ensure the mosfets are always protected.

Another thing I have found useful is to slow the switching down considerably with gate resistors even up to 470 ohms or so.
This will increase the dissipation as the frequency goes up, but being very slow switching makes the inductive load/spikes no longer a problem.

There is also a shoot through problem with a device turning on very fast, causing high currents to charge the opposite device capacitance.
When it turns off fast, the interruption of current through the inductance makes big spikes.

Getting a nice compromise takes a bit of effort.

Opto couple the output from the CPU, at least during initial testing, then get the earthing and spikes right later.

Without a fast storage CRO it is not easy to get this right.
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

Last edited by neilw20; 08-09-2010 at 10:14 AM. Reason: more info
Reply With Quote

  #10   Ban this user!
Old 08-09-2010, 05:17 PM
 
Join Date: May 2006
Location: USA
Posts: 144
rlwoodjr is on a distinguished road

Originally Posted by neilw20 View Post
With the circuit you have, you need to pulse the high side drive on a regular basis to keep ensure the bootstrap capacitor has adequate charge so that it all stays digital and never goes linear.
Do you intend to have a current limit in the circuit?
What are you doing about shoot through protection? Inductive loads can do strange things, and you must ensure the mosfets are always protected.

Another thing I have found useful is to slow the switching down considerably with gate resistors even up to 470 ohms or so.
This will increase the dissipation as the frequency goes up, but being very slow switching makes the inductive load/spikes no longer a problem.

There is also a shoot through problem with a device turning on very fast, causing high currents to charge the opposite device capacitance.
When it turns off fast, the interruption of current through the inductance makes big spikes.

Getting a nice compromise takes a bit of effort.

Opto couple the output from the CPU, at least during initial testing, then get the earthing and spikes right later.

Without a fast storage CRO it is not easy to get this right.
I am using 15% to 85% duty cycle to keep the boot strap voltage. If I go much higher/lower than that the fan73832 shuts down (it has under voltage lock out). As soon as you pulse the boot strap it starts up again with seemingly no damage.

I have thought about current limiting, but one step at a time. I am a novice to h-bridges and micro-processors. I have looked at some circuits such as the uhu and elm and learned a lot from them, but I have a long way to go.

The fan73832 has shoot through protection built in. I am using a 100k so my delay for shoot through is around 1 microsecond. I have considered using the uhu version for extra protection, but I have not lost a mosfet (yet) with this arrangement. On a test bed I have run full 3500 rpm one direction then 3500 rpm the other direction, 3 seconds each way. I did this for 15 to 20 minutes with no problems.

I was hoping to make this simple and cost effective. I started with bjt's and opto-couplers form a web page I found, Learned about shoot through and advantages of mosfets. My first mosfet attempt was with p channel fets. Then high side drivers, the complexity and cost keep going up......bummer.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-27-2010, 12:15 PM
 
Join Date: May 2006
Location: USA
Posts: 144
rlwoodjr is on a distinguished road

I never could get to work for more than an hour or two so I have abandon this project and moved to a simpler one. I will post it shortly.
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie- Best MOSFET Driver and MOSFET choice for an H-Bridge Stepper Driver? joprinz General Electronics Discussion 4 04-28-2011 03:57 AM
Mosfet Driver tivoidethuong General Electronics Discussion 57 01-18-2009 09:20 PM
UHU-Servo Mosfet drive problem Danii Open Source Controller Boards 2 03-07-2008 10:29 AM
Experiance with the HIP4082 mosfet driver? AbSat General Electronics Discussion 0 07-01-2007 06:17 PM
IR2184, HIP4080A, or other for mosfet driver? originator Stepper Motors and Drives 2 11-02-2006 09:31 PM




All times are GMT -5. The time now is 05:14 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 354 355 356 357 358 359 360 361