Read variables from SD Card
hi folks,
i trying save variables on sd card , read them again @ power up. example, logging ah on battery capacity calculation, stored every often.
after arduino powered off initialize such variable last recorded value, instead of 0.
any ideas?
i trying save variables on sd card , read them again @ power up. example, logging ah on battery capacity calculation, stored every often.
after arduino powered off initialize such variable last recorded value, instead of 0.
any ideas?
sounds feasible. need write data file save it, , read contents of file @ startup (with logic sensible default if data isn't present / can't read). easier test , check correct behaviour if write data file using textual format rather binary format.
if don't have data save , don't need save often, save in eeprom. there eeprom write example in playground gives couple of helper functions make simple implement.
if don't have data save , don't need save often, save in eeprom. there eeprom write example in playground gives couple of helper functions make simple implement.
Arduino Forum > Using Arduino > Programming Questions > Read variables from SD Card
arduino
Comments
Post a Comment