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 > Stepper Motors and Drives


Stepper Motors and Drives Discuss stepper motors, drivers and related topics here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-26-2008, 01:57 PM
 
Join Date: Jun 2007
Location: Canada
Posts: 21
Micro_CNC is on a distinguished road
Driver resistor values

I have built the L297/298 as per the reference design by ST and it is fully functional in all but one respect, the resistors that go from ground to pins 1 and 15 on the L298 and pins 13 and 14 on the L297 have blown up quite spectacularily a few times now (but have also worked fine on other times) and I can't seem to figure out why. The datasheet for both the 298 and the 297 doesn't seem to offer any explainations as to what the function of these resistors is and what kinds of loads they are expected to handle, nor does it explain why they get hot enough to pop sometimes but not others.

My setup on this is enable tied to high, reset tied high, half/full tied to high, Vref going to center on a 500k voltage divider, control tied to ground and I'm using the reference values for the RC network that runs the chopper. I'm running EMC2. Anything I haven't listed is set to whatever the reference design calls for.

The reference design I am refering to is the very first result when you search "L297"
on google.

Any explaination as to what these resistors do or how to determine what the peak amps they use would be appreciated. Electronics and computer jargon doesn't phase me either, so don't worry about it. I just can't seem to figure out this chopper thing.

Regards, Matt
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 01-26-2008, 04:19 PM
jeffs555's Avatar  
Join Date: Jun 2004
Location: United States
Posts: 463
jeffs555 is on a distinguished road

Those are the current sense resistors, and carry the full motor current. The resistors are probably burning up because they do not have a high enough power rating. To calculate the power in a resistor, you square the current and then multiply by the resistance. For example, if you were using 2 amps and a 0.5 ohm resistor, the power dissipated in the resistor would be 2 watts(4x0.5). For a safety factor, you usually double this so you would want a resistor rated 4 watts or higher.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 01-26-2008, 04:58 PM
 
Join Date: Jun 2007
Location: Canada
Posts: 21
Micro_CNC is on a distinguished road

Thanks, I'm going to put in an order for new resistors sometime this weekend so i should hopefully be able to make a thread titled "its alive" by Wednesday so in my circumstances (5 amps peak, doubled up 298's) i would need about 15 watt resistors correct? thats not doubled but I can always shut it off and adjust it if the temps get too high and I'm not willing to pay $30 per resistor.

Also what would changing the resistance do?

Do you know of any circumstances that my 1/8W ones wouldn't fry under - they ran fine for at least 3 trials (and they weren't hot at all) after that it was intermittent and they often blew up. EDIT - I think I might have figured it out, I can recall not always measuring the resistor value just pluging it in - is it possible that they were low enough to take advantage of the A^2 * R with the A changing with the R so I was experiencing about 3 A average so with an 1/8W resistor that would be 0.375 ohms thus allowing them to run maybe slightly warm but not hot enough to pop, so they didn't pop because of manufacturing variances.

Could you see any problems with just connecting those lines straight to ground? I tried that and while things do indeed get hot they are still within the safe temps outlined in the datasheet (130 max - 75 as a "normal" temp). It pulls about 3-4.5A as compared to 2-3.5A.

What does changing Vref actually do? I know it varies how many amps are pulled but what is it actually adjusting? is it like PWM or something?

thanks,

Matt

Last edited by Micro_CNC; 01-26-2008 at 06:06 PM.
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 01-27-2008, 12:13 AM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Try to keep the vref under a volt. At 5A that would mean a sense resistor of .2 ohms or less. Avoid wire wound resistors. You won't be running 100% duty cycle so the resitor wattage can be less.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 01-27-2008, 02:26 PM
jeffs555's Avatar  
Join Date: Jun 2004
Location: United States
Posts: 463
jeffs555 is on a distinguished road

Could you see any problems with just connecting those lines straight to ground? I tried that and while things do indeed get hot they are still within the safe temps outlined in the datasheet (130 max - 75 as a "normal" temp). It pulls about 3-4.5A as compared to 2-3.5A.

What does changing Vref actually do? I know it varies how many amps are pulled but what is it actually adjusting? is it like PWM or something?
Connecting them directly to ground would be a very bad thing to do.

The current limiting counts on the voltage drop across the resistors. It works like this:
The motor current goes through the L298 out pin 1&15 through the resistors to ground. From Ohms law, the voltage across a resistor is equal to the current times the resistance(ie the resistor converts the current into a voltage). For example, with a 0.5 ohm resistor, 1 amp would give 0.5 volts, 2 amps would give 1 volt, etc. Inside the L297 is a voltage comparator that compares the voltage across the resistor with the reference voltage. When the voltage across the resistor goes higher than the reference voltage, the L297 shuts off the L298 for a fixed amount of time. With a direct connection to ground instead of a resistor, the only resistance would be that of the wiring and connections, and it would take a very high current to generate a voltage equal to the reference voltage.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-27-2008, 09:24 PM
 
Join Date: Jun 2007
Location: Canada
Posts: 21
Micro_CNC is on a distinguished road

That is exactly what I was looking for, an explaination of how the device is actually working. Thank you very much. It is on a breadboard though and the motors are pretty high resistance so I'm not pulling too many amps but yeah it gets hot.

So if my motors are at 0.8 ohms per coil and I'm running 12V then would I make those resistors about 0.8 ohms each and turn the Vref till I get around 1.5A per coil / 3A per motor. Therefore staying under the 4 amps limit for each pair of 298's so I shouldn't have a problem with temp that way either. Does that sound right? The only reason I'm not saying 0.2 ohms like in pminmo's post is because I forgot to mention I'm running 12V rather than 36V and I do not know how that would fit in, and I am sort of thinking of the resistor and motor as a voltage divider now which the equal resistance of the resistor and motor would allow a greater range of adjustment via the Vref.

In short is 0.8 ohms and 5 watts about right?

If one of you could reply in the near future then it would be much appreciated as then I could order those resistors tonight.


Matt
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 01-27-2008, 10:09 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

The vref on the L297 has a 3V max. If you use .8 ohms, and set for 1.5A, your vref would be set to 1.2V. If you use a .2 ohm resistor, at 1.5A your vref would be set to .3V. You said you doubled up the L298's for the current. At 1.5A there was no need to double the L298's. They will do 2A/phase. Your L298's will need to be heatsinked regardless, they get hot.

Steppers loose rpm performance/power at lower supply voltages. The L298 will drop around 3V itself, if you have a .8 ohm resistor at 1.5A you will drop 1.2V across the sense resistor. So 12V (supply) minus 3V (L298) minus 1.2V sense resistor will give you a little less than 8V to the motor.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 01-28-2008, 12:29 AM
 
Join Date: Jun 2007
Location: Canada
Posts: 21
Micro_CNC is on a distinguished road

A heatsink isn't an option for me until the machine is running, once it is then I will use it to make 8 heatsinks and a nicer enclosure for the L298's. They do have a 90mm tube fan blowing on them at the moment and its keeping them at around 30C at 3A per pair. The datasheet says that they have a max power dissipation of 25W which at 12V figures out to be about 2A per L298 without a heatsink so with that in mind I doubled them, I will keep it at that until I make a more suitable cooling solution. That voltage will have to suffice because I do not have a higher rated power supply and I don't have the parts to make one. For my current uses it has enough power as is, In the future I plan on buying gecko drives and running something in the range of 50V.

I do understand the reasoning behind keeping Vref under a volt now though. Thank you.

So, from the help I have received from both of you I understand that ~0.2ohm and 5W (to allow the L298 pair to hit 4 amps per phase if I decided to go that high) is about right.

My only remaining question seems to be why not go with wire-wound resistors? Is it something to do with current in the coil (wound thus coils I'm assuming)? If not wire-wound then what type should I use?

Matt.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 01-28-2008, 02:29 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

.2 ohm 2w is plenty. You don't want to use wire wound because they have some inductance and that can affect your sense circuit performance negatively.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 01-28-2008, 04:43 PM
 
Join Date: Jun 2007
Location: Canada
Posts: 21
Micro_CNC is on a distinguished road

Thank you PMinMO and Jeff, I ordered them from digikey this morning and hopefully they will be here for wednesday.

Regards
Matt
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
Reply

Tags
l298 l297




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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with integer values clarke200 Fanuc 2 06-26-2007 08:49 AM
resistor between bob and driver inputs? Aiko General Electronics Discussion 6 06-25-2007 05:29 PM
Inverting values. jymdman Post Processors for MC 12 03-11-2007 02:32 PM
List of L values for G10 L?? iMisspell G-Code Programing 3 07-30-2006 11:32 PM
Output values?? hop Machine Problems, Solutions , Wireless DNC, serial port 0 06-07-2006 06:37 AM




All times are GMT -5. The time now is 09:48 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