Go Down

Topic: simulate MPU-6050. (Read 2464 times) previous topic - next topic

grimreaper

Hey.

Is there any way i could simulate my MPU-6050, using the teapot or MWC software, I've been searching for the correct arduino sketch plus the correct version of the software, I have a feeling that my simulation is not working because i'm getting those two wrong. Could anyone give me correct links? I'm using arduino version 1.0.1.

Thanks

Krodal

#1
Aug 11, 2012, 10:45 am Last Edit: Aug 11, 2012, 10:48 am by Krodal Reason: 1
I don't know what teapot or MWC software is.
You could alter my sketch perhaps. I wrote if for Arduino 1.0.1
http://arduino.cc/playground/Main/MPU-6050

edit: I saw your name, and realized you know that sketch already for a previous thread. Can you give some links for the simulating software ?

freak174

I think he is talking about this software
http://www.invensense.com/developers/index.php?_r=downloads

And I believe you can use this code to make the teapot work
https://github.com/jrowberg/i2cdevlib/blob/master/Arduino/MPU6050/Examples/MPU6050_DMP6/MPU6050_DMP6.ino

What are the sensitivity values for the mpu6050? (for both the gyro and acc, sry for hijacking this thread now).
I cant find them in the datasheet, or Im blind hehe

Krodal

I didn't understand the software of InvenSense.
As fas as I looked into it, their software seems to be for their development board.
Questions about that can perhaps asked at the discussion forum of InvenSense.


What are the sensitivity values for the mpu6050? (for both the gyro and acc, sry for hijacking this thread now).
I cant find them in the datasheet, or Im blind hehe


Go here : http://www.invensense.com/mems/gyro/mpu6050.html
And you need the 'PS' and the 'RM' document.
Accelerometer : 2,4,8,16 g
Gyro : 250,500,1000,2000 degrees per second

freak174

Oh Ive saw this kind of sensitivity but thats not what Im after (once again sorry for borrowing ur thread).

But what Im really looking for is sensitivity in mV/g for the accelerometer and mV/(deg / s) for the gyro.
cheers

Krodal

There is no mV/g or mV/(deg/s).
The communication with he sensor is digital. So the sensor returns an 16-bit integer.

grimreaper

Sorry for the late reply.
@krodal  As a matter of fact, i did try your code and it worked perfect. Now i wanted to have some visual feedback, so decided to look ways on simulating it.

@freak174 i registered in invensense, but still was not able to download their teapot software zip. It's not freeware? I did try downloading it from another site, but it returned an error during installation. The code seems to be fine. I also added the MPU6050 and the i2cdev library files.. Is there any other place where i can get my hands on the teapot software?


Thanks

Krodal


...
i registered in invensense, but still was not able to download their teapot software zip. It's not freeware?
...


Go to http://www.invensense.com
Developer's Corner - Login - Downloads - Teapot - Agree - Teapot

grimreaper

Yep got it. :D installed it.as told in              https://docs.google.com/viewer?a=v&q=cache:wGOxZcVHj58J:invensense.com/mems/gyro/documents/AN-MPU-9150IMF%2520InvenSense%2520MotionFit%2520SDK%2520Quick%2520Start%2520Guide.pdf+&hl=en&gl=in&pid=bl&srcid=ADGEESherjc2YJZQFLGmgss8FyOOLPoaW54oy0MKNtOgtBg9Hv0uEqDKW6dwtYOnUBWwMtd3Q93DTOCnTMWioGhLtTr3bdSKj0j1IksdsAqIcoQhmNT4ozaLJLiFwZdX6Li5bgDa6Dnd&sig=AHIEtbR9iVy9UWZJyH1_BBo4sL_BmzkpTw               , page 8 Created a shortcut and added COM4 to the target, but it still says "unable to open port", when clicked. The arduino is connected to COM4, checked via serial monitor, working perfectly. Any suggestions?

Krodal

This is the link to the document : http://www.invensense.com/mems/gyro/documents/AN-MPU-9150IMF%20InvenSense%20MotionFit%20SDK%20Quick%20Start%20Guide.pdf

About COM4, I don't know.

grimreaper

Actually, that's the same document. Well if you do try it, please let me know. :)

Go Up