Pages: [1]   Go Down
Author Topic: simulate MPU-6050.  (Read 1934 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1015
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
« Last Edit: August 11, 2012, 03:48:24 am by Krodal » Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 101
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1015
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 101
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1015
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1015
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

...
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
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yep got it. smiley-grin 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?
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1015
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: