I'm developing a small testing application for my company that tests various hardware and software functionality.
I do however have a problem developing a simple way to check for short circuits in the system (given a limited knowledge of electronics, I'm mainly a programmer).
The problem I have is that the system has a large capacitor (40 farad) with a fairly low average load (~50mA at 3.8V) where the capacitor may, or may not be previously charged.
Because of the capacitor i cannot simply check for a large current flowing from the power supply because that would probably just be the capacitor being charged.
My idea was to check if the current decreases at an expected rate given the capacitor. I'm afraid I don't know enough about capacitors or electronics in general to be able to accurately predict the capacitor charge and detect such a variation.
I thus would like to ask guidance on how to reliably perform such a check, or if there is any better way to check for a short circuit given a large capacitor. I have a fairly rudimentary knowledge of electronics and don't know much beyond the basics.