I have a drill with 18V (nominal) battery packs. The charger is very simple and basically what is in the left part of the image. The values shown are not important, just a general idea.
The source is just a wall wart transformer followed by rectifier bridge and smoothing capacitor. Rs is just the source output resistance.
I have put in series a 220 ohm resistor for trickle charging and I short it with a switch for full "real" charging. The 5 ohm and the diode are original and I do not want to touch them.
So I manually close a switch for full charging. What I want to do is design a control circuit with a relay that will act as follows:
Upon connection relay is open so in trickle charge.
Momentarily pushing the "push to start" activates the relay which latches.
Circuit measures voltage at S ... which is the same as Vc when relay is closed .
Two conditions unlatch the relay:
1- Voltage over Vh which indicates battery is charged
2- Battery under VL which indicates a shorted cell
once the relay lets go it can only be activated again by pushing the button. Then the charger is in trickle mode and the battery a power supply are safe. (I once had a burnt transformer from a shorted cell.)
Vc is very variable, let's say 20 to 34 in order to give us some margin. A 24 V relay should work because it woul be activated at more than that and then the voltage would fall to about 23 V with the battery charging.
So, I am looking for ideas for the simplest way to implement this.
Maybe I would start with dropping the voltage to, say, 15 volt and then have to comparators, one to detect VH and one to detect VL and deactivate the relay.
There are probably already circuits I could use or modify. Maybe I can use a single comparator that detects a range? Also i am not sure how precise I need to voltages to be. Maybe detecting a shorted cell by low voltage would be easier but maybe detecting "fully charged" voltage needs to be more precise? In which case I would rather err on the side of stopping short and not overcharging.
I suppose another easy to implement addition would be a timer. One of those plug-in timers should work well.
Anyway. This is my first look at the problem and I am looking for ideas, schematics and anything useful.