This is related to my previous question. I have this circuit in which I discharge the capacitor by turning ON M2. The ON resistance of the MOSFET I have in mind (the picture shows the wrong MOSFET in an earlier design) is 0.0035 ohm. I've placed a 1 ohm resistor in the discharge path to limit the current. The 40 mF capacitor (4 X 10 mF) will have a voltage of 0.6V when fully charged. So I'd have 0.5979 A current during discharge. Is this safe? Will my capacitor spark/blow up? Will its lifetime decerease if this is a repeated operation? What would be a safer option for discharge? I could increase the resistance, but I'd like to know exactly how much current is safe.
I need the charge\discharge process to be controlled by an MCU, so any manual discharge methods\removal of capacitor is not an option.