MPU-6050 DMP on Startkit

XCore Project reviews, ideas, videos and proposals.
NickE
Member
Posts: 10
Joined: Sun Dec 22, 2013 11:09 pm

MPU-6050 DMP on Startkit

Postby NickE » Sat Jan 25, 2014 9:15 pm

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:
User avatar
ea1ii
Member
Posts: 8
Joined: Mon Jan 13, 2014 3:16 am

Postby ea1ii » Tue Feb 25, 2014 1:24 am

 
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?)
 
NickE
Member
Posts: 10
Joined: Sun Dec 22, 2013 11:09 pm

Postby NickE » Fri Feb 28, 2014 3:09 pm

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.
User avatar
ea1ii
Member
Posts: 8
Joined: Mon Jan 13, 2014 3:16 am

Postby ea1ii » Fri Feb 28, 2014 3:20 pm

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
User avatar
ea1ii
Member
Posts: 8
Joined: Mon Jan 13, 2014 3:16 am

Postby ea1ii » Sat Mar 01, 2014 3:34 pm

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.
 
NickE
Member
Posts: 10
Joined: Sun Dec 22, 2013 11:09 pm

Postby NickE » Sat Mar 01, 2014 5:08 pm

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.
User avatar
ea1ii
Member
Posts: 8
Joined: Mon Jan 13, 2014 3:16 am

Postby ea1ii » Mon Mar 03, 2014 8:24 pm

Thank you, NickE. Great job. All works nice.
lucinachar2014
Newbie
Posts: 1
Joined: Sun Mar 23, 2014 1:46 pm

Postby lucinachar2014 » Sun Mar 23, 2014 4:19 pm

It is also another way of testing its goodness. - C. Frederick Wehba
Monskan
New User
Posts: 2
Joined: Mon Jan 05, 2015 3:34 am

Postby Monskan » Mon Jan 05, 2015 6:21 am

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
linkan
Newbie
Posts: 1
Joined: Thu Oct 01, 2015 10:44 am

Postby linkan » Thu Oct 01, 2015 10:52 am

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

Who is online

Users browsing this forum: No registered users and 0 guests