Gyro and Python


#1

Hi everybody. Could somebody tell me how should I get the data from the 3 axis gyro through Python ?
Should we add some function to grovepi.py ? What should the cmd be ? The sensor is connected to I2C, just like an accel. So I would say it is similar to acc_xyz() ?
(http://www.seeedstudio.com/wiki/Grove
-_3-Axis_Digital_Gyro)

Thank you.


#2

Hi,
The Grove 3 Axis digital Gyro uses an ITG3200 module. We don not support the Gyro as of now in terms of the software but it should be pretty easy to port it from the Arduino library.

Now, since the module is a pretty popular one, you might be able to find code for it somewhere. A little googling led me to this : https://github.com/beli-sk/IMU_sensors/blob/master/itg3200.py . Maybe you can try it out to see if it works .

Thanks,
Karan