panic mode
- Joined Oct 10, 2011
- 5,002
true, one could get diodes that match the tempco of transistor or use same NPN transistor as a diode etc, while one can compensate things out it is increasing complexity and does get messy. but even without that, quick and dirty fix improves original circuit output considerably (some 20x).
another possibility is to make 0-20mA source is using OpAmp. something like this:
U1 is precision 2.5V reference, R2 is sensing resistor so max current is 2.5V/120Ohm = 20.8mA
With RV one can adjust setpoint and transistor takes the heat.
for this to work OpAmp need to have inputs that can go rail to rail. basically OpAmp compares voltage across R2 and top part of RV1.

another simple circuit can work as universal analog output. to control it one can use 0-5V or PWM. don't recall where i stumbled on this one so cannot credit it. i did try it and it looked ok.

another possibility is to make 0-20mA source is using OpAmp. something like this:
U1 is precision 2.5V reference, R2 is sensing resistor so max current is 2.5V/120Ohm = 20.8mA
With RV one can adjust setpoint and transistor takes the heat.
for this to work OpAmp need to have inputs that can go rail to rail. basically OpAmp compares voltage across R2 and top part of RV1.

another simple circuit can work as universal analog output. to control it one can use 0-5V or PWM. don't recall where i stumbled on this one so cannot credit it. i did try it and it looked ok.








