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?
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
Post a Comment