I am a senior in electrical engineering working on my senior design project, and not the most adept coder, especially not in Spin. For the project, we are sending up a weather balloon to gather atmospheric data. The sensors we are using are an altimeter, temperature sensors, compass, and accelerometer. The microcontroller we are using is the Parallax Propeller, and coding is done in Spin. The goal is to gather this data at certain time intervals and save this data to an SD card. The micro-SD card adapter we are using is the Parallax #32312. I am aware of the FAT16 (fsrw.spin) object by Tomas Rokicki and have downloaded it. However, I am unsure as to how to implement it. Attached is a simplified version of the code I have. The main file gathers and prints altitude data to Parallax Serial Terminal every 2 seconds. The two other files are just required objects. I was wondering if someone could show me the basic concept of how to create a file and write this data to the micro-SD card (Parallax #32312) instead of Parallax Serial Terminal using the fsrw object with this simplified example. Any help would be greatly appreciated.
29124_altimeter.spinParallax Serial Terminal.spinsimplified_main.spin