Society of Robots - Robot Forum

Software => Software => Topic started by: Resilient on March 22, 2009, 10:21:45 PM

Title: Data that persists over a power off cycle
Post by: Resilient on March 22, 2009, 10:21:45 PM
With the axon is it possible to have gathered data last over a power off power on cycle?

For example, if I want to remember a path for a maze that I ran, is there a way to store that somewhere so I can power off and still have it there when I power on?

Or if I want to calibrate for lighting conditions between runs of a firefighting robot?
Title: Re: Data that persists over a power off cycle
Post by: pomprocker on March 22, 2009, 11:18:33 PM
The same kind of memory your programming is stored on...EEPROM
Title: Re: Data that persists over a power off cycle
Post by: Resilient on March 23, 2009, 01:01:20 AM
I guess I should rephrase.

How would I do it?

Is it possible to dedicate a portion of the memory that you can write to?  For example, if I wanted to store a two dimensional array that represented what the robot knew about a maze, how would I do that?

Or a simpler case, how would I write a single int that could be used as the baseline light level for a series of runs?

Are there any functions in the AVR library that support this?
Title: Re: Data that persists over a power off cycle
Post by: Razor Concepts on March 23, 2009, 03:51:04 AM
See link in my sig, basic EEPROM tutorial  ;D
Title: Re: Data that persists over a power off cycle
Post by: Resilient on March 23, 2009, 06:08:27 PM
WIN!  ;D
Title: Re: Data that persists over a power off cycle
Post by: pomprocker on March 23, 2009, 09:15:41 PM
Is that for internal or external eeprom?
Title: Re: Data that persists over a power off cycle
Post by: Razor Concepts on March 23, 2009, 09:38:10 PM
Internal EEPROM.
Title: Re: Data that persists over a power off cycle
Post by: pomprocker on March 23, 2009, 09:47:54 PM
maybe you could add how to hook up external eeprom via spi or something
Title: Re: Data that persists over a power off cycle
Post by: Admin on March 23, 2009, 10:50:02 PM
Just in case anyone changes their sig . . .

http://www.societyofrobots.com/member_tutorials/node/309 (http://www.societyofrobots.com/member_tutorials/node/309)