Go Down

Topic: Storing Sensor Calibraion Values in Arduino? (Read 645 times) 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: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e


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

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

shortcuts: alt+s submit/post or alt+p preview