Shop OBEX P1 Docs P2 Docs Learn Events
Storing data on 128 Kbyte EEPROM from multiple sensors — Parallax Forums

Storing data on 128 Kbyte EEPROM from multiple sensors

StormbringerStormbringer Posts: 3
edited 2008-09-07 23:29 in BASIC Stamp

NEOPHYTE WARNNG

smhair.gifAs one might guess, I am new at this...can anyone give me some tips as to what BASIC code might be used to store data on a 24LC128 EEPROM from multiple input sources (i.e. 2125 Accelerometer, HB55 Compass, SHT11 Temperature and Humidity Sensor, etc.)confused.gif.· I am using a BS2 Stamp to juggle the data now, but I can only do one sensor at a time, and if I try to combine them I usually get the "Out of Memory" error.· For right now, though I will be happy getting each sensor to upload data into the 24LC128, and will go to an FPGA Stamp with more memory later.

Stormy

PS - IF, however, one knows how I CAN get multiple sensors to run at the same time and upload data to 24LC128, I wouldn't complain...tongue.gif

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-09-07 22:31
    Storing data on a 24LC128 EEPROM is easy if you have two I/O pins available and some program memory for the subroutines. If not, you will have to switch to something like a BS2p/pe/px Stamp which has built-in statements to do I/O to I2C devices like a 24LC128 EEPROM.

    Download Nuts and Volts Column #115 including the sample code: www.parallax.com/Resources/NutsVoltsColumns/NutsVoltsVolume5/tabid/448/Default.aspx
    The sample code includes an example for the 24LC256 which is a 32K byte EEPROM. The 24LC128 is a
    similar 16K EEPROM that's treated the same way.

    With a Stamp, you can't really do more than one thing at a time, so you can't handle multiple sensors and logging to an EEPROM at the same time. For that, you'd need a Propeller which can do all that easily.

    Post Edited (Mike Green) : 9/7/2008 10:38:49 PM GMT
  • StormbringerStormbringer Posts: 3
    edited 2008-09-07 23:27
    Thanks for the intel !·roll.gif
    I have appended a quick program combo that sends data from a Compass to the EEPROM for any interested parties.eyes.gif
    ...thinking a new Propeller is in my future...but when I am through I hope it is MY robot on the moon sending back data and pics shocked.gif·(Google prize).

    smilewinkgrin.gif
    Stormy
  • StormbringerStormbringer Posts: 3
    edited 2008-09-07 23:29
    DOH !· I/O (Idiot Operator) Error !

    See appended program file...

    Stormy
Sign In or Register to comment.