Ok, so I was going to try and control a servo with an MPU 6050 using it's gyroscope capability first and then once I had done that, try out accelerometer capability.
I've tried looking all over the internet for how to set it up and code it but anything I try doesn't work. I solved a problem to do with some libraries so they don't trouble me any more, but I cannot get values from the gyroscope and can't control the servo. There's no evidence it is working by code or hardware apart from a few lights.
So my question is, does anyone know how to set it up, such as pins for the MPU gyroscope and especially the code which needs to be used?
You didn't post the code you're currently testing with, no link to the datasheet of the sensor, no link to the libraries used. Did you read the sticky post at the top of the forum?
Remove the servo, and try to make the MPU-6050 work by sending data to the serial monitor.
The Arduino board can not supply enough current at the 5V pin for the servo motor. You need a seperate power supply for the servo motor.
Is the MPU-6050 working at all ? If not, use the i2c_scanner. Also use 5V to the VCC of that board, it has a voltage regulator to make its own 3.3V. http://playground.arduino.cc/Main/I2cScanner
Look at that sketch, it sets the baudrate at 38400.
You have set the serial monitor in the Arduino IDE also to 38400.
There are more requests to use more than one MPU-6050 with the i2cdevlib. I don't know if Jeff Rowberg is working on that.
You can use two MPU-6050 on the same i2c bus (set one AD0 high by connecting it to 3.3V).
But with four you need a multiplexer for the i2c bus. For example a simple logic mux or a special chip.
Ok thankyou for that.
I adjusted the baud rate and it fixed my problem, I didn't even notice it wasn't set properly!
One other question:
First I should probably better explain what I want to do.
So I need to use 4 mpu's most likely just the gyroscope on it. I want to gather the values onto the Arduino and then wirelessly send them to another arduino through this awesome little shield: http://www.opensourcerf.com/rfd21815-wireless-inventors-shield-for-arduino.html. Schematic/manual for the shield is on the page for your reference.