electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software
Optocoupler 6N138 in MIDI circuits - what do they do?
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [12 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Tue Dec 11, 2007 4:21 pm    Post subject: Optocoupler 6N138 in MIDI circuits - what do they do? Reply with quote  Mark this post and the followings unread

i know nothing about that so it is even hard for me to frame a question.

i find this optocoupler right after the midi input of thomas henry's GMvoice or a midi2cv converter.

what does it actually do? the datasheet says "digital logic ground isolation". what does that mean? does it delink the ground of the incoming signal from the circuits ground reference? what for?

what is the midi signal? a pulse? why has it to go thru this optocoupler?

i hope these questions make any sense...

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Danno Gee Ray



Joined: Sep 25, 2005
Posts: 1351
Location: Telford, PA USA

PostPosted: Tue Dec 11, 2007 4:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

I'm not an engineer, but I'll give a go at my take on this.

The optoisolator serves to transfer ONLY the data of the midi signal intom the circuit. By transfering the data as an optical signal, none of the attendant characteristics of usual circuits come along with the signal. Impedence matches / mismatches, loading, capacitances, and all the other minutae of circuits getting lovey dovey with each other apply. Each circuit can do it's own thing withoput interference from the other. ONLY the data is shared.
Back to top
View user's profile Send private message
para



Joined: Oct 16, 2006
Posts: 276

PostPosted: Tue Dec 11, 2007 5:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

its just a switch that you can use to isolate the two half’s of the circuit.


steven
Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24669
Location: The Netherlands, Enschede
Audio files: 330
G2 patch files: 320

PostPosted: Tue Dec 11, 2007 5:48 pm    Post subject: Re: Optocoupler 6N138 in MIDI circuits - what do they do? Reply with quote  Mark this post and the followings unread

fonik wrote:
"digital logic ground isolation"


That part is the key actually, isolating the ground circuits from sender and receiver helps to avoid ground loops. MIDI is a pulsed (digital) signal indeed and when any bit of the MIDI signal gets into an audio related ground loop you'll get some very nasty sound from it (due to the sharp signal edges).

Now if only the USB people would have been that smart Very Happy

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
9 3 4 .. erm .. not 13 then? .. hmm, ah eight! .. yeah yeah as in 8647 .. 47 is an 88 .. pwew .. numbles!
Back to top
View user's profile Send private message Visit poster's website
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Wed Dec 12, 2007 2:36 am    Post subject: Reply with quote  Mark this post and the followings unread

thanks for the replies, guys. appreciated. now i got the idea.
_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Wed Dec 12, 2007 6:42 am    Post subject: Reply with quote  Mark this post and the followings unread

A MIDI serial link is a current loop. Unlike RS232 which uses voltage to represent the bit states, a current loop uses current on and current off for bit states. The 6N138 input LED becomes part of the current loop. When current flows, the LED lights and illuminates the phototransistor. The circuitry on the phototransistor side then generates a TTL logic level that represents the bit states. This logic level can then be routed to a TTL UART or the UART input to a small MCU or in my case, it goes to an FPGA pin. From there, it's all magic.
Back to top
View user's profile Send private message Visit poster's website
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Wed Dec 12, 2007 7:06 am    Post subject: Reply with quote  Mark this post and the followings unread

ScottG wrote:
From there, it's all magic.

Laughing Wink

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
EdisonRex
Site Admin


Joined: Mar 07, 2007
Posts: 4579
Location: London, UK
Audio files: 172

PostPosted: Wed Dec 12, 2007 9:58 am    Post subject: Reply with quote  Mark this post and the followings unread

ScottG wrote:
A MIDI serial link is a current loop. Unlike RS232 which uses voltage to represent the bit states, a current loop uses current on and current off for bit states. The 6N138 input LED becomes part of the current loop. When current flows, the LED lights and illuminates the phototransistor. The circuitry on the phototransistor side then generates a TTL logic level that represents the bit states. This logic level can then be routed to a TTL UART or the UART input to a small MCU or in my case, it goes to an FPGA pin. From there, it's all magic.


This was one of the little brilliant things that Dave Smith and the rest of the MIDI group did, as it removes ground loops from the equation, as well as much RFI. Can you imagine how many problems we'd have with ground loops in a MIDI studio or live rig otherwise?

_________________
Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.


Home,My Studio,and another view
Back to top
View user's profile Send private message Visit poster's website
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Wed Dec 12, 2007 10:36 am    Post subject: Reply with quote  Mark this post and the followings unread

EdisonRex wrote:
This was one of the little brilliant things that Dave Smith and the rest of the MIDI group did, as it removes ground loops from the equation, as well as much RFI. Can you imagine how many problems we'd have with ground loops in a MIDI studio or live rig otherwise?
I think I read somewhere it was Tom Oberheim who suggested an optocoupled signal.
Back to top
View user's profile Send private message
EdisonRex
Site Admin


Joined: Mar 07, 2007
Posts: 4579
Location: London, UK
Audio files: 172

PostPosted: Wed Dec 12, 2007 11:53 am    Post subject: Reply with quote  Mark this post and the followings unread

urbanscallywag wrote:
EdisonRex wrote:
This was one of the little brilliant things that Dave Smith and the rest of the MIDI group did, as it removes ground loops from the equation, as well as much RFI. Can you imagine how many problems we'd have with ground loops in a MIDI studio or live rig otherwise?
I think I read somewhere it was Tom Oberheim who suggested an optocoupled signal.


Phil Dodds (ex-ARP, then-CBS) has taken credit for the idea as well (as well as velocity in MIDI). You might have read one of the many articles in Mix, SOS, etc. Dave Smith, Tom Oberheim and Ikutaro Kakehashi were the original proponents, but they were not the only contributors. As it is, MIDI-DIN is still a quirky protocol, but it has outlived the 3.5" floppy disk, so I guess it's not all that bad. Wink

_________________
Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.


Home,My Studio,and another view
Back to top
View user's profile Send private message Visit poster's website
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Wed Dec 12, 2007 11:55 am    Post subject: Reply with quote  Mark this post and the followings unread

Interesting. I searched around and couldn't find where I read about Oberheim...
Back to top
View user's profile Send private message
EdisonRex
Site Admin


Joined: Mar 07, 2007
Posts: 4579
Location: London, UK
Audio files: 172

PostPosted: Wed Dec 12, 2007 1:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

here's a weak reference
_________________
Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.


Home,My Studio,and another view
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [12 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use