I'm a bit stumped again.
Decided to play around with this discharger circuit thing again.
The circuit I came up with is polarity-specific. Applying the capacitor the wrong way will lead to the possible destruction of the circuit.
So I want to add a circuit which analyzes the polarity of the capacitor and if it is properly connected, switches a relay (or some sort of switch) and connects the capacitor to the discharge circuit.
I have an idea of how to do it. It would be similar to the circuit I already posted. I would measure the voltage between R1 and R2. If the voltage is greater than 0, then the capacitor is properly oriented. If it is connected in reverse, no current flows and thus, there is no voltage at that point...
However, I think in actuality, there may be some leakage current, albeit very small, through the diode. So there would technically always be a voltage > 0 at that point, just a very very very small voltage in this case.
Would this be an issue? Any ideas? I was thinking of using an LM393, just for reference.