Author Topic: 6N137 low output  (Read 5040 times)

0 Members and 1 Guest are viewing this topic.

Offline ltouristTopic starter

  • Contributor
  • Posts: 19
6N137 low output
« on: June 24, 2015, 09:20:07 pm »
Hi there,

I'm building a MIDI enabled device. The first prototype worked very nice, so I went on and build the second iteration that corrects all sort of mistakes on it. That time, the MIDI signal is not pickup and after some digging, I've found that the ouput of the 6N137 optocoupler was very low and "dirty" compared to the first iteration. Moreover, the signal low is not always at the same level. I'm wondering if anyone can provide any advice where to look for ? Could it be the 6N137 itself that could be failing ? :-//

I've attached two screenshots from my oscilloscope. Channel one is the 6N137 input, channel 3 the ouput.

Also, I've attached the schematics used for MIDI I/O, based on that page. Although there is some difference, that wiring has always worked through all the development stages and on the first prototype without a glitch.

Thanks,
LTourist
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: 6N137 low output
« Reply #1 on: June 24, 2015, 09:31:21 pm »
For a start you need to connect pin 7 of the 6N137 to Vcc ( pin 8 ).
 

Offline ltouristTopic starter

  • Contributor
  • Posts: 19
Re: 6N137 low output
« Reply #2 on: June 24, 2015, 09:40:10 pm »
Thanks. I can jumpwire that  ;D. But according to the datasheet on page 2, that would limit "Input Voltage Not to Exceed VCC by more than 500mV". As I understand it, it can offers some extra protection against voltage spike, is that corrent ?
« Last Edit: June 24, 2015, 09:44:04 pm by ltourist »
 

Tac Eht Xilef

  • Guest
Re: 6N137 low output
« Reply #3 on: June 25, 2015, 01:43:31 am »
Thanks. I can jumpwire that  ;D. But according to the datasheet on page 2, that would limit "Input Voltage Not to Exceed VCC by more than 500mV". As I understand it, it can offers some extra protection against voltage spike, is that corrent ?

It's a little odd that VE is specified in the "Emitter" section - I'd suspect that placement is an error. However, that table is also the Absolute Maximum Ratings, so you need to read it in conjuction with the Recommended Operating Conditions table below.

I guess what they're trying to get at is that VE should not exceed VCC+500mV, with an absolute maximum limit of 5.5v.

It's not for spike protection - VE is  an 'output enable' signal; check the truth table on page 1. Though don't check it too closely, since it kinda suggests that leaving it NC is the same as pulling it high. That's bad practice since it can be prone to picking up noise, which leads to the kind of symptoms you're seeing.
 

Offline ltouristTopic starter

  • Contributor
  • Posts: 19
Re: 6N137 low output
« Reply #4 on: June 25, 2015, 11:41:14 am »
Thanks for the clarification. I've obsviouly read that document way too quickly, putting the context of that statement away, sorry. :palm: Indeed I checked that table a while ago during the breadboard stage and the fact that NC has the same truth table as pulling Ve high might explain why I didn't wire that pin 7. Can't remember, it's been a while.

Now I can understand why I'm getting that noisy signal. But the fact that the first prototype doesn't produce any noise worries me as it could mean that my second design is worse than the first attempt on that point.

Anyway, I'll try to fix it tonight and keep you posted with the results.
Thanks to the both of you :)
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: 6N137 low output
« Reply #5 on: June 25, 2015, 12:02:50 pm »
Different layout, leakage currents or just a different brand of opto can make enough difference sometimes.
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6460
  • Country: nl
Re: 6N137 low output
« Reply #6 on: June 25, 2015, 12:17:19 pm »
If you look at both input and output of an optocoupler with a scope what is your reference ground?  :-//
If on the secondary side Vcc to Vss is 5V then just and only connect one probe correctly to the output of the optocoupler and look again, probably looks very good  ;)
« Last Edit: June 25, 2015, 12:20:19 pm by Kjelt »
 

Offline ltouristTopic starter

  • Contributor
  • Posts: 19
Re: 6N137 low output
« Reply #7 on: June 25, 2015, 07:00:18 pm »
Different layout, leakage currents or just a different brand of opto can make enough difference sometimes.
That's what worrying me. It is a different layout.
If you look at both input and output of an optocoupler with a scope what is your reference ground?  :-//
That's a very good point I didn't think about until now. But as you said, Vss = Vcc here.
Anyway, I'll try to wire up Ve to Vcc and come back to you  :popcorn:
 

Offline ltouristTopic starter

  • Contributor
  • Posts: 19
[SOLVED] Re: 6N137 low output
« Reply #8 on: June 25, 2015, 07:28:04 pm »
Wiring Ve to Vcc totally did it ! See the attached picture  :scared:
Thanks a lot for helping out and the explanations !
 

Offline LukeW

  • Frequent Contributor
  • **
  • Posts: 686
Re: 6N137 low output
« Reply #9 on: June 25, 2015, 08:35:58 pm »
I've had successful results leaving the 6N137 enable signal unconnected before - but as pointed out above, it's not perfect in terms of noise immunity. Not sure if it has some sort of internal pullup or how strong that is.
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: 6N137 low output
« Reply #10 on: June 25, 2015, 08:58:13 pm »
Do you have the required 100nf capacitor between pins 4 and 8 of the 6N137?  Is is nice and close to the chip?
 

Offline ltouristTopic starter

  • Contributor
  • Posts: 19
Re: 6N137 low output
« Reply #11 on: June 25, 2015, 10:04:49 pm »
Do you have the required 100nf capacitor between pins 4 and 8 of the 6N137?  Is is nice and close to the chip?

Yes I do, right next to it :)

I've had successful results leaving the 6N137 enable signal unconnected before - but as pointed out above, it's not perfect in terms of noise immunity. Not sure if it has some sort of internal pullup or how strong that is.

That's also my case in a previous device I built, on the breadboard and on the first prototype. That's why I've never took care of that Venable before  :-//
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: 6N137 low output
« Reply #12 on: June 26, 2015, 12:16:40 am »
I've always connected pin 7 to Vcc, even though the 2 data sheets I checked show it as optional.  The TI data sheet mentions it specifically ("has internal pullup").

Maybe there are other brands (or copies) out there that don't have the pullup ?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf