I have built me a esp32 voltmeter for 2x12v series battery bank. So i have the voltage dividers at 100k and 27k for the 12v and 100k and 10k for the 24v. I do not have any other components on the circuit.
I am using a lamda function in esphome to get the other batteries voltage which should work i believe. I have taken various measurements my multiplier for the 24v bank is 11.093 and my multiplier for the 12v is 5.018.
In Esphome I cannot get the lambda calculation to work properly.
I assume i could adjust the multiplier until the 2 voltages are the same? (Which they are currently)
What i was wondering is should i put in a capacitor on each sensor to filter out noise? I am happy with 0.1V variances.
The Battery bank less the First battery is not adding up on the logs. I am going to mark as solved as I am rather going to put 2 individual esp32’s on each battery and then combine them to get the banks voltage.