Hello,
I have the Triple Axis Accelerometer & Gyro Breakout - MPU-6050
something similar to this:
I have download the zip file from here: https://github.com/jrowberg/i2cdevlib/zipball/master
Opened the example file MPU605_DMP6 which is 6axis gyroscope and Accelerometer.
the code is uploaded to the board without any error.
the board has following pins
5V
3V3
GND
SCL
SDA
INT
SYNC
CLK
ASCL
ASDA
Used the following code but did not find any guide about the board on how to connect it to arduino.
Would someone please tell me except 5v, 3.3v and GND I don't know which Arduino pin to connect to?
I have soldered the board to the
Your board has a 3.3V voltage regulator on the breakout board, so if you connect the +5V of the Arduino to the +5V of the breakout board, it will make its own 3.3V.
Connect the ground.
Connect SDA to Arduino A4 (analog input 4 is Arduino's SDA).
Connect SCL to Arduion A5 (analog input 5 is Arduino's SCL).
Run the i2c_scanner and see if it can be found.
Thank you Krodal,
I did run the I2C scanner and it found the device
------------------ result ---------------
I2C Scanner
Scanning...
I2C device found at address 0x68 !
done
--------------------- result end ------------
Read the section "Measurements" on that page : Arduino Playground - MPU-6050
So your values are okay. But you need some filtering or averaging in software.
For the libraries of Jeff Rowberg, you have to connect 'INT' to pin 2 (INT0).
#define OUTPUT_READABLE_QUATERNION
// uncomment "OUTPUT_READABLE_EULER" if you want to see Euler angles
// (in degrees) calculated from the quaternions coming from the FIFO.
// Note that Euler angles suffer from gimbal lock (for more info, see
// http://en.wikipedia.org/wiki/Gimbal_lock)
#define OUTPUT_READABLE_EULER
and I get this "Pÿò[$" this code which seems unreadable by the monitor or it is a binary code.
There are analog sensors. With those you connect x,y,z to three analog inputs. With an analog gyro and an analog accelerator you need 6 analog input.
But that would not change anything.......