I would like to measure voltages from external circuits with the single ended ADC from an Atmega324.
The plan is to power the Atmega324 with 3.3V and use a 1.024 or 2.048 voltage reference. The voltages to be measured are 0...5V and 0...24V, DC with 1kSPS. In the end, I want to utilize all eight ADC Inputs of the Atmega while measuring all of them simultaniously, so using differential mode of the Atmega wouldn't work, at least from my understanding, since they only work against specific channels,like AIN0...7 against AIN1 and AIN0...7 against AIN2. Instead of measuring all voltages in reference to the ADC circuits GND, I'd like to be able to use it more like a voltage meter.
The external circuit to be measured could, as a simple example, look like this:
In order to measure the voltages, I had to connect the probes like this:
Here are the things that bug me:
If I use the ADC as single ended, like in the schematic, wouldn't I short out R2 via the GND connection from Probe2 to the ADC and back to Probe4?
According to the datasheet, "The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less.". That means the voltage divider and the impedance i want to measure combined had to be below that. So the voltage divider would heavily influence the circuit I want to measure, depending of its nature.
Now I'd like to ask for tips on how to tackle the issues I see. Regarding issue 2, the resistor impedance, I read that you could create the voltage divider with high resistance values, in the range of a few MegOhm and either a) add a ~100nF capacitor next to the lower resistor (R2/R4 of the second schematic) in order to supply the internal S/H capacitor with that. or b) use a OPAmp in a buffer configuration (one that can handle the high inputvoltage relative to GND for measuring the 24V)
I am not sure about issue 1. Would a differential ADC be able to measure the voltages properly without a GND connection? But then I would need an external ADC chip that offers 8 differential inputs. A buffer opamp would have to be isolated internally, or you have the connected GND again. Since else the opamp wouldn't work, without current going into it.
What would be a good solution to this problem?