Don't laugh too much. I am still a newbie in electronics and don't know much.
So, i want to build a really smart NiMH charger. The charging part is based on AVR450 but i need also to discharge the battery for many different purposes and work modes.
I have read the manufacturers handbooks on this type of batteries and IEC specs for testing and they all say that i need to discharge it with constant current.
If i just discharge it though a resistor firstly i will not get constant current (current will drop as voltage drops) and secondly i will not be able to control the current precisely enough.
So, i though, could i use the same charging back-converter with PWM control connected to the battery in inverse to discharge it? This was i could control current, reduce parts and control the voltage the same way i do when i charge.
Would be right to do so?
(i'd use several mosfets to route current one way or the other way)