Analog Devices inertial sensor
calomega
Posts: 4
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!
Nathan Calvert
Graduate Student
Aerospace Engineering Sciences
University of Colorado at Boulder
Thank you so much for your time!
Nathan Calvert
Graduate Student
Aerospace Engineering Sciences
University of Colorado at Boulder
pdf
412K
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
The SHIFTIN and SHIFTOUT commands are used for acquiring data from a synchronous serial device. For more information, our BASIC Stamp Syntax and Reference Manual is also available for free download at the link below:
www.parallax.com/dl/docs/prod/stamps/web-BSM-v2.2.pdf
I hope this helps, let me know if you if you are looking for any other resources.
Happy Developing!
Jessica
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jessica Uelmen
Education Department
Parallax, Inc.