Is this reference worth anything? I find it varies ~20% depending on supply voltage to the chip. I'm using a pro micro ko on various USB ports/battery banks, and it's unusable.
Is it my junk ko or should it perform as an actual reference? I don't see much diff if just using the 5v range.
I have two functions, one that uses an ntc divider with analogReference and the other with an lm35 without, and the lm35 is half a mag better when just swapping supply.
basic code example:
void ntc() {
analogReference(INTERNAL);
analogRead(ThermistorPin0);
for (int i = 0; i <= avg; i++) {
Vntc = Vntc + analogRead(ThermistorPin0);
delay(1);
}
Vntc = Vntc / avg;
analogReference(DEFAULT);
analogRead(ThermistorPin0);
}