Go Down

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


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!


Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


Thank you sir.

You can tell how new I am to this?



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