I made a current source very similair to this:
http://www.ecircuitcenter.com/Circuits/curr_src1/curr_src1.htm
to drive an LED.
The voltage to the opamp is controlled with a DAC (DAC7562TDGSR). The op amp is an MCP6002. The BJTs are your standard 2222A NPN.
The problem is that I can never get the LED to fully shuts off. Other than that it works fine. It is like there leakage current through the BJT. The amount of current is immeasurable with my multimeter, but it is enough to give a faint glow on the LED. I tried it with a mosfet, the problem went away, but I have found that I get much more dynamic range with the BJT.
I have a few theories to why the BJT is leaking current. Do you guys want to comment to see how valid they are or just comment to tell me what is actually wrong?
1. The op amp has an output offset current, so to fix this, I need a resistor on the base. It would explain why a mosfet works well since mosfets are voltage related.
2. The op amp has an output offset voltage, so to fix this, I need a resistor somewhere.
3. BJTs just leaks current? Easy solution, but probably wrong.
4. The DAC does not have a true zero ouput, so any small voltage gets leaked to the negative side of the op amp (the feedback side), which gets propagated to the emitter. This is my BS response.
5. My PCB design sucks. I hope it is not this.
http://www.ecircuitcenter.com/Circuits/curr_src1/curr_src1.htm
to drive an LED.
The voltage to the opamp is controlled with a DAC (DAC7562TDGSR). The op amp is an MCP6002. The BJTs are your standard 2222A NPN.
The problem is that I can never get the LED to fully shuts off. Other than that it works fine. It is like there leakage current through the BJT. The amount of current is immeasurable with my multimeter, but it is enough to give a faint glow on the LED. I tried it with a mosfet, the problem went away, but I have found that I get much more dynamic range with the BJT.
I have a few theories to why the BJT is leaking current. Do you guys want to comment to see how valid they are or just comment to tell me what is actually wrong?
1. The op amp has an output offset current, so to fix this, I need a resistor on the base. It would explain why a mosfet works well since mosfets are voltage related.
2. The op amp has an output offset voltage, so to fix this, I need a resistor somewhere.
3. BJTs just leaks current? Easy solution, but probably wrong.
4. The DAC does not have a true zero ouput, so any small voltage gets leaked to the negative side of the op amp (the feedback side), which gets propagated to the emitter. This is my BS response.
5. My PCB design sucks. I hope it is not this.