I like to build a check circuit for my rc charger if a battery if connected as I running it with a generator. If there are problems there the FETs will explode if a battery is connected to the charger.
I can control the PSUs with I2C so the last point is to check if voltage is present. I do not need to measure the voltage simple check if a battery is connected to the charger and block the PSU to powerup the output.
- 0.5 .. 50V
- detection also if polarity is wrong (not connected correctly)
- no measurement necessary
I think if using a Optocoupler but did not know how to build it for the whole voltage range
I like to build it potential free as I do not know the circuits of the charger and also it is up to 50V.
Many thanks for any tip with ICs to use or simply a circuit to buy.