MW reads 0 from the MPU6050

Post Reply
Turakar
Posts: 4
Joined: Sat Nov 23, 2013 9:04 pm

MW reads 0 from the MPU6050

Post by Turakar »

Hi,
I have connected a ProMicro from Flyduino with a MPU6050 from eBay. Once I upload the MultiWii 2.3 firmware with the MPU activated in the config, the MultiWiiConf shows no I2C errors and a value of 0 by
Roll, pitch and yaw. If I upload an other sketch (an example from a MPU6050 library) I can read the raw values. How can I fix my problem?

tovrin
Posts: 705
Joined: Tue Sep 20, 2011 4:08 pm

Re: MW reads 0 from the MPU6050

Post by tovrin »

please list the settings you are using for the sketch. include links to the FC and chip you bought to help insure we understand exactly what you have.

Turakar
Posts: 4
Joined: Sat Nov 23, 2013 9:04 pm

Re: MW reads 0 from the MPU6050

Post by Turakar »

I'm using a MPU6050 Breakout board which I can't find at the moment. However the Pro Micro can be bought http://flyduino.net/Flyduino-Pro-Micro-16Mhz-5V-Schwarz-16mm-PCB.
In the config.h the following defines are activated:
# define QUADX
#define MPU6050
#define FORCE_GYRO_ORIENTATION (Tested without this setting)
#define FORCE_ACC_ORIENTATION (Tested without this setting)
#define USE_INTERNAL_PULLUPS (Tested without this setting)
#define MIN_THROTTLE (The one for SimonK ESCs)

The MPU6050 is connected in the following way:
MPU - ProMicro
VCC - RAW
GND - GND
AD0 - GND
INT - not connected
SCL - D3
SDA - D2
XDA - not connected
XCL - not connected
(there might be a connection because of the tin used between XDA and SCL)

Further notes about the example sketch from the MPU Library:
- library: http://www.i2cdevlib.com/devices/mpu6050#source
- sketch: https://github.com/jrowberg/i2cdevlib/blob/master/Arduino/MPU6050/Examples/MPU6050_raw/MPU6050_raw.ino

Thanl you for help,
Turakar

Turakar
Posts: 4
Joined: Sat Nov 23, 2013 9:04 pm

Re: MW reads 0 from the MPU6050

Post by Turakar »

Because I thought it might have been my connection I reassembled it. Now i have a lot of I2Cs errors.

tovrin
Posts: 705
Joined: Tue Sep 20, 2011 4:08 pm

Re: MW reads 0 from the MPU6050

Post by tovrin »

I tend to use prebuilt FC boards now because i had huge issues with my inability to solder micro connections.

this is what i use on my smaller quads now! basicallyt he same as you are building and only $15 american.
http://witespyquad.gostorego.com/flight ... oller.html

Turakar
Posts: 4
Joined: Sat Nov 23, 2013 9:04 pm

Re: MW reads 0 from the MPU6050

Post by Turakar »

I think my MPU is was destroyed by soldering it (too high temperature on the MPU). A new one would cost the same as your FC, but do you know how good the shipping to Germany is?

tovrin
Posts: 705
Joined: Tue Sep 20, 2011 4:08 pm

Re: MW reads 0 from the MPU6050

Post by tovrin »

I do not, but you can email the site owner, hes very quick to reply usually.

Post Reply