Monday, 18 January 2016

microcontroller - Programmable current sink


I need a current sink that I can control from a micro-controller. Should handle 5V up to 4mA or so in at least 256 steps (more is better). I'm looking for a design, not so much a complete product, due to cost.


UPDATE #1: Here is a working circuit using a BJT, I tried a MOSFET (2N7000) but it did not work as expected. Seems the control over the range is a bit limited. I'm going to wire up a DAC and plot the in / out values.


Update #2: I've hooked up the circuit (100% like in the simulation) and I can get a range of between 0.7mA to 4.7mA. Not exactly according to the plan, but seems to be getting there. How can I lower the "low" range? The OP07 had a very low offset.


schematic


simulate this circuit – Schematic created using CircuitLab




No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...