I tried my GY-521 Accelerometer+Gyro breakout today. The board come with a MPU 6050 chip and connect to Arduino through I2C, which I barely understand. The connection is really simple.
Arduino +5V to VCC
Arduino GND to GND
Arduino analog input pin A4 to SDA
Arduino analog input pin A5 to SCL
There is I2C scanner sketch to first ensure it's correctly connected through I2C bus.
Then I found a pretty complicated code on Arduino website. Then BANG! It works.
There will be a lot of work to understand how it works......So I wrote this as a place holder and hopefully will add more when I understand it better.
Another useful stuff I have discovered today is that Arduino can talk to the computer by serial monitor. Then I guess I don't need the LCD very often now.
No comments:
Post a Comment