Hi,
I am working on a small project for
which I need to compare a voltage
to 2.5v. The compared voltage is
called Vin. If Vin is more than 2.5,
I need a Vout to 5V, otherwise to 0V.
I do not want to use a comparator,
but transistors for learning purposes.
I was thinking about using the a
voltage divider so that Vin is scaled
from [0, 5 volts] to [0, 1.4] thus my
comparing voltage become 0.7v (ie.
was 2.5v in [0,5] becomes 0.7v in
[0,1.4]) which I plug to an opamp
which is linked to the transistor Base
pin.
< 0.7v wont switch the transistor ON,
otherwise it will. I can replace the opamp
with another transistor.
Is the basic idea good? Any comment
welcome! I have read relying on the
BaseEmitter voltage drop is not a good
thing...
Thanks for helping,