I've got a very large capacitor which is likely to be storing up to 5 kV. When it is turned off, I want to be able to discharge it using a bleeder resistor (or similar) so I don't risk injuring myself.
I want to reduce the losses due to the resistor while also discharging quickly. Obviously, these are conflicting requirements, as I'd need high R to reduce losses (due to less current flowing) but low R to discharge it quickly. To solve this problem, I was thinking of switching the circuit so the resistor can be connected and disconnected at will (by a microcontroller), however, it seems near impossible to get a solid state switching component that can operate at the voltage I need it to (for less than, say, $50). Is there any way to configure the circuit so that the switching element isn't affected by the high voltages. I could use a high voltage electromechanical relay, but I'm just not sure if that's the best option.
Another concern of mine is that while the bleeder resistor will be able to drop the voltage to 37% within τ=RC seconds, but it is going to take a while to actually drop down to a safe voltage (especially with a large resistor). Is there any way to reduce the resistance automatically as the voltage decreases? I was thinking of using a varistor, but the resistance of those increases as the voltage decreases. There will be a microcontroller managing the circuit, so it may be possible to control it that way if a controllable resistance (that can withstand 5 kV across it) exists. Is there any way to achieve this? In an ideal world, I'd also be able to automatically measure the voltage to determine if it is safe to touch, but I'm aware that it would be very difficult to do if the voltage is changing.