How Can I Measure Multiple Isolated Analog AC/DC Voltage

Team, I need your guidance to design a circuit that can measure isolated multiple battery voltages and AC Mains 230VAC voltages.
The aim is to isolate the individual voltage positve and negative terminals to avoid bridging.
The battery Bank is a set of series and parallel battery totaling 48VDC. I want to my Arduino to monitor the individual battery voltages such that it will bridge another battery.

I have tried using an Opto-coupler to detect the individual voltages but the coupler cannot measure variations in the battery voltage drop. I dont have problem with the sketch/sd html codes, just the curcuitry.

I have tried using an Opto-coupler to detect the individual voltages but the coupler cannot measure variations in the battery voltage drop.

It can if it uses the right sort of optical isolator and operational amplifier.
opto- measure.png

opto- measure.png

isaacjohnsong007:
The battery Bank is a set of series and parallel battery totalling 48VDC. I want to my Arduino to monitor the individual battery voltages such that it will bridge another battery.

If they are all connected together, then it should suffice to measure at each point in the series chain. The Arduino ADC has a 1024 step resolution, so from resistive dividers, it should be able to discriminate 0.10 V. That should be quite sufficient to monitor batteries.

Obviously, you cannot discriminate between two batteries in parallel.