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! > Events, Product Announcements and More > Polls


Polls All Polls should be posted here only not in the forums. Please post relevant polls only.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-26-2006, 05:33 AM
 
Join Date: Feb 2006
Location: Australia
Posts: 4
JeremyLee is on a distinguished road
Question Preferred Stepper Driver Electrical Interface

I'm working on a new stepper driver, and I'm trying to decide which logic interface standard I should implement which will result in the greatest compatibility with other systems, both logically and physically. Every stepper driver seems to have it's own special way of communicating with the outside world.

The most common physical interfaces seem to be 10-pin IDC connectors, screw terminals, DB9, and 5-pin DIN connectors. The most common logical interfaces seems to be brake/step/drection, brake/step up/step down, and RS232 or RS423 serial formats. This leads to a whole matrix of choices:

- 10-pin IDC brake/step/direction (PMinMo.com standard, as used on PICStep)
- 10-pin IDC brake/step up/step down
- 10-pin IDC RS232
- 10-pin IDC RS423
- Screw Terminal brake/step/direction (as used on Geckodrive)
- Screw Terminal brake/step up/step down
- Screw Terminal RS232
- Screw Terminal RS423
- DB9 brake/step/direction
- DB9 brake/step up/step down
- DB9 RS232 (common on serial drivers)
- DB9 RS423
- 5-PIN DIN brake/step/direction
- 5-PIN DIN brake/step up/step down
- 5-PIN DIN RS232
- 5-PIN DIN RS423
- Other
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 02-26-2006, 06:02 AM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

Until the industry concurs on a "standard", I don't see how you're going to implement any one interface.

This is especially true in light of how the electronics industry seems to ash-can a standard for a new 'standard' whenever they run out of pins to do what they used to want to do.

Think how lame and chaotic our phone system would be if this approach were taken with that medium of communication. It is amazing what they can do and how much they can control with 2 dinky wires, isn't it???

Even the car industry (which thrived on the "just 1 more wire" approach) is starting to look at "buss" type controls to reduce wiring, save cost and weight.

I"d look at an optical interface for a standardized universal fits all controller - fiber optic 'light pipe' connect it to an adapter then let the adapter have whatever interface 'du jour' is needed....
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 02-26-2006, 06:31 AM
 
Join Date: Feb 2006
Location: Australia
Posts: 4
JeremyLee is on a distinguished road

I did look rather carefully at using fibe-optics, but even the cheapest 5mm PMMA optic cable costs a few dollars a metre, which is about a hundred times more expensive than plain old copper wire. (You'd think plastic would be cheaper than metal, but no.)

It's a shame, because the intrinsic opto-isolation and electrical noise immunity makes fibre-optics a very attractive concept for motor control. Maybe one day when the cost drops... but then it's just as likely we'll go wireless.
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 02-26-2006, 02:11 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

JeremyLee,
There is no standard. I simply picked the 10pin IDC as it is inexpensive, clean easy cabling. I tried to think through the 10pin interface in several aspects:
1. All necessary signals are on one row. (enable, dir, step, gnd, 5V (optional) The second row is ground termination, that interleives/isolates the logic level signals.
2. There is more than one way to terminate with connectors. 10 pin 2 x 5 .1in,
5 pin 1 x 5 .1in, 5 pin 1 x 5 .1 in polarized.
3. The 5V pin can be used to backfeed opto isolators, or shared to an interface.

Attached is a couple of pics of how you can use the polarized connector to connect up a screw type terminal drive such as a Gercko
Attached Thumbnails
Click image for larger version

Name:	setupforgecko.jpg‎
Views:	121
Size:	50.4 KB
ID:	15017   Click image for larger version

Name:	smallinterfacefgecko.png‎
Views:	102
Size:	381.8 KB
ID:	15018  
__________________
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 02-26-2006, 04:08 PM
 
Join Date: Feb 2006
Location: Australia
Posts: 4
JeremyLee is on a distinguished road

PMinMo's Phil said:
There is no standard. I simply picked the 10pin IDC as it is inexpensive, clean easy cabling. I tried to think through the 10pin interface in several aspects:

Actually, I think you've managed to create the closest thing there is to a de-facto standard! My prototype boards use your interface at the moment, and I was planning to contact you to make a suggestion about 'enhancing' it slightly to support serial protocols as well...

I'm using a PIC16F628, and I've assigned the STEP and DIRECTION pins to RB2 and RB1 respectively. Not only does this let me optionally use the inbuilt pull-up resistors, but these are the pins connected to the PIC's USART.

This means the DIRECTION pin doubles as the drivers RX/DT (Asynchronous Recieve, and Synchronous Data) pin, and STEP doubles as TX/CK (Asynchronous Transmit, and Syncronous Clock) from the drivers point of view.

I could have just as easily picked the opposite, but after long thought this seemed the right choice for the following reasons:

- "Direction" is an english synonym for "Instruction" or "Command", and so it seemed correct it should double as the drivers async recieve/sync data, since that's how the driver recieves commands.
- "Step" is sort of a logical synonym for the syncronous "Clock" signal.
- This allows the driver to self-configure on startup, by waiting for a serial byte to come in on DIR or a pulse to arrive on STEP. Whatever happens first sets the mode.

Of course, there's no such thing as a standard serial protocol for talking to stepper drivers either, but at least the PIC is programmable in that regard. Sorting out the electrical interface is the necessary precursor. Even if the stepper isn't actually commanded in serial mode, it's still a great way to set options through a console, rather than jumpers.

Last edited by JeremyLee; 02-26-2006 at 10:29 PM.
Tweet this Post!Share on Facebook
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -5. The time now is 03:49 PM.





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