CoderDojoGitHub / robot1-series

Our first series of hardware and software hacking classes.
MIT License
0 stars 0 forks source link

Get micro-controller talking to the gryo #9

Closed skylar closed 10 years ago

skylar commented 10 years ago

This is a great goal for March 18.

skylar commented 10 years ago

@jonmagic what are you using to help guide you through the gyro intro? I'm going to collect some links here:

Breakout board overviews (I have the GY-521): http://playground.arduino.cc/Main/MPU-6050

Tutorial (sorta): http://www.botched.co.uk/pic-tutorials/mpu6050-setup-data-aquisition/

Code LIbs: http://www.i2cdevlib.com/devices/mpu6050#source

jonmagic commented 10 years ago

I2C scanner: http://playground.arduino.cc/Main/I2cScanner

Some board/chip description and code: http://www.geeetech.com/wiki/index.php/MPU-6050_Triple_Axis_Accelerometer_%26_Gyro_Breakout

skylar commented 10 years ago

Ported Spark lib: https://github.com/pkourany/MPU6050Spark

skylar commented 10 years ago

Good news, I got both versions working, raw and DMP. I had jumbled my includes a bit, but also the cloud compiler seemed to not like what he had in his repo exactly for that one. In any case, a couple steps to getting the DMP version running:

I'll try and jigger the code around to make the demo easier to work with, but next step is to start porting the robot code and the other related libs. Exciting!

jonmagic commented 10 years ago

:sparkles: what is the interrupt wire for?

jonmagic commented 10 years ago

:sparkles: what is the interrupt wire for?

jonmagic commented 10 years ago

@skylar could you share the DMP code you got working? I can't get the dmp code from the link above to compile in the web IDE or from the cli.