variable storage to EEPROM
Beagle
Posts: 7
I'm continuing on a project which has been running for about 14-months. I'm using a group of high accuracy temperature sensors, humidity sensors and barometers to try to map variations in air-density in a calibration lab. The measurements from this project are intended to be Traceable and are part of a Quality Control System. Therefore, I am performing periodic calibrations of the sensors. I have been correcting calibration errors in the sensors by updating the spin code in each of my propellers with a linear equation for each sensor. This has several disadvantages (not the least of which is keeping a separate copy of the code for each of the propellers) and I need to change my evil ways to a more wholesome code that features calibration coefficients that can be updated from a serial terminal and stored to the EEPROM. When the propeller is reset, as part of the startup routine, I'd like to read the coefficients from the EEPROM and use them as variables in the program.
Will someone please explain how to write to and read from the EEPROM? At the moment, I'd like to store and use numerical variables which will be used in linear equations.
Will someone please explain how to write to and read from the EEPROM? At the moment, I'd like to store and use numerical variables which will be used in linear equations.
Comments