This 2005 Linear Technology circuit has separate outputs for monitoring the charge and discharge of a battery. Formulas next to the diagram let you calculate the components.
This circuit, with printed circuit board included, is from a Radio Electronics magazine from July...
In the figure we show how to excite a CMOS port by interrupting light on a Darlington...
We found this circuit in an old documentation, but it uses components that are still common in our...