Go Down

Topic: Storing Sensor Calibraion Values in Arduino? (Read 654 times) previous topic - next topic

Wi11turner

Sep 09, 2012, 10:13 pm Last Edit: Sep 09, 2012, 10:14 pm by Wi11turner Reason: 1
Hi all,

I have two analog sensors - I would like to store my calibration values to my arduino uno rev3. (a min and max for each)

Importantly, the sensor values must be stored and remembered for when the devise is turned off.

I'm not sure the best way to go about this?


Does this board have any inbuilt features to store a few calibration figures? (I assume not)


My configuration also has the arduino wifi shield stacked on top (with a SD card slot). So i am assuming there is potential here.



Thanks for your time!

johnwasser

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Wi11turner

Thank you sir.

You can tell how new I am to this?

:D

robtillaart


Be aware that you only write to EEPROM when the calibration value changes as the EEPROM has limited write cycles (quite a lot but limited)

something like

if (newCalibrationValue != EEPROM.read(calib_addr)) EEPROM.write(calib_Addr, newCalibrationValue);

Reading is no problem.

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up