CNCzone.com-The Largest Machinist Community on the net!


Welcome to the CNCzone.com-The Largest Machinist Community on the net! forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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

Notices

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


Reply
 
Thread Tools Display Modes
  #1   Ban this user!
Old 07-13-2004, 03:11 AM
GrahamIT's Avatar
GrahamIT GrahamIT is offline
 
Join Date: Jun 2004
Location: United Kingdom
Posts: 31
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
sendkeys sendkeys is offline
 
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
GrahamIT GrahamIT is offline
 
Join Date: Jun 2004
Location: United Kingdom
Posts: 31
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
fyffe555 fyffe555 is offline
 
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
HillBilly HillBilly is offline
Gold Member
 
Join Date: Sep 2003
Location: USA
Posts: 520
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:	628
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
pminmo pminmo is offline
 
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 57
Posts: 3,297
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
GrahamIT GrahamIT is offline
 
Join Date: Jun 2004
Location: United Kingdom
Posts: 31
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
pminmo pminmo is offline
 
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 57
Posts: 3,297
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
GrahamIT GrahamIT is offline
 
Join Date: Jun 2004
Location: United Kingdom
Posts: 31
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
pminmo pminmo is offline
 
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 57
Posts: 3,297
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

Bookmarks




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

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 03:31 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.