Megahertz,
A couple of items for your consideration.
-I think you should take a hard look at using an ADC instead of a comparator. I actually had a lot more trouble figuring out how to use the comparator than the ADC.
-It would be helpful, for the purposes of this discussion, to sketch out at least a rough schematic of what you are trying to do.
-To charge NiCD or NiMH battteries, you need to supply a constant current. As I understand what you describe, you are just hooking up a regulated voltage supply. That will destroy your batteries sooner or later. The LM317 I linked earlier is the heart of a constant current supply. You also need a top voltage on the power supply of at least 1.9V per cell. That means you need at least 7.6V to charge 4 cells. The 5.7V charger is not enough.
-Lead acid batteries instead use a constant voltage to charge. The charging voltage is somewhat higher that the listed voltage, i.e. you use 14-point-something volts to charge a 12V SLA battery.
I've started my own PIC-based charger. I haven't written code yet but I can post the basic schematic tomorrow.
Best Regards,
Paul
Bookmarks