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 07-09-2010, 01:22 PM
 
Join Date: Mar 2010
Location: Lithuania
Posts: 5
mr.eemay is on a distinguished road
Some advice needed with DIY driver based on TB6560AHQ

Greetings, may I ask your help and experience?

I have designed and built a test board that uses TB6560AHQ to drive 2 phase, 8 wire superior electric slo-syn stepper motors with supply voltages of 24VDC and 5VDC for the logic. (Photos of a fried one attached)

There is a problem with the board. When connected to the motor via series (or parallel, it doesn't make any difference whatsoever, but gives less torque) connection and driven, the motor moves inconsistently, skiping steps, changing direction without input and making a lot of noise. When I looked at the output with osciloscope, there were a lot of uneccessary spikes and plunges, generated by the chip that (I think) forced the motor to behave like that. Playing with the settings of torque, decay or driving mode improved the situation a bit, but the problem still existed.

As I have read more and more about this particular IC on forums, it became clear, that I have made a mistake by underestimating it's sensitivity to noise and inductive resistance, so I used wirewound ceramic resistors for the "sensing" resistors. Also, the circuit may have poor mass and inductivity because of poorly designed PCB layout.

So, here are the questions:

1. Can all those problems be caused by the inductivity of resistors and PCB layout?
2. If yes, can I use a few parallel resistors instead of one for the "sensing" resistors? (0.5Ohm non-inductive resistors are hard to find, you know )
3. I have seen people using low ESR capacitors for the "filtration" of motor side power supply. May that help?

Thanks,
Mykolas J.

P.S. My english isn't top-noch, hope you'll be able to understand everything clearly enough
Attached Thumbnails
Click image for larger version

Name:	img0087yc.jpg‎
Views:	249
Size:	283.3 KB
ID:	110629   Click image for larger version

Name:	img0094zn.jpg‎
Views:	213
Size:	334.7 KB
ID:	110630   Click image for larger version

Name:	img0097te.jpg‎
Views:	195
Size:	347.5 KB
ID:	110631  
Reply With Quote

  #2   Ban this user!
Old 07-09-2010, 02:55 PM
jalessi's Avatar  
Join Date: Feb 2007
Location: U.S.A.
Posts: 3,155
jalessi is on a distinguished road
Post

Mr.Eemay,

Good source for resistors:

http://tinyurl.com/2dp2ywh

This will help,

Jeff...
__________________
Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.
Reply With Quote

  #3   Ban this user!
Old 07-09-2010, 09:31 PM
amishx64's Avatar  
Join Date: Jul 2008
Location: USA
Posts: 324
amishx64 is on a distinguished road
WOAH!

mr.eemay,
You have a SEVERE lack of components on your board. Do you have eagle for PCBs? If so, I will send you a schematic of what you should have in a driver like that. Otherwise, I'll just post an image. I can also tell what you need component-by-component, but that might take a while.
Two musts are:
Rectifier diodes (for back-emf)
Large Electrolyte capacitors


Maybe you have these off-board tho?

- amishx64
Reply With Quote

  #4   Ban this user!
Old 07-09-2010, 09:44 PM
amishx64's Avatar  
Join Date: Jul 2008
Location: USA
Posts: 324
amishx64 is on a distinguished road
more things

Sorry 2x post...

You should also definitely include a heatsink on that driver IC.

I've looked (briefly) at low ESR Caps and I don't think they are necessary for CNC applications, especially when driving motors, since there is no through current (for one terminal thru to the other) powering anything with a load. Low ERS's are used on motherboards, and I would imagine devices sensitive to slight temperature and voltage changes, such as precision electrical instruments.
Reply With Quote

  #5   Ban this user!
Old 07-10-2010, 06:02 AM
 
Join Date: Mar 2010
Location: Lithuania
Posts: 5
mr.eemay is on a distinguished road

Thanks for the link, Jeff, I somehow forgot to look for those in american ebay.

Amishx64, I was almost sure that I will have to scrap this board, so I tried to make it as basic as posible (by the schematic in the datasheet with slight changes) and then try changing, adding components, but I have ran out of ideas whats wrong, as the board came out to be very sensitive to the slightest changes, which, well, produced just a bit less or a bit more noise. The heatsink is removed by the way

Originally Posted by amishx64 View Post
mr.eemay,
You have a SEVERE lack of components on your board. Do you have eagle for PCBs? If so, I will send you a schematic of what you should have in a driver like that. Otherwise, I'll just post an image. I can also tell what you need component-by-component, but that might take a while.
Two musts are:
Rectifier diodes (for back-emf)
Large Electrolyte capacitors


Maybe you have these off-board tho?

- amishx64
Though I design in (a very outdated) accel EDA suite, I have access to eagle, so if you would do that, I would appreciate that.

By the rectifier diodes do you mean putting them on the motor ouptut? I thought the IC has them built in?
Concerning the large electrolytes, it depends where they should be. If you mean on the power circuit, then yes, I have them off-board by the power supply.

Thanks for your help, guys,
Mykolas J.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-11-2010, 10:15 AM
amishx64's Avatar  
Join Date: Jul 2008
Location: USA
Posts: 324
amishx64 is on a distinguished road
Components

I will send you my eagle diagram as soon as I find it.

By the rectifier diodes do you mean putting them on the motor ouptut?
Kinda. The output from the micro goes to the stepper wires and a diode also connects from ground to the same pins. Two per stepper coil, so one each for A+,A-,B+,B- or however you like to call the coils.

I thought the IC has them built in?
Not that I know of, and if they did, they would insufficient for CNC purposes anyway. The diodes would be way too small anyway you look at it.

Concerning the large electrolytes, it depends where they should be. If you mean on the power circuit, then yes, I have them off-board by the power supply.
All power supplies need large caps nearby, as you have. But they also need placed very near to the driver IC chip that does the switching because things can get very 'noisy' near the chip with all the current switching and all.

Schematic is coming...

- amishx64
Reply With Quote

  #7   Ban this user!
Old 07-16-2010, 08:03 AM
 
Join Date: Mar 2010
Location: Lithuania
Posts: 5
mr.eemay is on a distinguished road

This is the schematic I have done so far, is that the diode layout you've had in mind? Am I missing anything more? Please, let me know,

Thanks,
Mykolas J.
Attached Thumbnails
Click image for larger version

Name:	scheme.jpg‎
Views:	300
Size:	459.0 KB
ID:	111043  
Reply With Quote

  #8   Ban this user!
Old 07-17-2010, 10:51 AM
amishx64's Avatar  
Join Date: Jul 2008
Location: USA
Posts: 324
amishx64 is on a distinguished road
Needs work.

It needs a lot of work. You would've blown a lot of electronics.

- amishx64



Edit: The CNCzone website reduced the quality. I'll have to host it elsewhere also.
Attached Thumbnails
Click image for larger version

Name:	TB6560AHQ driver revised copy.jpg‎
Views:	276
Size:	84.2 KB
ID:	111101  
Reply With Quote

  #9   Ban this user!
Old 07-17-2010, 10:55 AM
amishx64's Avatar  
Join Date: Jul 2008
Location: USA
Posts: 324
amishx64 is on a distinguished road
ImageShack

Here's the hosted version:
http://img62.imageshack.us/img62/365...errevisedc.jpg
Reply With Quote

  #10   Ban this user!
Old 07-17-2010, 05:44 PM
 
Join Date: Mar 2010
Location: Lithuania
Posts: 5
mr.eemay is on a distinguished road

Thanks for the advice, amishx64.

I have to admit, my circuitry skills are a bit rusty, the last time I've designed a circuit more complicated than a voltage regulator was like ten years ago

I guess that the notes in blue are not critical. So, I know that pull-down's are built in, but on my test board, there was quite a bit of noise there and adding a 1k pull-down resistor eliminated that. I might have to increase the value, but it seemed to work just fine then. Resistors are cheap, you know, so I've put them there, just in case. The resistor for the LED has just a generic value, I'm not sure what LED's I will get from the store, so I will adjust the value when I get them. I totally agree with all the other notes in blue.

Regarding the notes in red, well, for the voltage vs. GND issue, this software is pretty dumb, and it goes haywire when you put ground or vcc symbols on it, so what I do, is instead of using symbols, I use screw terminals for representing the power. And it's easier to distinguish between grounds for me just by writing the -5VDC and -24VDC. (sorry for the whole offtopic whining about bad sofrware ). The electrolytic decoupling capacitor is there (C2 actually), I have just represented it further away from the IC and missed the value quite badly . You have made me scratch my head with that diode part there to be honest. I have seen a few circuits that have diodes arranged like that and I think that by putting them there would let current flow one direction only trough the coil of the motor. Does the IC reverse the direction of current while in operation or something?

EDIT: Oh, now I have just realised that by doing that, I have basicaly made a short-circuit between the outputs, is that right? Hmm, I now wonder why on earth other circuits had those there then

Thanks for the help,
Mykolas J.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-18-2010, 01:49 AM
amishx64's Avatar  
Join Date: Jul 2008
Location: USA
Posts: 324
amishx64 is on a distinguished road

You are quite welcome!

That's alright, we all need to (re?)learn sometime! I'm glad to help.

Your assumption that the blue isn't critical is correct. The red is most important by far. Extra components, especially something as cheap as resistors, are always encouraged if it makes the circuit more stable / reliable. If they reduce noise, I'd add them. I am not 100% sure about the 100K vs the 1K value. I saw 100K on the datasheet, but I don't think the difference will be overly critical (hence blue ). I figured you knew what you were doing with the led and resistor there, but wanted to point it out just in case.

LOL dumb software. Always a plus! I figured you meant GND, but I mentioned because the error could be fatal to the chip. In electronics (you probably already know this) -24V and +24V gives you a 48V equivalent voltage. [I use screw terminals to represent power too, dunno any better way.]

I understand you confusion with the seemingly backwards diodes. One way current won't flow (GND to volts? Come on! That can't happen! Or can it?), the other way motor current short-circuits into GND! Well one way must work, and short circuiting and blowing everything up here just isn't an option. You definitely don't want to do the way I crossed out with current short-circuiting into GND! The other way (that seems like they'd do nothing) actually allows for the induced back-EMF generated by the coils when the stepper moves and coils are disengaged / engaged to get fed right back into the coils to kill off the excess current with hefty motor coils. This noise would normally go tight to GND and make a bunch of noise, disturbing and resetting your whole circuit constantly. That's why these diodes are so important. If you don't have them, current can be generated with a higher voltage than you actually source (>24V) and flow in reverse through your driver IC. To my understanding, this usually is what would kill the chip. The noise just screws everything up by shifting the voltage levels around.
I hope this is a good enough explanation. I've never had it explained to me professionally, but it seems to work for me and adheres to what I've read on the subject

To answer:
Does the IC reverse the direction of current while in operation or something?
The answer is yes, but not for that reason. It just switches the current back an forth in order to reverse the coil polarity and make the stepper 'step'.

Oh, now I have just realised that by doing that, I have basicaly made a short-circuit between the outputs, is that right? Hmm, I now wonder why on earth other circuits had those there then
Yes, that would be correct. I hope you read the other circuits wrong, because if that is true, they certainty won't last for long! (About as long as it takes for the IC to turn on the motor coils, which is about a second or two after logic power up I believe.)

BTW, a higher voltage results in a lower induced-EMF. However, there are obvious disadvantages to running everything at higher voltages.

If you have any more Q's, feel free to ask away.

Hope this helps,
- amishx64
Reply With Quote

  #12   Ban this user!
Old 08-31-2010, 12:05 PM
 
Join Date: Mar 2010
Location: Lithuania
Posts: 5
mr.eemay is on a distinguished road

Thanks guys, hardware works fine now. I have some problems still, but only with software and I can ask a local friend to come and see what's wrong, as he is familiar with it
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Build Thread- Microcontroller based bipolar stepper driver dandumit Open Source Controller Boards 49 10-17-2011 04:17 AM
Midwest based young machinist looking for some advice Myrmidon Mentors & Apprentice Locator 2 05-12-2010 02:58 PM
Does TB6560AHQ need optocoupling? alexglvr Open Source Controller Boards 1 07-21-2009 09:50 AM
Strange problem with L6208-based driver dteney Stepper Motors and Drives 5 08-10-2008 01:13 PM
Newbie- Advice Needed for Home-based Business Idea jphakala Commercial CNC Wood Routers 9 05-06-2008 12:34 PM




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