Monitors charging and discharging of lithium ion batteries (represented by capacitor) blue led shows charging, green shows charged, pink shows 3v+(usable voltage), red shows 3v- (unusable voltage).
Charging:
Charges at 200mA max (.1c for 2000mah battery) charges to 4.2v then turns off (note: actually continues to charge at 4.2v, but at a rate that would be negligible in reality)
Discharging:
Discharges until voltage hits 3v then turns output off (note: transistor here should be a mosFet, but every circuit makes it difficult to use mosfets) when output is off, red led is on.
Note: all switches must be open in order to start simulation.