BBDO / CONV_MWAS

Converse Shoe Hack - Moonwalk All Star
0 stars 0 forks source link

How to initiate mpu–6050 for this openframeworks program #1

Closed eighteight closed 10 years ago

eighteight commented 10 years ago

Please let me know what arduino sketch I am supposed to upload to mpu–6050/arduino in order for it work with CONV_MWAS. I am using this exact hardware setup: http://www.geekmomprojects.com/geekmomprojects-wp/wp-content/uploads/2013/03/DSC_1292.jpg (taken from http://www.geekmomprojects.com/gyroscopes-and-accelerometers-on-a-chip/ ). I have tried to upload provided MPU6050_DMP6.ino and MPU6050_raw.ino, but did not receive any sensible results in the app. Thanks.

ghost commented 10 years ago

Hello! I noticed at the link you provided that there is an Arduino & Processing sketch. Do those work with your device?

If everything's good on that end, then maybe try the latest Arduino library that we used: https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050

Hope this helps!

eighteight commented 10 years ago

Yes, the sketches from that page work, and I am using latest from i2cdev. I am still not sure 1) whether I need to initialize arduino with an *.ino sketch for your openframeworks program to work 2) which arduino sketch is supposed to be used in 1)?

Thanks.

ghost commented 10 years ago

In hindsight I see how this is probably confusing. Unfortunately it's been close to a year since I've worked on this and sadly no longer have access to the hardware to check for you. My suggestion would be that if Arduino & Processing sketches are working, examine those... and just swap out the Processing sketch with my openFrameworks projects and make any necessary mods -OR- re-write the Processing sketch in openFrameworks and go from there.

Hope that helps!

eighteight commented 10 years ago

For the record: The things started moving. Steps I had to add for this to work:

  1. Connect Interrupt output on MPU6050 to interrupt input of the Arduino (pin #2 on Arduino UNO).
  2. Upload MPU6050_DMP6.ino sketch provided to arduino.
  3. Run executable, wait for prompt, press any key. Voila!
ghost commented 10 years ago

Awesome! :-)

I'm going to close this issue. Glad to hear you're sorted.

eighteight commented 10 years ago

Do you have any suggestion as to how to use MPU6050 for position acquisition (dead reckoning)?

Thanks.