MPU6150 connection failed - using Arduino Uno with LLC

IMU - Inertial Measurement Unit.
SanjeeviRangan
Posts: 10
Joined: Wed Mar 20, 2013 3:58 am

MPU6150 connection failed - using Arduino Uno with LLC

Postby SanjeeviRangan » Wed Mar 27, 2013 10:32 am

I have connected the newly arrived IMU 6DOF breakout board with Arduino Uno using LLC as recommended by explorelabs support. I didn't get the data successfully using the MPU6050_raw.ino example ( https://github.com/jrowberg/i2cdevlib/t ... PU6050_raw )

I tried getting the device id after initializing but accelgyro.getDeviceID() returns zero.

Is this the issue with the board or the connection? In the connection, int and 3.3v pin are left unconnected. The example code also doesn't uses any attachInterrupt()

The connections suggested by explorelabs support is given below:

If you are using a Logic Level Converter:

LV -> 3.3V (Uno)
HV -> 5V (Uno)

L1 -> SDA (Sensor)
H1 -> SDA (Uno)

L2 -> SCL (Sensor)
H2 -> SCL (Uno)

GND -> GND (of Sensor and Uno, both)
abhimanyu
Posts: 94
Joined: Tue Oct 18, 2011 9:49 pm

Re: MPU6150 connection failed - using Arduino Uno with LLC

Postby abhimanyu » Wed Mar 27, 2013 10:58 am

INT pin should be left unconnected for RAW sketch but you have to connect the 3.3V pin to (Arduino or LLC)'s 3.3V Pin to power up the board. The following is a basic pinout (revised) to capture 6DoF data if you are using a Logic Level Converter:

LV -> 3.3V (Uno and Sensor) *Revised*
HV -> 5V (Uno)

L1 -> SDA (Sensor)
H1 -> SDA (Uno)

L2 -> SCL (Sensor)
H2 -> SCL (Uno)

GND -> GND (of Sensor and Uno, both)

Post here in case of any doubts.
SanjeeviRangan
Posts: 10
Joined: Wed Mar 20, 2013 3:58 am

Re: MPU6150 connection failed - using Arduino Uno with LLC

Postby SanjeeviRangan » Wed Mar 27, 2013 11:00 am

Cool. Waiting for this confirmation :) Thanks!

-Sanjeevi
SanjeeviRangan
Posts: 10
Joined: Wed Mar 20, 2013 3:58 am

Re: MPU6150 connection failed - using Arduino Uno with LLC

Postby SanjeeviRangan » Wed Mar 27, 2013 11:18 am

I have connected the LV 3.3V to both Uno and sensor. But still the device id returns 0 and connection fails.

Initializing I2C devices...
Sensor Device ID: 0
Testing device connections...
MPU6050 connection failed
abhimanyu
Posts: 94
Joined: Tue Oct 18, 2011 9:49 pm

Re: MPU6150 connection failed - using Arduino Uno with LLC

Postby abhimanyu » Wed Mar 27, 2013 12:24 pm

What is the status of Pull-ups on the bottom side of the PCB? They should be enabled using a Solder Bridge (blob).

Also, could you post a picture of your setup?
SanjeeviRangan
Posts: 10
Joined: Wed Mar 20, 2013 3:58 am

Re: MPU6150 connection failed - using Arduino Uno with LLC

Postby SanjeeviRangan » Wed Mar 27, 2013 12:36 pm

I understand they are enabled by default. I didn't change anything in the board since the delivery. I can post the picture of my setup once I am back to office tomorrow morning.

-Sanjeevi
abhimanyu
Posts: 94
Joined: Tue Oct 18, 2011 9:49 pm

Re: MPU6150 connection failed - using Arduino Uno with LLC

Postby abhimanyu » Wed Mar 27, 2013 3:36 pm

Check if the MPU-6150 IC is getting detected or not using the following I2C Scanner:

Krodal I2CScan

You should get something like this:
I2C Scanner
Scanning...
I2C device found at address 0x68 !
done
SanjeeviRangan
Posts: 10
Joined: Wed Mar 20, 2013 3:58 am

Re: MPU6150 connection failed - using Arduino Uno with LLC

Postby SanjeeviRangan » Thu Mar 28, 2013 5:48 am

The I2C scanner says "No I2C devices found"

I tried printing the Wire.endTransmission() return value and it is value "2" for all addresses.
Attachments
IMU6DOF_LLC_UNO_lowres.jpg
The setup of IMU6DOF with UNO using LLC
IMU6DOF_LLC_UNO_lowres.jpg (203.79 KiB) Viewed 5367 times
abhimanyu
Posts: 94
Joined: Tue Oct 18, 2011 9:49 pm

Re: MPU6150 connection failed - using Arduino Uno with LLC

Postby abhimanyu » Thu Mar 28, 2013 6:22 am

There is one problem!
Loose connections.

Since you have not soldered the wires to IMU and LLC, there is intermittent connection between the devices.
Solder the wires to the PCBs or use Male Breakaway headers.
SanjeeviRangan
Posts: 10
Joined: Wed Mar 20, 2013 3:58 am

Re: MPU6150 connection failed - using Arduino Uno with LLC

Postby SanjeeviRangan » Sat Mar 30, 2013 6:21 am

I have used male breakaway headers on bread board and still I am facing the issue. This could only be the loose connection issue? If so, then I ll go for soldering the wires on the board.

Is there a way that I can test (before soldering) whether the sensor breakout board that I received is not a faulty board?

Return to “IMU”

Who is online

Users browsing this forum: No registered users and 0 guests