Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Optocoupler output too low?

Status
Not open for further replies.

rexxar

Newbie level 1
Joined
Jul 5, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,289
Hey, I'm trying to make a MIDI/joystick port cable, with this schematic > http://web.singnet.com.sg/~lau0cy/pc_midi.gif

I can send MIDI events to my keyboard just fine, but I can't receive. I didn't have the optocoupler in the schematic, so I pulled an LTV4N35 off of an old pci modem to use instead. What do I need to do to get this working?
 

mister_rf

Advanced Member level 5
Joined
Feb 26, 2008
Messages
1,874
Helped
1,039
Reputation
2,086
Reaction score
953
Trophy points
1,393
Location
Romania
Activity points
11,528
Did you change the original diagram?
Have you check de polarity for D1 diode and the pinout for LTV4N35 in the circuit ?
 

BradtheRad

Super Moderator
Staff member
Joined
Apr 1, 2011
Messages
13,730
Helped
2,718
Reputation
5,432
Reaction score
2,634
Trophy points
1,393
Location
Minneapolis, Minnesota, USA
Activity points
102,462
1.

Did you verify current is flowing through the internal LED? Averaging 5-10 mA?

2.

Does your device need the same value, or a different value resistor at the transistor collector? A higher value is worth a try. Just in case there's reduced efficiency of operation in the optocoupler.

You need to verify that pin 6 (or your device's corresponding output pin) is alternating between hi and low V level.

3.

I see the schematic shows a pin (#7) connected to the base of the output transistor. It looks like a convenient place to apply a test signal to the base?

Does your device have any such pin? That would let you confirm operation in some way.

For instance, send positive supply V through a 3300 ohm resistor to the test pin. That should turn on the transistor sufficiently to pull the output low at pin 6 (or your optocoupler's corresponding output pin).

4.

Is there a chance your pin 15 (on the DB9) needs to be pulled high instead of low, and vice-versa? In other words, to reverse the phase?
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
47,652
Helped
14,075
Reputation
28,407
Reaction score
12,742
Trophy points
1,393
Location
Bochum, Germany
Activity points
276,859
I didn't have the optocoupler in the schematic, so I pulled an LTV4N35 off of an old pci modem to use instead.
There is a thing called datasheet. You'll realize, that 4N35 is specified with CTR > 100%, which is quite reasonable for a standard opto coupler, the original type is however a darlington OC which a much higher CTR. Unfortunately the circuit requires a high CTR of e.g. > 300 %. You possibly can fix the problem by changing R1 to 680R - 1K, but it also depends on the circuit behind the 15-pin MIDI port.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top