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-18-2007, 05:56 AM
 
Join Date: Jan 2007
Location: earth
Posts: 124
mugabe is on a distinguished road
What is A MUST features for modern stepping motor driver?

Hello guys

This is my second post and i am beginner in stepper motor field. I am interested to hear your opinions what are the must features of modern stepper motor driver ?

Some come to my mind :
Fast decay with synchronous rectification, slow decay, mixed decay,
overcurrent protection
back EMF and motor current sensing,
PWM off time adjustment based on motor rpm, microstepping ,
sine/cosine current profile adjustment ,
holding torques ripple control
active resonance damping
idle power mode
...
What can be added to above list and how big is the impact of items to motor performance ?

Thanks in advance
Reply With Quote

  #2   Ban this user!
Old 01-18-2007, 09:44 AM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Cheap!
Reply With Quote

  #3   Ban this user!
Old 01-18-2007, 09:53 AM
 
Join Date: Jan 2007
Location: earth
Posts: 124
mugabe is on a distinguished road

if we can put everything into soft it will be cheap . I guess newly arm chips starting from 3-4 USD running at 60 MHz will allow that .
Reply With Quote

  #4   Ban this user!
Old 01-18-2007, 11:11 AM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Most of the features, you correctly selected, are already implemented into a 20 MHz ATtiny2313 with only 2k flash. Look at this thread: http://www.cnczone.com/forums/showthread.php?t=25361

The code is not optimized (assembly) yet, but it is working at 45,000 KHz step input (tested). Some of the features don't apply to this design because it is an Unipolar Driver, except for the synchronous rectification that could also be implemented in hardware without adding too much cost.

You don't really need too much processing power, unless you are trying to implement a closed loop control system.
Reply With Quote

  #5   Ban this user!
Old 01-18-2007, 05:27 PM
 
Join Date: Jan 2007
Location: earth
Posts: 124
mugabe is on a distinguished road

I so this thread 2 hour before you posted here.)
Nice job. I will try to study it .

I think you don't need complete assembler implementation. Major part can be written in C and critical part such as interrupt handling in assembly if required . But i guess you know this already.

The first thing i so there - is chopping is done outside of micro . Yes, you make it synch from micro. Would it be better to synch by discharging 555's capacitor directly through additional transistor, so 555's generation sequence will be in phase with micro orders? But i dont really get into the synch issue details yet.
And i suppose there would be great chance of chopper wont be ON second time by 555 if microstepping frequency will exceed that of 555's (set as stated in schematics to something around 19 kHz).
Yet may be you don't need variable resistors for current regulation symmetry - if comparators outputs will be available to micro and 555 can be disabled upon request you can set the VREF channel A first to some value from micro then enable chopper and count time when comparator will be triggered. Applying same sequence to channel B will give difference in time and that is channel current measurement mismatch which can be corrected when working with microsteps .

And may be it is possible to reduce power down current in software , by introducing 2dimensional lookup table for current reference output towards comparators . One index is mode (power down or normal) another is current values .
So, when mode will be changed upon execution of watchdog interrupt - timer can be updated with values for current step taken from power down mode index of lookup table .

Above is just IMHO.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-18-2007, 05:38 PM
 
Join Date: Jan 2007
Location: earth
Posts: 124
mugabe is on a distinguished road

BUt i am probably wrong regarding current regulation - you need to keep PWM fast to change reference voltage fast for 45 kHz microstepping, to get it established soon at step change . Then top value for TCNT needs to be low and that means no chance to correct current tables in time due to low resolution of fast PWM.
But that is stimulus to look towards more port available avr series to implement references via r-2r matrix. IMHO.
Reply With Quote

  #7   Ban this user!
Old 01-18-2007, 06:06 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Read the complete thread, then we talk.

At about 200 to 250 Full-Steps/sec the reference waveform changes from sine-cosine into the intermediate waveform we call Maximum-torque and then at over 300 Full-Steps/sec it changes to a DC level (maximum current or Full-Step reference). So, at 45 KHz there is no variable reference waveform even when we are using 1/16 micro-stepping.

What it means is; although we are counting every single step pulse at the input as, lets say, 1/16 micro-step; The output reference waveform is a Full Step waveform. When decelerating the opposite occurs. No steps are lost or added because we continue counting 64 micro-steps per full step on the coil sequence switching (in case of 1/16 micro-stepping)

So, in practice, at the speed levels when the time constant of the motor coil will limit the coil current from following the reference waveform, we change the reference waveform, at those speeds micro-stepping is not important, it is already done with its movement smoothing function..

Micro-stepping is intended for smooth movement at low speeds only.
Reply With Quote

  #8   Ban this user!
Old 01-18-2007, 06:12 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Another thing, The 555 and related components for the PWM oscillator are not being used with the ATTiny2313 translator. Read the note on top of the translator's schematics. What we use here is fixed frequency chopping. The oscillator is a 40 Khz PWM generator (using timer0), the output compare value is set to the required value to give the desired "blanking time" for the comparators (1 uSec).
Reply With Quote

  #9   Ban this user!
Old 01-18-2007, 06:24 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

About the assembler implementation;

As the code is now (compiled basic), the interrupt routine for Int0 takes 11.40 uSec (worst case). There are no other tasks working on that controller, so the maximum theoretical step-rate is supposed to be over 75 Khz. I haven't tested it yet. Nevertheless ,as the important code is on that interrupt routine, what is left is only initialization code that is also easy to program in assembly. The minimum tested step pulse width is 1 uSec.
Reply With Quote

  #10   Ban this user!
Old 01-18-2007, 06:31 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

And may be it is possible to reduce power down current in software
I tried that too, but then, it will be necessary to restore the right current level at the beginning of the Step interrupt routine before doing the change to the corresponding new levels, and those instructions took a few microseconds to run. It was easier and faster to change one output pin value and let the user decide what current reduction he/she wants (if any) by replacing only a couple of resistors and/or a jumper.

Another issue related to this reduction was the fact that I wanted the user to select the feature by means of a jumper, and I had only one pin left.

Last edited by kreutz; 01-18-2007 at 08:39 PM.
Reply With Quote

Sponsored Links
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





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