Offline
Newbie
Karma: 0
Posts: 3
|
 |
« on: February 01, 2012, 10:05:21 am » |
Hi all, I got a MPU-6050 from invensense from the guys at drotek http://www.drotek.fr/shop/en/42-mpu6050-gyro-accelerometer.html and I haven't been able to get anything out of that chip, not even an address with this I2C scanner http://todbot.com/arduino/sketches/I2CScanner/I2CScanner.pde. I have set it up using the sparkfun logic level converter http://www.sparkfun.com/products/8745, using both TX pin pairs for sda and scl. The level converter has built in pull-up resistors and I can measure 5v on the sda and scl pins on the arduino. The MPU is powered by the arduino 3.3v pin. Aside from a faulty/fried device, what could cause me not to see the chip at all on the i2c bus? I am new to all this and any help is very much appreciated, thank you.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #1 on: February 01, 2012, 12:37:26 pm » |
Beginner`s mistake! For future reference, I was able to make my setup work by using shorter wires that have lower gauge.
|
|
|
|
|
Logged
|
|
|
|
|
Montreal, QC
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #2 on: February 02, 2012, 05:18:38 pm » |
Oh yes? How short / thick do the wires have to be? And how long did you have them in the first place? Considering buying the MPU-6050 drotek board myself, so it's good to hear you got it running. Found some other reports online, that they actually send it out with a wrong chip mounted on it: http://www.varesano.net/blog/fabio/mpu6050-finally
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #3 on: February 02, 2012, 10:11:46 pm » |
Hi, yes I saw those reports too so I made sure I checked the chip when I got it. Originally I was using the sparkfun jumper wires that come with the arduino kit they sell http://www.sparkfun.com/products/11026, I had no idea this could make a difference. Now it`s hooked up using 22 gauge wire http://www.robotshop.com/ca/elenco-22-gauge-green-25-ft-1.html. As for the length of the cable, the setup looks like this now (bit messy)  Good luck with your project!
|
|
|
|
|
Logged
|
|
|
|
|
Montreal, QC
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #4 on: February 03, 2012, 12:50:38 pm » |
Maybe one of the jumper wires was faulty. Hard to believe that they would make a big difference. I was more anticipating that you had first used a meter-long wire or so .. 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Offline
Edison Member
Karma: 9
Posts: 1001
|
 |
« Reply #6 on: June 22, 2012, 01:17:38 pm » |
Hello Woodstock, You started a new question on an old post. For this you could better start a new post. I have made a page for the MPU-6050 : http://arduino.cc/playground/Main/MPU-6050You have to check the datasheet, to check which the signal lines on the pins of the boards.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 36
|
 |
« Reply #7 on: July 19, 2012, 08:43:26 am » |
Sorry for my late reply...
Ok Krodal, thank you for the link.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #8 on: July 28, 2012, 09:07:39 pm » |
Hello everyone! I,m from Russia and sorry for english at first! ) I have some problems with my MPU6050 (Sparkfun edition) htts://www.sparkfun.com/products/11028I connect SCL on the board to A5 and SDA to A4 inputs with pull-up resistors (10k or 4,7k) on Ardruino MEGA. GND to Ground & VDD to 3,3V. But I2C Scanner didn't find my MPU6050 board. What i do wrong????!!!! Please Help ME! ((ß
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #10 on: July 29, 2012, 03:02:48 am » |
Thank you!! ))) I forgot it! But on 20-21 SDA/SCL don't work too!!! ((( Maybe i must change some options more on mega??? But i try to catch I2C signal from ASCL / ASDA pins on the board, and when i try it - program immediately hangs (stopped on "Scanning" step)... What does matter maybe??
|
|
|
|
« Last Edit: July 29, 2012, 03:11:00 am by IvanDeft »
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 9
Posts: 1001
|
 |
« Reply #11 on: July 30, 2012, 12:03:16 am » |
Is this your sensor board : https://www.sparkfun.com/products/11028If the I2C can't continue, perhaps something is keeping the line low. You might have mixed up the SDA and SCL, or the pull-up resistors are missing, or you use very long wires, or you accidently used ASCL and ASDA (which are for a second sub-i2c bus), or the voltage is wrong, or de sensor is damaged, or something else.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 36
|
 |
« Reply #12 on: July 31, 2012, 09:33:39 am » |
Hi please, can someone post an image with the links between MPU6050 (htts://www.sparkfun.com/products/11028) and arduino?? Because I don't understand how and if I must add the 4.7K resistors. I read some post regard MPU6050 but someone use the resistors and other don't... example in this post --> arduino.cc/forum/index.php/topic,103408.0.html
Thank you so much!
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 9
Posts: 1001
|
 |
« Reply #13 on: July 31, 2012, 11:45:28 am » |
The first picture in this page shows how : http://arduino.cc/playground/Main/I2CBi-directionalLevelShifterBut the Sparkfun breakout board has already 10k pull-up resistors. You don't really need extra pull-up resistors, but 4k7 is better than 10k. So you could add two 10k pull-up resistors (10k parallel 10k becomes 5k). But that's just an improvement. The breakout board should work if those 10k on the breakout board are soldered properly.
|
|
|
|
|
Logged
|
|
|
|
|
|