Shop OBEX P1 Docs P2 Docs Learn Events
External data logs — Parallax Forums

External data logs

Neillson01Neillson01 Posts: 10
edited 2013-02-05 08:18 in General Discussion
Hi,
I am currently undergoing my undergraduate project and am using BS2 microcontroller.
My project is a temperature sensor using a Zener diode using the diodes leakage current, as there will be a different leakage current for each value of temperature over a range of 15 degrees to 70 degrees Celsius, therefore a large number of lines of data is needed to show the outputted value which is too much capacity for the micro controllers 2KByte memory.

My question is how can you create and external log of this data and use it within the program?

Any help will be appreciates
Thanks

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2013-02-05 08:18
    First of all, how many data values are you talking about? 56? 112? 224? more? (one or more for each degree between 15 and 70 degrees). Assuming that you have 1/4 degree increments and each value is 16 bits, that's only 548 bytes, about 1/4 of the Stamp's EEPROM. That leaves room for a very large program which would use READ statements to access the data.

    If you really need more storage than that, you can attach an external data EEPROM to the Stamp using 2 I/O pins. One of the Nuts and Volts Columns (#85) gives sample code for any I2C device and gives several examples for different EEPROMs. You'd have one or more temporary Stamp programs that would just write your data into the EEPROM and then your main program which would reference the stored table.
Sign In or Register to comment.