Micro SD Data Storage for Altimeter Sensor
aparis1983
Posts: 22
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.
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.
Comments
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.
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?