Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: 3.3v supply to opto-isolator

  1. #1

    3.3v supply to opto-isolator

    Hi all

    Having a few slight issues sending a signal to a 6n137 opto-isolator.

    I 'think' this is the issue anyway. I am using a 3.3v high signal to drive it and I don't think it is switching on properly.

    This same circuit (it is an assembled pcb) works fine at 5v, but I am having troubles with the lower voltage.

    The original circuit I found online (can't find it now), fed the opto-isolator led with a 470r Resistor. I dropped that to 100r and found it worked much better (at 5v).

    I don't exactly understand how to calculate the correct value to work on 3.3v. I would have thought 100r would be fine, but in frustration the other evening I tried a 47r and it still didn't work (but it work sporadically).

    Can someone look at the 6n137 datasheet and explain to Mr Thick here how to calculate the correct resistor value please.

    https://docs.rs-online.com/9a25/0900766b80de4953.pdf

    Thank you

  2. #2
    Senior Member
    Join Date
    Apr 2020
    Location
    DFW area in Texas
    Posts
    661
    Quote Originally Posted by SteveCS View Post
    Hi all

    Having a few slight issues sending a signal to a 6n137 opto-isolator.

    I 'think' this is the issue anyway. I am using a 3.3v high signal to drive it and I don't think it is switching on properly.

    This same circuit (it is an assembled pcb) works fine at 5v, but I am having troubles with the lower voltage.

    The original circuit I found online (can't find it now), fed the opto-isolator led with a 470r Resistor. I dropped that to 100r and found it worked much better (at 5v).

    I don't exactly understand how to calculate the correct value to work on 3.3v. I would have thought 100r would be fine, but in frustration the other evening I tried a 47r and it still didn't work (but it work sporadically).

    Can someone look at the 6n137 datasheet and explain to Mr Thick here how to calculate the correct resistor value please.

    https://docs.rs-online.com/9a25/0900766b80de4953.pdf

    Thank you
    SteveCS:

    Searching the forum for 6n137 finds several threads, including <this thread>, which appears to describe a successful implementation with the 6N137.

    Hope that helps...

    Mark J Culross
    KD5RXT

  3. #3
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    1,390
    The data sheet says it needs a current of 5mA to turn it on. The Teensy is rated at 4mA which could be your problem.

  4. #4
    Ah... that is a pain.
    Got an ESP32 here... wonder what the output current of those pins is.

    40mA max by the looks. Maybe I should try that

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •