Question to Parallax Regarding the Gyroscope Module
amalfiCoast
Posts: 132
Hello,
I was wondering if Parallax could develop a Learn tutorial on the Gyroscope Module 3-Axis L3G4200D in Propeller C. I am primarily interested in a tutorial in which SPI is used, similar to what was published for the MMA7455 Three-Axis Accelerometer. Others might be interested in seeing a tutorial for the Gyroscope Module with the I2C interface. Would it be possible to put together a tutorial for us?
Respectfully,
David
I was wondering if Parallax could develop a Learn tutorial on the Gyroscope Module 3-Axis L3G4200D in Propeller C. I am primarily interested in a tutorial in which SPI is used, similar to what was published for the MMA7455 Three-Axis Accelerometer. Others might be interested in seeing a tutorial for the Gyroscope Module with the I2C interface. Would it be possible to put together a tutorial for us?
Respectfully,
David
Comments
I'm looking to learn this myself.
David
Mike
We have Blockly support for this sensor, which means we also have C code for it. You could click on "code view" and download the Blockly-generated code.
Aside from this, what kind of tutorial did you want? Are you interested in exposing some of the more advanced features of this sensor?
Ken Gracey
Parallax, Inc
Thanks for your reply. I downloaded the Blockly IDE but was not able to find the gyroscope sensor module, only the accelerometer module. I am looking for a tutorial that shows how to use the gyroscope module with SPI, similar to the tutorial here (which is for the accelerometer module):
http://learn.parallax.com/tutorials/language/propeller-c/propeller-c-simple-protocols/spi-example
I was not successful in adapting the SPI example for the accelerometer module to the gyroscope module. The SPI example is great because it displays the code and explains how everything works, while including sections on "How the SPI Test Works" and "Bit Masks for Better Code". I am a mechanical engineer and have never had formal training in programming/computer science so these Learn tutorials have been extremely helpful to me.
Respectfully,
David
I would love to see your library for the gyroscope module.
Thanks,
David
I won't pretend that PropWare is anything close to the Learn content - it isn't meant to be - but if another library implementation in C++ would be helpful then I can point you in the right direction.
Here's PropWare's L3G implementation: https://github.com/parallaxinc/PropWare/blob/develop/PropWare/sensor/gyroscope/l3g.h
And here is the demo provided with PropWare which uses the L3G: https://github.com/parallaxinc/PropWare/blob/develop/Examples/PropWare_L3G/L3G_Demo.cpp
Mike