Fluctuating Input Values
I am having trouble understanding where my issue is coming from.
Basically I am measuring the voltage of my cars two batteries.
I have setup a voltage divider for each with a 330ohm and 100ohm resistor.
This gives an output of 2.91v when the battery is ~12.46
for each the scaling factors are
But the raw input values seem to fluctuate anywhere from 480 to 780 randomly even though the input voltage has not changed. I can stick the multimeter across the end and get a constant 2.67-2.68V stable, yet the display is showing anywhere from 1.76V to 3.8V
I have tried multiple ports and this still seems to happen on every one. Even if I change the resistance to give a smaller value it is still happening.
I am also running two temp sensors and these appear to be working well with stable values.
What am I doing wrong or what can I try next??
Would a capacitor from Vin to GND help filter out the fluctiations?
I didn't see that you're using temperature sensors with stable values. That means it's not the FB's fault.
A capacitor or noise filter would help, yes.