I'm building yet another electronic load - something to load test LiPo batteries I use in my little RC helicopters - under heavy load the voltage drops below the helicopter's low voltage cutoff and the helicopter drops from the sky.
I'm using the 12-bit DAC on an ATXMEGA32A4U. The DAC goes into one leg of the opamp, and the voltage from a 0.02Ohm current sense resistor goes into the other. The opamp output goes to a FET to control the current. I borrowed the design from Dave's USB power supply.
My problem is when I set the DAC to 0, I'm getting 22mV out of the pin. With 0.02 current sense resistor, this tries to run my load at 1.1Amp when off - not good.
From what I've read online, this is an issue with rail-to-rail opamps not really got all the way to the 0v. Given that I'm using a single supply (USB 5v), it doesn't look like this is a simple fix.
I thought I could...
1) Use an opamp as a differential amplifier, to subtract a small amount from the DAC to get it to 0, or less - but this will require dual supplies. Or,
2) Add a small offset to the current sense side, using an opamp in a summing configuration - but I've only seen it use to generate a negative sum, which would mean I'd have to invert that with another opamp, and I'd still need dual supplies.
Any ideas?