Calibration problem using map function


i'm measuring voltage on analog pin , using map convert data volts (*5/1023 inaccurate) result not linear. calibrated top , bottom of range, in between inaccurate.
eg:
v = map(raw, 514,858,228,400)
(mv)
228 = 228
247 = 250
328 = 338
357 = 369
372 = 386
390 = 394
400 = 400
average of 20 reads.
nano.

any ideas? there different results on other pins?

can post full code, , set of data including value of raw it's getting fed each value?



Arduino Forum > Using Arduino > Programming Questions > Calibration problem using map function


arduino

Comments

Popular posts from this blog

Valutazione Template - Joomla! Forum - community, help and support

SD Datastring Convention

First use of Arduino Uno : avrdude error on Blink uploading