Hi All
For some time now I have been thinking about a system allowing a wider range of input voltages to an Opto Isolator without exceeding max ratings or stressing anything. I was thinking along the lines of a simple transistor based constant current source but constantly came up against the forward voltage drop across transistor junctions and diodes. This effectively put this idea out of reach of the now popular 3.3V logic systems.
Then a few days ago I came across this little gem. The LM334Z, an adjustable constant current source. Max 10mA, 40V and 400mW dissipation. Adjustable with 1 external resistor. Promising.
I have come up with the following circuit.
The components within the dashed line are for testing purposes only. That arrangement provides for about 3mA transistor collector current
I settled on about 5 to 6mA LED current as I thought most commonly available Opto Isolators would be happy with that as it sits about half way to the Max rating so should not stress. Thus I used a 12Ω setting resistor, this is a preferred value and yields a LED current of approx 5.6mA. If you look at the data sheet and extend the curves to a 10mA curve it would follow that a resistor of 6.8Ω should provide that current but that would be the extreme limit.
Using a 4N25 Opto I measured the following.
Output transistor seems to start saturation at 3.5mA LED current, Vce 0.18mV. Vin 2.0V
@ Vin=2.3V, LED Iin 5.5mA, Vce=0.14V
@ Vin=12V, LED Iin = 5.6mA (rising to max 5.65mA), Vce=0.14V.
@ Vin 30V, LED Iin= 5.6mA (rising to max 6.0mA), Vce=0.14V
The rising LED input current at the higher voltages would be due to self heating of the LM334Z which at the 30V stage would be 180mW and took a few minutes to get there but seemed to max out at that point.
The 4N25 has a suggested collector current limitation of 5mA which would not drive much but being so low Vce would be pretty ideal for 3.3V logic inputs.
An Opto with a better suggested max transistor current of 100mA is the 4N33. But there is a trade off. This device has a Darlington output and the transistor voltage drop (Vce) I measured to be 0.72V. Probably a bit marginal for a logic LOW. The onset of saturation is a bit lower at Vin of 1.8V but the rest of the measured numbers are pretty much the same.
Note I have only done these measurement on one of each Opto device and one LM334Z.
But allowing a fudge factor for tolerances etc over a range I would be pretty confidant in specifying a minimum input Vin for the circuit as drawn of 3V and a maximum Vin of 30V. If contemplating a higher input (max 40V) or higher current I would suggest reducing the duty cycle to make sure the LM334Z stays well within limits.
2 DMMs used, Voltage measurement UNI-T model VT71B, current measurement Multicomp model MP730624.
Current meter inserted in the high side between supply and DUT with Vin measured at the LM334Z input to eliminate the meter voltage burden.
For interest I compared these 2 DMMs on the voltage function.
@3v the difference 3mV (0.1%)
@12V the difference 5mV (0.04%)
@ 30V The difference 20mV (0.07%)
So in practice I think it would be safe to say both DMMs agree.
Cheers Bob