Shop OBEX P1 Docs P2 Docs Learn Events
Micro SD Data Storage for Altimeter Sensor — Parallax Forums

Micro SD Data Storage for Altimeter Sensor

aparis1983aparis1983 Posts: 22
edited 2014-01-21 15:36 in General Discussion
My question is regarding data logging for the parallax altimeter. I need to log altitude and temperature into a micro SD card.
A fair disclaimer: I'm very much a rookie with electronics and programming. I took on this project because I needed an altimeter/temperature to go on a ride in a high altitude balloon.

Let me show you what I did (borrowing from other people's projects) to display the altitude and temperature on a Serial LCD, and then I'll explain the problem I have with data logging.
The components that I used are: the Propeller BOE, Parallax Altimeter MS5607, Parallax 2x16 Serial LCD (backlit), and a 32GB Micro SD.
The schematics and screenshots of the code to simply display altitude and temperature on the LCD are attached.
My finished product would (ideally) be able to display altitude and temperature on the LCD (which I've already accomplished) as well as log this data into the card.
The problem I have is with the spin code to log the data into the micro SD card (I don't know what I'm doing wrong). I'm using fsrw but I still need create a separate spin code that writes the data into the card, correct? I've attached a screenshot of this makeshift spin code for the data logging. I would greatly appreciate any help with this spin code; but (and I know this is annoying) explain as you would to someone who's basically an illiterate in Propeller/programming/electronics yet can follow instructions very well.

Greatly appreciate it.
600 x 900 - 108K
1024 x 683 - 64K
1024 x 768 - 56K
1024 x 656 - 91K

Comments

  • prof_brainoprof_braino Posts: 4,313
    edited 2014-01-20 20:57
    This is not SPIN, but it is an example of an SD logger with time stamps.

    http://code.google.com/p/propforth/wiki/Logger1Simple

    If you can deal with the FORTH code you can work through it interactively, it might give you some insights are to what is going on. Or you can cheat and just use the forth.
  • LevLev Posts: 182
    edited 2014-01-21 15:36
    Hi aparis,
    You asked this question in another thread and I sent you some code that I have been using to write altimeter data to an SD card. Did you look at it?
Sign In or Register to comment.