Hi Karl, I'm (quite) in the same approach as you do currently with a slightly difference coming that I learn Xenomai for this too -Thanks Charles btw- and use ADXL 335 and Invensense 9150. For ADXL 335 -it's analog not I2C right ?- you could 1st test it with the provided script : http://beagleboard.org/Support/BoneScript/accelerometer/ For invensense you are lucky as it's more supported than 9150 : http://www.i2cdevlib.com/devices/mpu6050#source . Anyway there are quite close so for C/C++ code you have things like this that are great : https://github.com/Pansenti/linux-mpu9150
Hope this helps. David Le samedi 18 janvier 2014 12:07:43 UTC+1, Karl Longen a écrit : > > Hi all > > I am learning how to use I2C, and I choose to use a gyro and an > accelerometer sensor, for my project. > > The gyro is the MPU-6050, while the accelerometer is the ADXL335 > > I have the data sheet; but I don't see any code example that show how to > get the data and process it. Is there a library already available for the > BBB by any chance, for these 2 sensor? > > I am not sure if others here use these sensor, but I was told that these > are the most common ones; but the only thing that pops up in a search is > related to the arduino. > > Any pointer is more than welcome; Ideally I would like to write code in > C++, to drive an application that process the data; and having a library > that would interface with the device would save me time to write one > (unless necessary; why re-invent the wheel if this has been already done?) > > Thanks in advance and sorry for the newbie question...If there was a book > showing how to do it, I would gladly buy it and study it. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
