Author Topic: Optocoupler - wide input voltage range  (Read 5781 times)

0 Members and 1 Guest are viewing this topic.

Offline PeLaTopic starter

  • Contributor
  • Posts: 38
  • Country: gb
Optocoupler - wide input voltage range
« on: January 07, 2021, 10:02:27 am »
Hi everyone,

I am hoping that one of you can help me with something that I initially thought would be quite simple... but then found out that it's not... for me.
I have an optocoupler that receives a signal from a sensor and forwards it to a microcontroller.
I would like to connect different sensors with a relatively wide range of signal voltages (3.3V - 24V).
Therefore, the optocoupler should turn on at sensor Voltages above 3.3V. The maximum sensor Voltage is 24V.
The LED in the optocoupler has an absolute maximum forward current rating of 60mA. 2mA is enough to reliably turn it on.

This is the optocoupler: https://www.vishay.com/docs/84181/tcmt4100.pdf

Ideally, I'd like to keep the component count to a minimum and make it work over a temperature range between 20 and 60C.

If you have any ideas, I'd be all ears!

Best regards,
Pete
 

Offline DC1MC

  • Super Contributor
  • ***
  • Posts: 1882
  • Country: de
Re: Optocoupler - wide input voltage range
« Reply #1 on: January 07, 2021, 10:12:27 am »
Put a resistor in series that gives you the smallest current to trigger it reliably at 3V3, let's say 2mA, at 24V it should not produce more than 50mA.
Ca. 800ohms should be OK.

DC1MC
« Last Edit: January 07, 2021, 10:15:15 am by DC1MC »
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 5882
  • Country: de
Re: Optocoupler - wide input voltage range
« Reply #2 on: January 07, 2021, 10:25:32 am »
Use a current regulating diode:

http://www.linearsystems.com/lsdata/datasheets/J500_J501_J502_J503_J504_J505_J506_J507_J508_J509_J510_J511_Current_Regulator_Diode.pdf

You can also make one yourself using a JFET.

Doesn't get any simpler.

 

Offline DC1MC

  • Super Contributor
  • ***
  • Posts: 1882
  • Country: de
Re: Optocoupler - wide input voltage range
« Reply #3 on: January 07, 2021, 10:46:45 am »
Use a current regulating diode:

http://www.linearsystems.com/lsdata/datasheets/J500_J501_J502_J503_J504_J505_J506_J507_J508_J509_J510_J511_Current_Regulator_Diode.pdf

You can also make one yourself using a JFET.

Doesn't get any simpler.

I would say a resistor in series is simpler  ^-^
 

Offline PeLaTopic starter

  • Contributor
  • Posts: 38
  • Country: gb
Re: Optocoupler - wide input voltage range
« Reply #4 on: January 07, 2021, 11:23:48 am »
Can't argue with that! Thanks mate!  :palm:
 

Offline jmelson

  • Super Contributor
  • ***
  • Posts: 2766
  • Country: us
Re: Optocoupler - wide input voltage range
« Reply #5 on: January 07, 2021, 05:26:07 pm »
Use a current regulating diode:

http://www.linearsystems.com/lsdata/datasheets/J500_J501_J502_J503_J504_J505_J506_J507_J508_J509_J510_J511_Current_Regulator_Diode.pdf

You can also make one yourself using a JFET.

Doesn't get any simpler.

I would say a resistor in series is simpler  ^-^
But, the simple resistor will not work.  OK, let's try some values.  Most optocouplers need about 5 mA to trigger reliably.  So :

(3.3 - 1.7)/0.005 = 320 Ohms   (3.3 v minium supply minus 1.7 V drop of the LED)

Now, how does this work at 24 V?  (24 - 1.7) / 320 = 70 mA!  Most optos have a maximum LED current of about 20 mA.

Now, if you find a sensitive opto that can reliably turn on with much lower current in the LED, the resistor can be made a larger value.

Working backwards :

(24 - 1.7) / 0.020 = 1115 Ohms

Now, at 3.3 V you'd have :  (3.3 - 1.7) / 1115 = 1.4 mA  If your opto will turn on reliably at 1.4 mA, then this will work.

Jon
 

Offline DC1MC

  • Super Contributor
  • ***
  • Posts: 1882
  • Country: de
Re: Optocoupler - wide input voltage range
« Reply #6 on: January 07, 2021, 05:49:38 pm »
Well, the OP said that the reliable turn-on current is 2mA and I've based my calculations on this value. In any case, before going on further, a quick test with a resistor will actually take minutes.
 

Offline wraper

  • Supporter
  • ****
  • Posts: 16880
  • Country: lv
Re: Optocoupler - wide input voltage range
« Reply #7 on: January 07, 2021, 06:16:30 pm »
But, the simple resistor will not work.  OK, let's try some values. Most optocouplers need about 5 mA to trigger reliably.
Simple BJT optocouplers do not trigger to begin with. You have a CTR (current transfer ratio) spec which depends on LED current and is not linear, and usually drops to a very low value at low LED current. You have an analog output in a nutshell.
« Last Edit: January 07, 2021, 06:18:41 pm by wraper »
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 5882
  • Country: de
Re: Optocoupler - wide input voltage range
« Reply #8 on: January 07, 2021, 06:58:27 pm »
Can't argue with that! Thanks mate!  :palm:

It seems several other posters can. Also, you'll need a 1 W resistor at least, which generates quite some heat.

Thanks for the  :palm: by the way.

 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19544
  • Country: gb
  • 0999
Re: Optocoupler - wide input voltage range
« Reply #9 on: January 07, 2021, 07:00:16 pm »
How well the opto-coupler triggers or not, depends on what's connected to the other side.

The minimum CTR of the TCM4100 is specified at 50% at 5mA. It will be lower at lower currents: look at the data sheet.

A resistor is definitely the simplest option, but not ideal.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21713
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Optocoupler - wide input voltage range
« Reply #10 on: January 07, 2021, 08:00:27 pm »
Easily furnished with a current source.

JFETs and CRDs aren't so popular anymore, but depletion MOSFETs are readily available.  Indeed, a DN3545 will give you a whopping 450V of input range, albeit not continuous given the power dissipation at that extreme (4mA * 450V = 1.8W).

Also, if it works reliably at 2mA, it's probably wise to double the operating point to 4mA, since CTR drops with age and temperature.  Or use a somewhat more sensitive or stable type opto, or use a lower threshold on the output side (which can also be sharpened with a current source load, or an amplifier), assuming you don't need much speed of course (optos are very slow and need every mA they can get, to go fast).

Examples:
https://electronics.stackexchange.com/questions/368365/opto-coupled-eia-422-receiver-understanding-suggested-circuits
https://electronics.stackexchange.com/questions/355159/wide-voltage-range-input-regulation-24v-3-3v
https://electronics.stackexchange.com/questions/262011/mosfet-current-source-current-limiter-request-for-review

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: oPossum

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9512
  • Country: gb
Re: Optocoupler - wide input voltage range
« Reply #11 on: January 07, 2021, 08:33:25 pm »
Why not spread the dissipation with an intermediate clamp.... Series resistor, Zener clamp (maybe 8 - 12V), second series resistor, Opto.

It would still be a cheap and minimal solution, which would extend the input range without punishing the Opto LED too much at the upper end. Cheaper than a FET.
Best Regards, Chris
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 5882
  • Country: de
Re: Optocoupler - wide input voltage range
« Reply #12 on: January 07, 2021, 08:51:29 pm »
Cheaper than a FET.

An MMBFJ112 from ON Semi costs around $0.10 and it's just one part. Compared to three parts plus mounting cost.
BTW, the DN3545 is around $0.70. Hmmm.

I dunno.

« Last Edit: January 07, 2021, 08:56:23 pm by Benta »
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9512
  • Country: gb
Re: Optocoupler - wide input voltage range
« Reply #13 on: January 07, 2021, 08:58:59 pm »
If it's smd, and the board isn't crammed I think I win. When I was designing high volume consumer stuff, I'd move heaven and earth to leap on an opportunity to save an easy $0.10 on the bom.  :)

The resistors and additional placement are down in the noise, it's the actives cost and sourcing that matter.
« Last Edit: January 07, 2021, 09:08:47 pm by Gyro »
Best Regards, Chris
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 5882
  • Country: de
Re: Optocoupler - wide input voltage range
« Reply #14 on: January 07, 2021, 09:06:41 pm »
Good. You win.  :=\

'nuff said, the OP has seen the options.

 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9512
  • Country: gb
Re: Optocoupler - wide input voltage range
« Reply #15 on: January 07, 2021, 09:09:32 pm »
Good. You win.  :=\

'nuff said, the OP has seen the options.

Sorry, I didn't mean it that way.
Best Regards, Chris
 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1146
  • Country: ru
And sorry for my English.
 
The following users thanked this post: Smokey, mrburnzie

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 2606
  • Country: us
  • Not An Expert
Re: Optocoupler - wide input voltage range
« Reply #17 on: May 27, 2023, 10:25:49 pm »
Bump for some interesting solutions to a common(ish) problem.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf