Hi,
I have a slight problem with the MPU 6050. When i plug Arduino UNO straight in to laptop and use Serial Monitor All works fine
But if i use USB extension Lead or Plug it to a Raspberry PI via a powered USB hub, My values are always returned as 0, but when I plug back in to laptop direct same program returns actual values from the sensor.
Is this because there is not enough power getting to it?
Thanks in advance for any advice
Is this because there is not enough power getting to it?
Could be,
IIRC the raspberry only supplies 3.3V (IIRC) , and the sensor may need a straight 5V. Check the datasheet for specifications.
If you have a voltmeter (DMM) you can measure the voltage when working and when not.
(A DMM is one of the first tools you need, even the cheap ones are working quite well)
Thanks
Ill check with voltmeter tommorow. Just found someone saying that you get a voltage drop with long USB cables (6 meters brings down to around 4.7v) and i was using 10m USB extension.
A good quality USB cable can be 5 meters long. If you need more length, you have to use a powered hub every 5 meters.
Some cheap USB cables from Ebay have such thin wires (sometimes even with other metals than copper) that 1 meter cable could be too long.