Author Topic: Data that persists over a power off cycle  (Read 4133 times)

0 Members and 1 Guest are viewing this topic.

Offline ResilientTopic starter

  • Full Member
  • ***
  • Posts: 111
  • Helpful? 4
Data that persists over a power off cycle
« 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?

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: Data that persists over a power off cycle
« Reply #1 on: March 22, 2009, 11:18:33 PM »
The same kind of memory your programming is stored on...EEPROM

Offline ResilientTopic starter

  • Full Member
  • ***
  • Posts: 111
  • Helpful? 4
Re: Data that persists over a power off cycle
« Reply #2 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?

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: Data that persists over a power off cycle
« Reply #3 on: March 23, 2009, 03:51:04 AM »
See link in my sig, basic EEPROM tutorial  ;D

Offline ResilientTopic starter

  • Full Member
  • ***
  • Posts: 111
  • Helpful? 4
Re: Data that persists over a power off cycle
« Reply #4 on: March 23, 2009, 06:08:27 PM »
WIN!  ;D

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: Data that persists over a power off cycle
« Reply #5 on: March 23, 2009, 09:15:41 PM »
Is that for internal or external eeprom?

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: Data that persists over a power off cycle
« Reply #6 on: March 23, 2009, 09:38:10 PM »
Internal EEPROM.

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: Data that persists over a power off cycle
« Reply #7 on: March 23, 2009, 09:47:54 PM »
maybe you could add how to hook up external eeprom via spi or something

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,704
  • Helpful? 173
    • Society of Robots
Re: Data that persists over a power off cycle
« Reply #8 on: March 23, 2009, 10:50:02 PM »
Just in case anyone changes their sig . . .

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

 

SMF spam blocked by CleanTalk