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 > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-21-2008, 12:09 PM
 
Join Date: Nov 2007
Location: United States
Posts: 8
John DiBernardo is on a distinguished road
Interfacing stepper motors with computer

First time here. I would like to talk with some one who knows something about controlling stepper motors. I bought two stepper motors, two controllers and a power supply. When I received them in the Mail I opened the box to look for schematics that might give me some clues on how to hook the controllers up to a serial port on a laptop. I want to use the stepper motors to control the position of a door to control air flow through a duct. I know it can be done, but the hookup instructions for the cw260c controller to a computer aren't spelled out clearly to me. I need to precisely control the position of the doors and need to be able to preset values to select for specific door positions. I am thinking I may need some software and schematics detailing the tx and rx pinouts of the serial port and the controller.

Any help would be greatly appreciated.

Thanks J DiBo
Reply With Quote

  #2   Ban this user!
Old 01-24-2008, 07:39 AM
vger's Avatar  
Join Date: Jan 2006
Location: usa
Posts: 664
vger is on a distinguished road
connections

The serial port will not do what you are wanting directly. Your controller has three inputs, Step (CP), Direction (CW), and enable (EN). You will either need to connect to the "Parallel printer port" on your computer, or find and obtain some sort of interface. The serial port is designed to send and recieve data as a stream on single wires. The parallel port on the other hand can directly control several wires individually.
Here is a fairly good starting point.
http://www.epanorama.net/circuits/parallel_output.html

Best of luck
Steve
Reply With Quote

  #3   Ban this user!
Old 01-28-2008, 11:32 AM
 
Join Date: Nov 2007
Location: United States
Posts: 8
John DiBernardo is on a distinguished road
parallel port wiring to stepper drivers

Hi Steve,
Thanks for the information. I went to the epanorama website to find pinouts for the db25 connectors, But I am looking for an easier solution like cp+ goes to ?, cp- goes to ?, cw+ goes to ?, cw- goes to ?, en+ goes to ? and en- goes to ?
I'm an aircraft electrician not familiar with cnc hardware trying to use some of your stuff to work for my project. Is there any one out there with an easy answer for a layman?

Thanks DiBo
Reply With Quote

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

It completely depends on the controllers on how to hook them up. Any info on them?
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #5   Ban this user!
Old 01-28-2008, 03:57 PM
 
Join Date: Nov 2007
Location: United States
Posts: 8
John DiBernardo is on a distinguished road
Parallel port wiring to stepper motor drivers

Hi,
the stepper motors I am using are 57bygh405a and the drivers I have for them are cw260c. The power supply is a PS1-150W-36. The vendor I purchased the parts from has a tech support division that was at the very best useless to me and recommended I search cnczone. I thank you for your support. By the way, what age do you think it is too old to start learning cnc machining? I wish I would have gotten into the cnc field 20 years ago.

Thanks DiBo
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-28-2008, 04:31 PM
vger's Avatar  
Join Date: Jan 2006
Location: usa
Posts: 664
vger is on a distinguished road

DiBo
Got to run a errand, will be back soon to do a post...
Steve
Reply With Quote

  #7   Ban this user!
Old 01-28-2008, 05:25 PM
vger's Avatar  
Join Date: Jan 2006
Location: usa
Posts: 664
vger is on a distinguished road
Port connections

DiBo,
I've used TurboCNC (free download at http://www.dakeng.com/turbo.html ) it's not the best, but it works. Take a look at the manual Part 2 in the configuration area. It allows you to configure the I/O lines (parallel port) with great flexibility. For your dirve you would use the "Step/Dir" option on each of the axis configuration screens (yes screens, it's not a windows program, it's DOS) and set the pin #'s for which pin (of the outputs pins that are available) do do what.
Your drives have opto-isolated inputs. You can look at the input as being an LED (with internal series current limit resistor) that can be driven directly from the parallel port (spec says it can handle 70V max). So the - (minus) inputs can be connected to ground pins on the parallel port and the + (plus) inputs would connect to the data lines for control. Basicly the program writes a data byte to the parallel port and sets the bits it wants high (+5V) to 1's and the others to 0's. The program takes care of that for you. It's a good idea to put all of your step and direction lines on the D0-D7 lines so that only 1 byte must be written to make a move.
With an old parallel printer cable (printer end cut off) you could most likely wire this up and connect the motors and supply to the drives and have it turning the motors in just a couple of hours. You would need an ohm-meter to wring out the cable for which wire goes to what pin, not too hard.
Let me know how you are doing.

Steve
Reply With Quote

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

What crap instructions....
This is some information to the parallel port. http://pminmo.com/pport/pport.htm
For simplicity pins 18 thru 25 are the gnd of the parallel port and I will call them LPTG.
CP- to LPTG, CW- to LPTG, Rest- to LPTG
driver 1 CP+ to pin 2, CW+ to pin 3
driver 2 CP+ to pin 4, CW+ to pin 5

Assuming REST is a motor enable REST+ can either goto the same pin, such as pin 1, or wired to 5v to enable the motors when power is on.

Each driver power postive to power supply +, negative to supply negative, don't daisy chain.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #9   Ban this user!
Old 02-12-2008, 03:45 PM
 
Join Date: Nov 2007
Location: United States
Posts: 8
John DiBernardo is on a distinguished road
Question Stepper motor power wiring

Thanks for all the help on the parallel port to driver interface connections.
Now that I have a harness built for the computer parallel port interface, I am ready to wire the motors to the drivers. I have two unipolar six wire 57BYGH405A and two CW260C drivers. The color code on the stepper motor is A=RED, C=GRN, B=YEL, D=BLU and black and white are the center taps for the coils. The drivers six connections on the power side are labeled: <DC70V/VCC, GND,A+, A-, B+,B-. Which wires from the driver go to which wires on the stepper motor?
http://www.cnczone.com/forums/images/icons/icon5.gif
Question
DiBo
Reply With Quote

  #10   Ban this user!
Old 06-01-2010, 09:19 AM
 
Join Date: Dec 2009
Location: usa
Posts: 46
dsnellen is on a distinguished road

Originally Posted by John DiBernardo View Post
Thanks for all the help on the parallel port to driver interface connections.
Now that I have a harness built for the computer parallel port interface, I am ready to wire the motors to the drivers. I have two unipolar six wire 57BYGH405A and two CW260C drivers. The color code on the stepper motor is A=RED, C=GRN, B=YEL, D=BLU and black and white are the center taps for the coils. The drivers six connections on the power side are labeled: <DC70V/VCC, GND,A+, A-, B+,B-. Which wires from the driver go to which wires on the stepper motor?
http://www.cnczone.com/forums/images/icons/icon5.gif
Question
DiBo
John,
Did you ever receive an answer to this question? I purchased a pair of 57BYGH405A steppers. My current steppers are eight wire with wires connected in pairs for a four wire configuration. Wondering how to seamlessly integrate the two types of steppers.

Dave
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interfacing to Fanuc Spindle Drive buckie555 Servo Motors and Drives 3 09-28-2008 07:17 PM
interfacing rhino ST6 lathe albert5 General CNC (Mill and Lathe) Control Software (NC) 0 01-08-2008 03:50 PM
Wanted DIY stepper driver circuit for 6 wire stepper motors Colin300 Australia, New Zealand Club house 5 09-20-2007 09:20 PM
stepper motors or servo motors? jprobst Torchmate 3 07-13-2007 05:37 PM
Makino Interfacing Professorwiz General CNC (Mill and Lathe) Control Software (NC) 3 07-22-2005 10:54 AM




All times are GMT -5. The time now is 10:58 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 354 355 356 357 358 359 360 361