Switch is "on", It charges the battery up to 5v, stops so it does overcharge and damages the battery. Switch is "off", it automatically discharges and turns the load on intil the battery dies. The 500MF capacitor is the battery.
CONTROLL:
SWITCH-------------CHARGING "ON" AND BATT. USAGE "OFF"
INDICATION:
RED LED------------CHARGING
BLUE LED----------FULLY CHARGE
WHITE LIGHT----USAGE LOAD