Shop OBEX P1 Docs P2 Docs Learn Events
K I think i need more memory? — Parallax Forums

K I think i need more memory?

jonduncanjonduncan Posts: 40
edited 2007-02-26 19:47 in BASIC Stamp
I am doing a competition, micromouse. If you haven't heard of it just search it on google. but I need to be able to store the map in memory, I probably could store it in EEPROM but It might right to it a lot and read from it alot so I don't know if it is a good idea. I have a BOE bot with BS2. I am thinking about getting a javelin, which would be enough memory.

Ok this is probably what i need for memory 256 bits for vertical walls and 256 bits for horizontal walls.
If possible maybe even make a weighted map, but that would mean I would need 256bytes of more memory.

would this be possible to do on BS2 with EEPROM or should i just get the javelin? i am thinking just get the javelin especially if I use the weighted map, because it would need to rewrite a lot. but if I just store the walls in memory I could probably just use the BS2 but what do you think?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-02-26 19:46
    The BS2p series devices have what's called Scratchpad RAM which is 128 bytes of which about 125 bytes is available. You use the GET/PUT statements to access it. This will fit your map and it would be in RAM without the write limitations. If you're mostly reading the map, you could certainly put it in EEPROM. It doesn't matter how much you read it. The problem is writing over and over again. You can read a location and compare the new value to the old one and only do the WRITE if the values are different. Sometimes that will markedly reduce the amount of writing being done. Often the data doesn't really change that often, but you're checking the environment often for changes.
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-02-26 19:47
    You can easily use an external eeprom (24LC640?) for this purpose -- I wouldn't use the BS2 internal eeprom.

    The Javelin would be a much more 'brag-worthy' solution. Future employers would be fascinated by a Java-based micro-mouse, where they'd ho-hum a Basic-based mouse.
Sign In or Register to comment.