Page 1 of 2 12 LastLast
Results 1 to 12 of 19

Thread: Optical interface for 3,3V and 5V

  1. #1
    Registered
    Join Date
    Jan 2006
    Location
    BRAZIL
    Posts
    38
    Downloads
    0
    Uploads
    0

    Optical interface for 3,3V and 5V

    Hello all,

    I want to build an simple interface for my CNC, only step and direction, but must be opto isolated and able to work with 3.3 V and 5V.

    For the opto part I'm using the 6N137, but I do not know how to do the interface for the 3,3V (for use with the laptop) and the 5V (for use with the desktop.)

    Do you have any suggestions?

    thanks in advance for your help


  2. #2
    Registered pminmo's Avatar
    Join Date
    Jun 2003
    Location
    St. Peters, Mo USA
    Posts
    3,325
    Downloads
    0
    Uploads
    0
    The 6n137 can be driven directly by 3.3V logic with a 220 ohm resistor in series with the emitter diode on a parallel port pins 2 through 9 of the db25, the control output pins are the issue (1,14,16,17) as in many computers the don't have much power to source current. In that instance you probably will have to provide an isolated supply voltage for a resistive pullup to 3.3V or 5V depending on the computer. Now, you say 3.3V, there is a lot of confusion about laptops. Actually many laptops aren't 3.3V logic on their parallel port when they are powered by AC power. And you will find many older destops, that only put out 3.3V in the HI state. The 1284 spec for parallel ports wether laptop or desktop, specifies output highs as 2.4V or higher into certain loads. If the laptop says its 1284, then it will work the same as most desktops. Laptop issues many times are incorrectly diagnosed as being a port problem, when in fact it's automatic CPU power saving changing timing.
    Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
    Vist my websites - http://pminmo.com & http://millpcbs.com


  3. #3
    Registered
    Join Date
    Jan 2006
    Location
    BRAZIL
    Posts
    38
    Downloads
    0
    Uploads
    0
    Thank you Phil,

    I'm looking for some kind of CI which may be a driver for such problems and I do not know any CI with this characteristics.

    What would be the best way to try solve this problem?


  4. #4
    Registered pminmo's Avatar
    Join Date
    Jun 2003
    Location
    St. Peters, Mo USA
    Posts
    3,325
    Downloads
    0
    Uploads
    0
    Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
    Vist my websites - http://pminmo.com & http://millpcbs.com


  • #5
    Gold Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    2,782
    Downloads
    0
    Uploads
    0
    My suggestion would be the attached thumbnail. This circuit works with any standard logic level (2.5V, 3.3V and 5V logic) and easily passes 0 to 500 kHz signals. Only 2.2mA of LED drive current is needed.

    Mariss
    Attached Images Attached Images


  • #6
    Registered
    Join Date
    Jan 2006
    Location
    BRAZIL
    Posts
    38
    Downloads
    0
    Uploads
    0
    Thank you very much Phill,

    this is more that I need, but in the schematics there is nothing saying if the circuit can work with laptops and Desktops.


  • #7
    Registered
    Join Date
    Jan 2006
    Location
    BRAZIL
    Posts
    38
    Downloads
    0
    Uploads
    0
    Mariss,

    This is exactly what I need, simple circuit, If the circuit works, my problems are solved.

    I will test with the 6N137 beacuse here is very dificult to have the HCPL).

    Thank you very much for your attention.


  • #8
    Gold Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    2,782
    Downloads
    0
    Uploads
    0
    Cristal

    You cannot use the 6N137 in my circuit because it's not a photodiode/transistor device. The 6N137 uses an IC amplifier in its internal circuitry. You can use a 6N136 instead of the HCPL-2531.

    Mariss


  • #9
    Registered
    Join Date
    Jan 2006
    Location
    BRAZIL
    Posts
    38
    Downloads
    0
    Uploads
    0
    Ok Mariss, thank you again for your tip.

    The 6N136 is easy to find here.


  • #10
    Registered
    Join Date
    Mar 2010
    Location
    Canada
    Posts
    8
    Downloads
    0
    Uploads
    0

    Related 3,3V to 5V Optoisolator 6n137

    Greetings. In my quest to find a circuit to isolate a PIC 3.3v output to the 5V input of an H-bridge driver (LMD18200) I stumbled upon this post. The circuit in the thumbnail looks close to what I need but I'm a bit confused by it. Can I not just use a couple of resistors and two suplly voltages to do this with a 6N137 ? Thanks.


  • #11
    Gold Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    2,782
    Downloads
    0
    Uploads
    0
    The 6N137 is waaaaay too slooooow.:-)

    You are sending fast signals to the motor drive. You cannot afford the 10 to 50 microseconds it takes the 6N137 to figure out what it should do.

    Mariss


  • #12
    Registered
    Join Date
    Mar 2010
    Location
    Canada
    Posts
    8
    Downloads
    0
    Uploads
    0

    Specs & More Info

    Sorry, I forgot to add that I'm running a PWM at a frequency of 40 khz. According to a book I'm using, Building Robot Drive Trains, the 6N137 has a rise time of 50ns and a fall time of 12 nS. I couldn't decipher the Fairchild data sheet
    for these specs. My PWM period is 25 uS, so I thought I'd be safe. Can you elaborate on where/how it would be too slow ? Thanks for your time and effort in responding.


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Need Help!- Optical tracer
      By kirkln in forum General Waterjet
      Replies: 8
      Last Post: 04-25-2008, 08:31 AM
    2. My New Optical Toy
      By Micro Rotors in forum Benchtop Machines
      Replies: 58
      Last Post: 03-01-2008, 10:45 AM
    3. Anyone have a Sprint 200 CNC optical?
      By dmcool in forum Calibration and Measurement
      Replies: 0
      Last Post: 02-11-2008, 12:58 PM
    4. Help with optical scales
      By edbanks in forum General Electronics Discussion
      Replies: 3
      Last Post: 04-12-2007, 03:25 PM
    5. Optical Limits
      By JOE65 in forum Industrial Hobbies (Support forum)
      Replies: 1
      Last Post: 03-21-2006, 11:06 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.