Page 1 of 2

Breakout Board - Gyro, Accelerometer and Magnetometer

PostPosted: Tue May 28, 2013 9:47 pm
by Carl-SolderSplash
A small project I thought I would let you guys know about first.

We were asked to create a breakout board by a few people at the MakerFaires we have been attending. Basically a smaller version of the board we use for the Labyrinth controller

Image Image

So this is as small as we could go, keeping it all top sided and breaking out the most useful parts.

The board uses an Freescale MAG3110 MEMS Magnetometer and a LSM330 MEMS Accelerometer/Gyro. All three are triple axis, Giving you 9 Degrees of inertial measurement (9dof).

This board connects the 2 devices to an I2C bus and requires 3.3v

I shall provide the code for the DipCortex to enable data collection from the sensors. Will then hopefully look to port a Kalman filter to combine the data.

PCBs have been ordered a few weeks ago and should be with us in a few weeks. Will post them to the site once we have them built and talking! We also have a board that just has the LSM330 MEMS Accelerometer/Gyro and breaks out the SPI pins. Let us know if you are interested in that one over this I2C only version.

Re: Breakout Board - Gyro, Accelerometer and Magnetometer

PostPosted: Wed Jan 22, 2014 3:23 pm
by alexsho100
Hello
How can I get such board?
Preferable with parts on it.

Alex.

Re: Breakout Board - Gyro, Accelerometer and Magnetometer

PostPosted: Thu Jan 23, 2014 10:27 pm
by Carl-SolderSplash
You can order here : http://www.soldersplash.co.uk/shop/thre ... netometer/
We have the parts to build them in stock

Re: Breakout Board - Gyro, Accelerometer and Magnetometer

PostPosted: Tue Feb 04, 2014 5:38 pm
by alexsho100
Do you have a sample code of reading the sensors ?
Is SPI connections available in some way ?

Re: Breakout Board - Gyro, Accelerometer and Magnetometer

PostPosted: Wed Feb 05, 2014 1:41 pm
by andrewdlindsay
there is a mbed library for the MAG3110 as this was used in the Wi-Go board that Avnet produced based on the Freescale KL25Z.

thanks

Andrew

Re: Breakout Board - Gyro, Accelerometer and Magnetometer

PostPosted: Wed Feb 05, 2014 2:23 pm
by Carl-SolderSplash
Hi Alex,

Yes will look at pulling some code together for you, shall do that over the next day or so. As Andrew said the Mag3110 has a library on mbed for reference.

What platform/language are you going to use? mbed C/C++ or regular C?

Re: Breakout Board - Gyro, Accelerometer and Magnetometer

PostPosted: Thu Feb 06, 2014 3:21 pm
by alexsho100
Hi Carl,
I prefer plain C.
Do you have also source for LSM330 ?
Can I use the SPI connection on that board ?

Re: Breakout Board - Gyro, Accelerometer and Magnetometer

PostPosted: Thu Feb 06, 2014 7:51 pm
by Carl-SolderSplash
This board is I2C only,
Yes have source for the LSM330DLC as well

Re: Breakout Board - Gyro, Accelerometer and Magnetometer

PostPosted: Thu Feb 06, 2014 9:00 pm
by alexsho100
Ok so,
I'm waiting for the code.
Thank you.

Re: Breakout Board - Gyro, Accelerometer and Magnetometer

PostPosted: Fri Feb 07, 2014 12:17 am
by Carl-SolderSplash
Here it is : https://github.com/SolderSplashLabs/DipCortex-9Dof/

LSM330.c and MAG3110.c in this directory :

https://github.com/SolderSplashLabs/Dip ... of/src/lib

this shows you how to do the basic configuration of the two devices