Missing MeCompass functions in Makeblock library V2.1.0916


#1

Hi,

Using Starter Robot Kit, mblock and Arduino IDE on Mac OS Yosemite.

I just bought and installed the new MeCompass module and found out that source code is not yet delivered. Functions do not appear within Makeblock library neither within a standalone library.

By the way I can see on GitHub download page that 1 month ago MeCompass.h file was deleted from Makeblock library :
https://github.com/Makeblock-official/Makeblock-Library

So I have a simple question : When will you, Makeblock team, add MeCompass code in library ?
Or is there another library (Arduino pack ?) giving header file and code for that ?

Thanks for help.


Library for MeCompass module available at GitHub:I2Cdev
#2

Hello,

I have seen that library depot have been updated but nothing about MeCompass.
Any one concerned by this module ?

Could you, Makeblock team, provide some infos about when MeCompass library will be delivered ? Is there another way to get the code ?

Thanks.


#3

Basically the same question: Where can I find a copy of MeCompass.h to include with the example MeCompass.ino code?

Best regards,

moveover


#4

Hi xtemps,

I located the Accelerometer + Gyro (+ Temperature) sketch, MPU6050, on the Arduino.cc website. It is the same device as on the Accel+Gyro card. It compiled and loaded okay off the Arduino.cc example code. I used my Me_Orion (UNO-clone) Port 8.

I also located another useful utility on the Arduino.cc site, I2CScanner. I used it to verify my Orion I2C functioned with the MeCompass I2C. It worked.

Granted, this does not get the MeCompass working, but I am more hopeful that the reason the code examples from Makeblock are lagging a bit, is that - for the MPU6050, for instance - getting raw values is “easy,” but creating code that is useful is not, as described in detail by the programmers description for his application on Arduino.cc.

So, when I find an example that works with MeCompass, I’ll post a note here.

Brgds.

moveover


#5

Hi xtemps,
I found an example sketch on GitHub using the following link: https://github.com/jrowberg/i2cdevlib

I located this site after searching for more information about the HMC5883L chip used to build the MeCompass block (refer to MeCompass electronic module Wiki information).

More information on the use of the I2Cdev library is located in the Readme file for I2Cdev on GitHub. I followed the developer’s recommendations to be sure I installed the library files correctly. I then opened up, and compile, the example sketch: HMC5883L_raw.ino.

Note: It took me a couple of iterations, because I initially copied the library files to the incorrect location. It was obvious from the compiler errors that it couldn’t find the libraries. The Arduino.cc website explained how to correct the errors by using the manual library installation method.

After successfully compiling the above sketch, it downloaded and ran first on an Arduino Uno, with the MeCompass module attached to Port 4, of the MeArduino Shield that I installed on the Uno. I next ran the same code on the Makeblock Me Orion board, again with the MeCompass module connected to Port 4. (The other available color-coded ports also worked with the MeCompass.)

I hope this information helps. Along with the information provided in the Makeblock Wiki about the MeCompass, the manufacturer’s data sheets, and the I2Cdev library for the HMC5883L chip, I think it does just about everything I expected it to do.

Best regards,

moveover


#6

Oops! It looks like all the previous information about the MeCompass electronic module is now gone. Oh well! Never mind! Just to summarize though: I got my MeCompass modules to work using libraries developed by I2Cdev.


#7

Hi xtemps,

The MeCompass library files can be found from original Makeblock-Library github commit history:
https://github.com/Makeblock-official/Makeblock-Library/tree/151315d63dea472b30d48ac50a0843d432d29f0c/makeblock

Br,
mcmatrix


#8

Hi,

Well I have tried another code but had trouble with measurement constance and calibration.
I will try this code which seems more complete, hoping no dependencies are broken.

Thanks for info.

BR
xtemps


#9

Hi,

Just use the latest library, V 3.22: Makeblock Library V 3.22.
V 2.1 is outdated since at least 3 Months.
Cheers, Stefan


#10