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 07-13-2004, 03:11 AM
GrahamIT's Avatar  
Join Date: Jun 2004
Location: United Kingdom
Posts: 35
GrahamIT is on a distinguished road
Parallel Port Opto Isolation ???

Any electronic designer types here that can point me in the right direction for information to do with using opto-isolators with a parallel port, specifically for Mach1 and 2 software.

I'm trying to design my own breakout board and so far I think I'm doing a reasonable job, but really need this feature so as not to fry my works laptop, only I've not used optos before.
Reply With Quote

  #2   Ban this user!
Old 07-13-2004, 04:07 AM
 
Join Date: Apr 2004
Location: usa
Posts: 439
sendkeys is on a distinguished road

i remember seeing a schematic at embeddedtronics.com dont know how great it is.
Reply With Quote

  #3   Ban this user!
Old 07-13-2004, 11:52 AM
GrahamIT's Avatar  
Join Date: Jun 2004
Location: United Kingdom
Posts: 35
GrahamIT is on a distinguished road

Didn't look too promising, I'm in need of a little more detail really, thanks for trying though.
Reply With Quote

  #4   Ban this user!
Old 07-13-2004, 04:42 PM
 
Join Date: May 2003
Location: USA
Posts: 550
fyffe555 is on a distinguished road

Graham,

I've been playing around the same subject for a while (longer than I'll admit here ok so i'm hoping to learn something too) and here's a few things I think I've figured out. Hopefully people more in the know will be along shortly.

Most of the schematics available on the web, while they might look pretty, have nice colours etc, do have a few problems and I've not seen one I like. Given that an opto basically lights an led one side and so switches a gate on the other, the isolation is provided by the lack of electrical connectivity across the gate. Supposedly. The problems with some schematics I've seen is that even though they're using opto's they sometimes share a common gnd or 5v suppy to power both sides of the opto, or take the PC's PP 18-25 gnd pins right through to the drivers gnd.

If you're trusting the opto to break the electrical path then on each side you need a seperate gnd/5v supply on both sides as well as the connection to your input or output (lpt etc) to either take the state high or low depending on your need ( technically lousy english but hey).

You also need to consider the opto's characteristics for switching speed, but also V+ and ma necessary to light the led. Some might work directly from the parallel port, others might need a seperate 5v supply and you use the ports state to take the optos led high or low.

You also need to consider direction, some pins on the PP are bidirectional, some are in, some are out. Some sw uses pin 1 for input to an axis for example. Once you know which is which then what are you going to isolate? Everything? One way or bidirectional? Just inputs to the PP? Or outputs for Step and direction too? Outputs to relays?

If your drivers have opto's there's arguably no point in isolating 'upstream' of that. I wonder if the added opto might added switching time to the whole thing and so *might* cause some problems if you're at higher switchrates. Don't know if this is true or not, just a thought.

On the PC side you'd have to use power from the PC side to power the opto gate/led. On the driver side you need to power the gate/led from the driver side. Watch out when you're laying out the pullup/pulldown resistors to work out the switch state, one layout might take a PP high state and opto switch output result in a low. Watch out when laying out opto's with gates working in different directions.

My efforts so far with eagle haven't resulted in a board I would like to make! too complicated just opto isolating PP inputs and outputs to relay switches. The drivers I want to move to have optos so axis output opto in a breakout is unneccessary. I think.........

I'm still working mine out, have just sent a PM to someone here on the same subject in fact, so I'll be interested to see where it goes.
Reply With Quote

  #5  
Old 07-13-2004, 05:28 PM
Gold Member
 
Join Date: Sep 2003
Location: USA
Posts: 530
HillBilly is on a distinguished road

I've had good luck with this circuit.

Darek
Attached Thumbnails
Click image for larger version

Name:	boss45&6.jpg‎
Views:	742
Size:	39.5 KB
ID:	2787  
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-13-2004, 07:15 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Thats an excellent circuit. The only issue might be speed, don't run step rates any higher than 10khz.
Unless you goto a faster opto isolator.
Phil
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #7   Ban this user!
Old 07-15-2004, 01:27 PM
GrahamIT's Avatar  
Join Date: Jun 2004
Location: United Kingdom
Posts: 35
GrahamIT is on a distinguished road

That's more like it, though I thought opto's were rated in MHz not Khz range.

Thanks Hillbilly, gives me a good starting point to work from.
Reply With Quote

  #8   Ban this user!
Old 07-15-2004, 08:35 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

The typical propagation delay of the mct opto isolator is 50us on it's worst transition. Depending on how well they match up with each other, you maybe able to run faster. You will only know when you get your setup running. A couple of things you might consider is going to the 6N135 opto isolator for increased speed, you might also consider using a uln200x series driver to replace the 7407.

Phil
__________________
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 07-17-2004, 04:10 AM
GrahamIT's Avatar  
Join Date: Jun 2004
Location: United Kingdom
Posts: 35
GrahamIT is on a distinguished road

Do I need to worry about propagation delay in this instance, as it would be a constant and not have any effect on the motors performance unless the delay became longer than the step rate. I dont think this is going to happen as I'm only using full and half step drivers, maybe it would become a problem if I were to use microsteps though.
Reply With Quote

  #10   Ban this user!
Old 07-17-2004, 08:57 AM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

If each one was matched, but in reality they will vary and be within spec.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
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
DNC with parallel port (Bridgeport BOSS 5)? hobbymat General CAM Discussion 3 07-20-2009 11:16 AM
Parallel port circuit Kerri Ann General Electronics Discussion 12 03-19-2005 12:23 AM
Parallel Port Options JasonCroyle General Electronics Discussion 4 01-12-2005 07:23 AM
Parallel Port / Relay Control Question Verboten Computers and Networking 7 12-21-2004 04:17 PM
Parallel Port Shanghyd Computers and Networking 1 11-22-2004 11:56 AM




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