USB and optoisolator (6N137)

Author
rinandrew
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2005/09/09 11:07:49
  • Location: Italy
  • Status: offline
2006/02/20 07:58:25 (permalink)
0

USB and optoisolator (6N137)

Hi !
I'm using a small EKG device connected to a 18F4550 microcontroller, to send EKG data to a PC with an USB interface. Due to security reasons the PIC and the PC have to be eletrically separated by an optoisolatior.
I have 2 6N137 optoisolators, but I cannot find a schematic to connect them to the USB bus. Can anyone help me ?
 
Andrew
#1

15 Replies Related Threads

    kalpak
    Super Member
    • Total Posts : 3265
    • Reward points : 0
    • Joined: 2004/03/12 23:01:40
    • Location: India
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/02/20 08:29:20 (permalink)
    0
    USB is bidirectional bus. You cannot just stick in a couple of optos and get isolation. You need bidirectional data transfering isolation.
    #2
    rinandrew
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2005/09/09 11:07:49
    • Location: Italy
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/02/20 08:48:15 (permalink)
    0
    Hi Kalpak,
    thank you for your information. Have you any suggestion on how isolate the USB bus ? I cannot find nothing about it.
     
    Andrew
    #3
    nex
    Starting Member
    • Total Posts : 53
    • Reward points : 0
    • Joined: 2005/06/25 09:54:06
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/02/20 09:09:40 (permalink)
    0
      Hi,
     
     You should make the separation between EKG sensors and PIC. I'm curious, what kind of sensors do you use ?
     
     Cheers !
    #4
    kalpak
    Super Member
    • Total Posts : 3265
    • Reward points : 0
    • Joined: 2004/03/12 23:01:40
    • Location: India
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/02/20 09:35:46 (permalink)
    0
    B&B electronics has isolated USB hub:
    http://www.bb-europe.com/product.asp?SKU=UISOHUB4
    #5
    rinandrew
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2005/09/09 11:07:49
    • Location: Italy
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/02/20 13:05:32 (permalink)
    0
    Thank you for your help !
    The isolated USB hub is to expensive for my low budget.
    However the EKG sensor is connected to a dsPIC (30F3012), that communicates with the 18F4550 through a SPI bus. The SPI bus seems easy to isolate with optoisolators.
     
    Andrew
    #6
    msc41
    Junior Member
    • Total Posts : 104
    • Reward points : 0
    • Joined: 2004/06/30 09:22:48
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/03/04 15:24:07 (permalink)
    0
    I designed a similar device, what I ended up doing was to use a IL717 spi optical isolator and isolate an external ADC away from the the USB powersupply. Hope this helps.
    Mat


    http://www.piccoder.co.uk
    where everyone can upload and share pic code/ideas.
    #7
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: USB and optoisolator (6N137) 2006/03/04 15:49:32 (permalink)
    0
    What I do on my EMG systems is to isolate the analog signal that comes from the EMG preamplifiers. I use very low power preamps, and get a 3500VDC isolation. The problem with isolation is that you need to use a isolated power supply to feed the circuitry on the patient side, and it is really not trivial to get FDA specs isolated power supplies, so the amount of circuitry you can place at the isolated side is small.
     
    What power supply are you using for the isolated section?
    #8
    msc41
    Junior Member
    • Total Posts : 104
    • Reward points : 0
    • Joined: 2004/06/30 09:22:48
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/03/05 05:10:36 (permalink)
    0
    I'm currently running off a standard 9V battery, the life is pretty good, not fantastic, but im not drawing much more 15mA, have to confess its still a work in progress so battery life still needs investigating fully, but at the moment it is adequate for my purposes. Mat

    http://www.piccoder.co.uk
    where everyone can upload and share pic code/ideas.
    #9
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: USB and optoisolator (6N137) 2006/03/05 08:32:32 (permalink)
    0
    Optocouplers have limited bandwidth.
    The USB interface runs above 1MHz.
     
    I would not use optical coupling above 200-300KHz, escpecially if the human body was involved.
    Also they are prone to optical ageing, which alters specs.
     
    Try to design isolation circuitry around parts like TI ISO150, ISO721, Analog Devices ADUM1100. These have response times 2-3 orders of magnitude faster than opticals, and cost about the same as the best optos.
     
    I would not implement the isolation barrier in the analog domain. Do it in digital, it's more reliable. With the above parts, you have no choice, they are digital only.
     
    Andy
     
    #10
    davidcary
    Starting Member
    • Total Posts : 36
    • Reward points : 0
    • Joined: 2005/09/12 09:21:35
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/03/21 16:29:27 (permalink)
    0
    I agree with funberry's recommendation to implement the isolation barrier in the digital domain.

    I don't understand what the point of saying "Optocouplers have limited bandwidth." Doesn't everything have limited bandwidth? Please tell me about *anything* that has unlimited bandwidth.
    • 6N137: 10Mbaud
    • HCPL-060L: 15 Mbaud
    There is such a thing as a bi-directional isolator .

    --
    David
    #11
    lbodnar
    Super Member
    • Total Posts : 1148
    • Reward points : 0
    • Joined: 2005/12/18 06:06:09
    • Location: UK
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/03/22 04:39:54 (permalink)
    0
    Doesn't everything have limited bandwidth? Please tell me about *anything* that has unlimited bandwidth.

    Illusions and confusions.

    Leo
    #12
    davidcary
    Starting Member
    • Total Posts : 36
    • Reward points : 0
    • Joined: 2005/09/12 09:21:35
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/03/23 19:38:50 (permalink)
    0
    rinandrew mentioned:
    However the EKG sensor is connected to a dsPIC (30F3012), that communicates with the 18F4550 through a SPI bus. The SPI bus seems easy to isolate with optoisolators.


    I am working on a similar project.
    At the moment my napkin-sketch of the signal chain looks something like this:

    Several copies of
    * standard EKG contact electrodes and contact gel
    * instrumentation amp on top of the electrodes -- INA2126 or INA163
    * MCP3208 (8 input, 12 bit, 100 kS/s ADC)(probably overkill)
    * "small" microcontroller, barely smart enough to forward the data from the ADC to the "big" microcontroller.

    One copy of:
    * "big" microcontroller
    * batteries
    * 4 Mbps IrDA transciever
    * 4 Mbps IrDA-to-USB dongle
    * desktop/laptop computer

    I see that the dsPIC30F3012 includes a ADC (8 input, 12 bit, 100 kS/s ADC), exactly equivalent to a MCP3208.
    So I could easily use it to replace the MCP3208 + "small" microcontroller.

    What advantages do you see to the dsPIC in this application?
    To me, the biggest disadvantage to the dsPIC is that its data sheet still has "Preliminary" stamped all over it.
    I'd be willing to overlook that if it gave me some other significant advantage.

    The batteries and the IrDA transcievers give me plenty of isolation between the desktop/laptop computer and the EKG electrodes.
    Is there any reason to add more isolation between each ADC and the "small" microcontroller, or between each "small" microcontroller and the power/data cable that connects it to the "big" microcontroller?

    --
    David

    http://openeeg.sourceforge.net/
    http://wiki.asiaquake.org/openeeg/published/

    #13
    plugwash
    Super Member
    • Total Posts : 332
    • Reward points : 0
    • Joined: 2006/04/07 13:45:54
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/04/07 14:08:13 (permalink)
    0
    if you look in the datasheets for the pic you will notice they support an external usb tranciever and the lines to that can all be opto-isolated afaict.
    #14
    kalpak
    Super Member
    • Total Posts : 3265
    • Reward points : 0
    • Joined: 2004/03/12 23:01:40
    • Location: India
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/04/07 18:42:46 (permalink)
    0
    Do you have a simple scheme for optoisolating the USB?
    #15
    plugwash
    Super Member
    • Total Posts : 332
    • Reward points : 0
    • Joined: 2006/04/07 13:45:54
    • Status: offline
    RE: USB and optoisolator (6N137) 2006/04/08 09:28:42 (permalink)
    0
    there is a basic block diagram in the bottom right of page 165 of the datasheet. I haven't needed isolated usb myself so i dunno how hard it is to actually develop that into a working circuit.
    #16
    Jump to:
    © 2018 APG vNext Commercial Version 4.5