DIYstompboxes.com

DIY Stompboxes => Building your own stompbox => Topic started by: spoontex on April 27, 2020, 12:40:23 PM

Title: Optocoupler bypass
Post by: spoontex on April 27, 2020, 12:40:23 PM
Hello,

I can use the PC817 from Sharp instead a TLP222G, for a optical bypass?

Thanks!

(https://i.postimg.cc/8jTtvsLZ/Screenshot-20200427-183946.png) (https://postimg.cc/8jTtvsLZ)
Title: Re: Optocoupler bypass
Post by: R.G. on April 27, 2020, 02:21:25 PM
Not in the way you're thinking, no.
The PC817 output side is a bipolar transistor. These can be used for switching analog signals, but it is complicated. Bipolars are much like diodes when fully turned on, so they are hard to apply well for signals greater than 25-50 millivolts.

The TLP222 is a MOSFET output. MOSFETs are resistances when fully turned on. They do volts of signal OK, with simple LED drive.
Title: Re: Optocoupler bypass
Post by: spoontex on April 27, 2020, 02:50:33 PM
You are right... I didn't look correctly.

:icon_redface: :icon_redface:



Thanks for reply R.G.!!
Title: Re: Optocoupler bypass
Post by: R.G. on April 27, 2020, 06:27:49 PM
No problem. We all learn.

Ah, you notice I didn't say just HOW I learned that.  :icon_biggrin:
Title: Re: Optocoupler bypass
Post by: spoontex on June 09, 2020, 12:04:59 PM
I've build the optocoupler bypass, but didn't work.

When it's bypassed I have continuity between IN and OUT pads. But when it's engaged I have 30 ohms between IN and FX in  pads.

Anyone can help me with this?

Thanks.



(https://i.postimg.cc/w7vHGLk0/Sin-nombre.jpg) (https://postimg.cc/w7vHGLk0)
Title: Re: Optocoupler bypass
Post by: marcelomd on June 09, 2020, 01:55:47 PM
Hi,
Just a quick check: Check the voltage on the optocoupler LED.
Maaaybe the optocoupler LED is not turning on hard enough because of the resistor and LED voltage drops.
Title: Re: Optocoupler bypass
Post by: imJonWain on June 09, 2020, 03:11:05 PM
+1 what he said.  You're only allowing ~2.9mA through the diode.  The datasheet says 5mA min for on and recommends 7.5mA.

If Vcc is 9V
Forward Voltage of the TLP222A = ~1.2V
Your LED = ~1.5V
LED R = 2.2K

(9V - 1.2V - 1.5V) / 2200r = 2.9mA
Title: Re: Optocoupler bypass
Post by: spoontex on June 10, 2020, 02:50:00 AM
Thanks for the replies.

I checked the datasheet:

Trigger LED current: 3 mA (max)
On-state resistance: 35 Ω (max, t < 1 s)
On-state resistance: 50 Ω (max, continuous)

So, with 9v and 2k2 resistor is right, this is more or less 2.9mA.

And 30 ohms, more or less is right.

I made the mistake to check  continuity, and I never get " physical " continuity between pins 3 and 4... I always get a low resistance.

So, I mount the bypass and test with audio and it works.
Title: Re: Optocoupler bypass
Post by: imJonWain on June 10, 2020, 10:09:27 AM
Nice!  You can probably go over 3mA if you want.  I know it says 3mA at the top of the datasheet but says otherwise further down.  You should be able to get R-on to 1ohm or so.