Proszę zobaczyć:
Please see:
<https://easyeda.com/editor#id=TtnhzQ82k>
Możesz również wkleić ten ogólny subckt do schematu:
You can also paste this generic subckt into a schematic:
~~~~
************************************************
* Generic bipolar transistor output optocoupler
************************************************
**
* The model has 3 user parameters:
**
* i) CTR: Current Transfer Ratio in %;
* ii) Fpole: 3dB point of high frequency rolloff (bandwidth) in Hz;
* iii) EPSILON: a way to approximate to the reduction in CTR with
* increasing LED current. Higher values of EPSILON increase the CTR
* reduction. This is mostly a manual adjustment because this effect,
* although very much apparent in real devices, is poorly documented
* in many device datasheets.
**
* Developed for EasyEDA by signality.co.uk
**
* Last edited 140226
**
***************************
* NPN BJT base
* NPN BJT collector |
* NPN BJT emitter | |
* LED cathode | | |
* LED anode | | | |
* | | | | |
.subckt OPTOBJTEE A K E C B
***************************
* Default user parameters
* set EE model similar to
* LTspice 4N25 model
**************************
+ CTR = 87.6 Fpole = 1Meg EPSILON = 60
**************************
DIRLED A DIRLED_C IRLED
VIMON DIRLED_C K 0
B1 GND LPF I = tanh(I(vimon)*epsilim)/epsilim
RLPF GND LPF 1
CLPF LPF GND {1/(2*pi*fpole)}
B2 GND B I = V(lpf)*ctr/(100*qn_bf)
Q1 C B E QN
**
* Circuit params
**
.param Nirled = 1.6 qn_bf = 100
+ epsilim = LIMIT(1m, epsilon, 10k)
.model QN NPN(BF={qn_bf})
.model IRLED D(N={Nirled} rs=1)
.ENDS
************************************************
~~~~
Jak pokazano w powyższych przykładachj:
As shown in these examples:
<https://easyeda.com/editor#id=Ev5rpnJG2|808qkCTN5|6OkCwO5nF>
Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice