-
• #2
Looks like a really good idea - do you have a graph yet?
I love the idea of controlling the current draw by varying the voltage on the FET.
I'd actually really like to do an Espruino battery charger/conditioner - it'd be great to have something that'd keep my NiCd electric drill batteries in a good condition. It could even do cool things like cycle them while always making sure that one of them was fully charged :)
-
• #3
Nope. Haven't looked at this since I posted this. I've been kinda busy this week - last week before I'm on vacation, and will have more time to play with this stuff. I'll try to remember to bring the parts with me.
Circuit is simple. AA battery holder connected to ground on the negative side, and to 2 1W resistors on the positive side. Each resistor is connected to the drain of a beefy N-channel mosfet (controlled by Espruino - pins A1 and A0). Voltage is monitored before the resistors, and after each resistors, in order to measure current (so I can calculate current without knowing the resistance of the fet).
Logs are kept on SD card for graphing in excel. The idea is to be able to generate a discharge curve under various conditions, to get an idea what kind of battery to buy for every-day household electronics.
The idea of using analog write is that I could later expand it to try to keep the current constant.
I also have some constant current sinks coming I may try with this.
Untested, so far.