I recently purchased a BASIC Stamp 2e microcontroller to process data from a 3-axis inertial sensor on-board a model quadrotor aircraft. Although I have downloaded and studied the sample code posted online, I am completely new to PBASIC programming and somewhat confused. In the nutshell, I want to be able to request data from various registers of the sensor and send it to be stored on a Parallax USB datalogger throughout a 5 minute flight test of the vehicle. I would like to be able to continuously cycle though each axis of the accelerometer and rate gyroscope data and incorporate a blinking LEDs to indicate that the data is being successfully requested and stored. At this point any help or advice that you could provide would be much appreciated. I imagine that I can use a lot of the code has already written, but I'm not exactly sure what parts need to be modified to function properly with the inertial sensor. I have attached the datasheet if it might help you understand the situation better.
Thank you so much for your time!
Aerospace Engineering Sciences
University of Colorado at Boulder