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 09-12-2009, 04:12 AM
 
Join Date: Sep 2009
Location: USA
Posts: 5
NE5534 is on a distinguished road
A3985/A3986 5A/50V Bipolar Stepper Design

There was a long series of posts regarding the A3986 controller in a previous thread. I recently did a design using the A3985 controller. The A3985 is the fully functional / fully programmable version of the pair. Our requirement was precision operation over an extremely wide range of RPM with controlled acceleration, for which the A3985 was ideal.

Microstepping controllers require much higher dynamic range and very careful circuit layout than simple Full/Half/Qrtr step designs. The design shown here is high performance and requires less than 2x2 Inches of double sided. The layout supports both the A3985 and A3986, and only requires changes to the MCU firmware. It can also be readily modified for 10A or 20A designs. For this 5A design, convection air cooling is adequate for the TO-220's.

Regards, Chris / BSEE
Attached Images
File Type: jpg sch_5A50V.jpg‎ (182.5 KB, 772 views)
File Type: jpg layers_all.jpg‎ (144.0 KB, 439 views)
File Type: jpg layers_id.jpg‎ (165.8 KB, 332 views)
File Type: jpg layers_top.jpg‎ (160.7 KB, 336 views)
File Type: jpg layers_bot.jpg‎ (105.3 KB, 272 views)
Reply With Quote

  #2   Ban this user!
Old 09-12-2009, 10:52 AM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Actually the 3985 while an improvement over the 3986 because of the more flexability of timing, still has the same problem as the 3986, current control issues.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #3   Ban this user!
Old 09-12-2009, 11:39 PM
 
Join Date: Sep 2009
Location: USA
Posts: 5
NE5534 is on a distinguished road

Just out of curiosity, what microstepping controller IC do you like?

I guess my point would be that there are not a lot of choices. Comparing these parts to an L297 or some other Full/Half IC is apples and oranges. As I said microstepping requires much higher dynamic range. It's a tall order for any PWM power monolythic IC to handle.

To illustrate consider the following:

Assume a motor with R=0.5 and L=2.5mH
Assume we want to run it at 5A on 50V supply

Max Full Torque Impedance = 50V/5A = 10 Ohms
Max Full Torque Frequency = 10/(2*Pi*L) = 640Hz
Dynamic range for Impedance = 10/0.5 = 20:1 which is 26dB
Dynamic range for Amplitude 1/16 microstepping is another 24dB
Total dynamic range of current = 26+24 = 50dB

Now say we throw in another 10dB just for some linearity, glitches, blanking time, comparator response time, etc, and we have a PWM system that needs 60dB dynamic range. In simple terms that is a resolution of 1000:1

To implement this kind of dynamic range on an analog switching power circuit is far from trivial. The circuit design and PCB layout is critical, and must be extremely clean and well designed. Any glitches/spikes/noise can easily destroy the performance.

Alternatively, in the form of a digital PWM system assume we have a 50kHz PWM switching frequency. To provide 1000:1 resolution, the PWM edge resolution would need to be at least 10bit and the clocking frequency would need to be at least 50MHz. Producing a high voltage (50V) CMOS IC with those capabilities is also far from trivial, or impossible.

The A3985 has about 500% more duty cycle range than the A3986. So while it is correct to say that they both have limited dynamic range, one is certainly much larger than the other.

I agree that there are some logic issues in the A3985/6 involved with its comparators. Few chips are perfect. There are also workarounds. However the A3985 has some remarkable flexibility and works very well in our application. What it does do, very few chips can do. A great deal depends on how it is driven, quality of the circuit layout, and the design requirements.

Everything is a compromise, and the A3985/6 is no exception. To produce a high performance microstepping controller design really requires a dual chip solution. The high voltage driver portion needs to be separated from the controller portion, which can then be a low voltage high speed process. Unfortunately, nothing appears to be on the market in that form yet.

All things considered, as a single chip solution, the A3985/6 provides about the smallest, most flexible, and simple microstepping design at present.

Chris.
Reply With Quote

  #4   Ban this user!
Old 09-13-2009, 03:08 AM
 
Join Date: Dec 2006
Location: Germany
Posts: 19
LazyBee is on a distinguished road

Hello,
your project is interesting for me.
Do you have more informations. What is the size of the board. Do you have already a functional sample?
Is it possible to connect the board direct to the bob and can I drive it with Mach3?

Wilfried
Reply With Quote

  #5   Ban this user!
Old 09-19-2010, 05:48 AM
 
Join Date: Jan 2006
Location: SYRIA
Posts: 7
maMar is on a distinguished road

Hi.
your project is great
can you tell us with the result of this board
i'm very interesting

thanks.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-22-2010, 07:21 AM
 
Join Date: Sep 2009
Location: USA
Posts: 5
NE5534 is on a distinguished road

Actually I designed this, but never built it. The overall performance we required could not be met by this type of design. I talked to Allegro about various issues, and all of their chips have been designed for specific large OEMs. Everything they do is designed to order, and then they offer the same part to the general market as-is afterwards. There are design defects in many of the chips and they never get fixed if it met the original needs of the initial OEM client.

I came to the conclusion that there were no off-the-shelf IC microstepping controllers that would meet our needs. I decided to roll my own controller out of individual parts. That was a job, many of the so called "motor control" type MCUs had serious bugs. No single chip type solution could do it. I ended up using a Xilinx 9572 CPLD with an ADI ADU7021 ARM7 MCU, a pair of ADI AD8216 diff amps for true floating current sensing, 4 LM5109B drivers, a MCP6562 comp, and 8 FDP20AN06 FETs. This was a 5A/48V bipolar design

That's what it took. It's a relatively expensive design, not simple, but it gave us exactly what we needed. It works fantastic. Extremely high performance over very wide range RPM, and with 16 microsteps. We also run controlled accelleration/decelleration algos and need precise motor control.

I also implemented a different type of bidirectional current control scheme. There are no Fast/Slow decay time constants at all. Rather, the current through the coils is set continuously as required by the sine table, and the FETs are driven to force the current both up and/or down to maintain that current.

I don't know if this has been done before, I don't see it used by any IC controllers. In effect, it provides for optimum drive at any RPM automatically, because both the rising and falling currents are both regulated by the feedback loop. I also implemented a special alternation scheme that forces sharing of all current through all 8 FETs for equally shared dissipation.

Most controllers just regulate the rising current, but let the falling current decay by either the Fast or Slow RC time constants. This is not optimum. As a result they cannot follow the sine across wide frequency. This controller follows the sine perfectly up to the current slew limits imposed by the motor R/L and Vcc, and then automatically changes to square wave drive as needed at high RPM automatically. This is all handled by the natural bidirectional feedback control. There are no resonance issues because the motor is under full current control at all times.

Perhaps more info than you wanted, but that was my solution. Wish I could roll it into a single chip solution and offer it for sale, but it's not yet possible. I initially tried that with the PIC33F, but it had too many serious bugs. I tried several other similar MCUs as well. Same problem. Could only do it with separate high quality parts that all work. Current control requirements demand clean high dynamic range and fast logic control.

Chris.
Reply With Quote

  #7   Ban this user!
Old 09-22-2010, 01:58 PM
 
Join Date: Jan 2006
Location: SYRIA
Posts: 7
maMar is on a distinguished road

thanks for your kind reply
you know .......i ordered 5 allegro a3986 chips yesterday,and i wase so excited to work with this chip, but you make me disappointe.
can you send some schematics to explain more what you just wrote above.
please can you explain more about the weak spots of a3986.
many thanks for your support.
Reply With Quote

  #8   Ban this user!
Old 09-22-2010, 06:02 PM
 
Join Date: Sep 2009
Location: USA
Posts: 5
NE5534 is on a distinguished road

The A3986 chip has logic bugs as described on this forum elsewhere.

Giving you just a schematic would be of little help. You would also need my Verilog code for the CPLD, the C code for the MCU, and a proper PC board layout which is almost more important.
Reply With Quote

  #9  
Old 09-23-2010, 04:50 AM
Gold Member
 
Join Date: Oct 2005
Location: Australia
Posts: 2,251
RomanLini is on a distinguished road

Originally Posted by NE5534 View Post
...
I also implemented a different type of bidirectional current control scheme. There are no Fast/Slow decay time constants at all. Rather, the current through the coils is set continuously as required by the sine table, and the FETs are driven to force the current both up and/or down to maintain that current.

I don't know if this has been done before, I don't see it used by any IC controllers.
...
Yes, that's what the Linistepper does.

Full real-time linear control of the phase currents. Which is one of the reasons it out-performs chopper/bipolar driver chips etc in that 1A motor current range.
Reply With Quote

  #10   Ban this user!
Old 09-23-2010, 05:45 AM
 
Join Date: Sep 2009
Location: USA
Posts: 5
NE5534 is on a distinguished road

The other controller may be doing the same kind of drive method, but it does not have the resolution or speed we needed. I wish it did, it would have saved me a lot of time.

Here's an example of my DAC current programming voltage waveforms on the left, and the actual coil current waveforms on the right. This is 7A peak and the motor was around 100 RPM.
Attached Images
File Type: jpg SUPER_DRV.jpg‎ (32.1 KB, 139 views)
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-23-2010, 11:39 AM
doorknob's Avatar  
Join Date: Jan 2010
Location: USA
Posts: 1,240
doorknob is on a distinguished road
Buy me a Beer?

I am having some difficulty reading the scales on the DAC voltage and coil current traces in the photo - can you provide more info or a higher resolution image?

Thanks...
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
New Allegro Bipolar Stepper Driver A3986 BCwanderer Open Source Controller Boards 826 07-25-2011 04:32 PM
Build Thread- 2ND GENERATION 150V 8A Bipolar Stepper Motor Driver Design baggs Open Source Controller Boards 18 02-12-2011 07:23 AM
Build Thread- A 150V 8A Driver design for Bipolar Stepper Motors baggs Open Source Controller Boards 35 07-12-2010 06:56 PM
Allegro A3986...Stepper Translator slp_prlzys General Electronics Discussion 2 06-07-2009 01:59 PM
Bipolar Stepper Controllers johnm99 General Electronics Discussion 2 09-08-2005 08:03 PM




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