Since a week ago, I ‘ve been looking into my new IMU: Inertial Measurement Unit.
I bought from e-bay a MPU6050, a sensor including:
- a gyroscope that can return the angular speed around the 3 axis x,y,z.
- an accelerometer that can return the linear acceleration along the 3 axis x,y,z.
This sensor can communicate trou I2C interface.
Below the electrical drawing:
For the sw installation I fuond a clear tutorial on the Adafruit website ,so I just report here a memo for the necessary steps:
in sudo nano /etc/modules add:
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
in sudo nano /etc/modprobe.d/raspi-blacklist.conf comment:
- #blacklist spi-bcm2708
- #blacklist i2c-bcm2708
Now ,running the command sudo i2cdetect -y 1 yuo have to see the address 0x68, corresponding to the default sensor address.