Version: 0.2
Status: Beta
License: GPL
Download: /files/project_builds/xcore_MPU6050_DMP6_v0.2.zip
The MPU-6050 chip is a 3-axis accelerometer and 3-axis gyroscope. Ahenshaw is using this device in his two-wheel balancer project in raw aquisition mode. I have taken some of J Rowberg's excellent code and adapted as a module (and sample app) to use the DMP for the startKIT.
My MPU-6050 is on a GY-521 breakout board that is available on ebay for about $6.
Images:
MPU-6050 DMP on Startkit
I've got this
Using modules: module_MPU6050 module_i2c_master
Compiling mpu6050.xc
C:/Users/Carlos/xMOSworkspace/module_MPU6050/src/mpu6050.xc: In function `mpu_writebit':
C:/Users/Carlos/xMOSworkspace/module_MPU6050/src/mpu6050.xc:228: error: unknown function identifier `i2c_master_writeBit' (possibly missing prototype?)
C:/Users/Carlos/xMOSworkspace/module_MPU6050/src/mpu6050.xc: In function `mpu_writebits':
C:/Users/Carlos/xMOSworkspace/module_MPU6050/src/mpu6050.xc:234: error: unknown function identifier `i2c_master_writeBits' (possibly missing prototype?)
C:/Users/Carlos/xMOSworkspace/module_MPU6050/src/mpu6050.xc: In function `mpu_readBits':
C:/Users/Carlos/xMOSworkspace/module_MPU6050/src/mpu6050.xc:239: error: unknown function identifier `i2c_master_readBits' (possibly missing prototype?)
I believe you are receiving this error because the compiler cannot find the i2c master module possibly because you do not have it in the workspace or possibly because it has become unchecked in the makefile.
TY for your post NickE.
I've checked it several times, but i2c_master module is correctly checked in the makefile file. Ideed other called procs from de i2c module link ok, and there are only this 3 ones that fail. I looked into the i2c module and I can't find none os these procs. My i2c module version is 'sc_i2c - 2.2.1rc0'.
Help with this would be great. Thanks for your time.
ea1ii, Carlos
I've checked it several times, but i2c_master module is correctly checked in the makefile file. Ideed other called procs from de i2c module link ok, and there are only this 3 ones that fail. I looked into the i2c module and I can't find none os these procs. My i2c module version is 'sc_i2c - 2.2.1rc0'.
Help with this would be great. Thanks for your time.
ea1ii, Carlos
Well, NickE. I've found those missing functions on the original lib from Arduino. Those functions are in the arduino I2C lib, for reading/writing bit/bits on 8/16 bitted registers. I've made a very quick implementation in the mcu source just to be able to start and test my gyro module.
The first thing I intend to do is to implement those bit functions into the I2C libray. Open to sugestions.
The first thing I intend to do is to implement those bit functions into the I2C libray. Open to sugestions.
I had forgotten that I had modified module_i2c_master to add the bit functions. I have updated the download to include the module.
Sorry about that.
Sorry about that.
Thank you, NickE. Great job. All works nice.
-
- Newbie
- Posts: 1
- Joined: Sun Mar 23, 2014 1:46 pm
It is also another way of testing its goodness. - C. Frederick Wehba
I read your post. Its very amazing and interesting post. I like it . You managed to hit the nail upon the top and outlined out the entire thing without having side effect http://www.fifa15coinsmall.com/Cheap-Fi ... Coins.html
L'organisation de Longchamp est vraiment une entreprise de produits de luxe basée à Londres, qui est plus connu pour les chaussures de luxe. Mis à part les chaussures mode et portable, la société peut également être grande à faire des sacs à main glamour avec une qualité majeure suprême
http://www.longchamppascherbien.fr
http://www.longchamppascherbien.fr