Arduino UNO working with the model GY-521 MPU6050 gyro to control a servo. I found Luka's video that shows this combination working correctly. Unfortunately, he doesn't give the pinout information and one of the required libraries is missing from his code. I messed with it until I got it figured out. I hope this saves others some aggravation.
MPU6050_____UNO
VCC_________3.3v
GND_________GND
SCL_________PinA5
SDA_________PinA4
Pins XDA, XCL, ADO and INT on the MPU6050 are not used. The servo's signal wire is connected to Pin9, and the +5v and GND are connected to the same on the UNO.
I2cdevlib available here:
[ Ссылка ]
The Arduino is mounted on my 3D printed Arduino/Lego Mount which is available from Shapeways here:
[ Ссылка ]
[ Ссылка ]
Further details and the corrected code are available on my blog.
[ Ссылка ]
Ещё видео!