Ah, ok, finally, im a git, :-)
Im now reading a 520 adc value with the battery on and the DMM measuring 2.54 (Needs to be multiplied by 2 to reverse the voltage divider effect).
Err, something not right, im missing something with the math:
Code:
ADCIN 4, volt ' Read AN4 into temp variable
Vin = (5*volt/1024) ' Convert to voltage assuming 5.00 = 1024
lcdout $FE, $C0+8, dec Vin,".",dec2 Vin,"V"
pulling out many hairs, :-( my biggest issue is that even in school my maths was not great, spose thats why Excel was invented, for people like me, :-)
Bookmarks