which Sparkfun accelerometer is recommended for use with Raspberry Pi 3 B+

Hi,

I am interested in the MPU-6050 Triple Axis Accelerometer and Gyro Breakout. However, all the code samples and libraries are for Arduino.

How easy/hard is it to use this Sparkfun MPU-6050 breakout with the Raspberry Pi?

If you do not recommend using this breakout with the Raspberry PI, which Sparkfun accelerometer (with this range: ±2g, ±4g, ±8g ) do you recommend using with the Raspberry PI?

Thanks,

GH.

I think that you should be able to easily use the MPU-6050 with the Raspberry Pi considering the Pi has i2c functionality.

Keep in mind that the i2c pins on the Pi are 3.3v and the i2c pins on our MPU-6050 should work fine interfacing with 3.3v i2c lines. Always double check I2c pins on both devices and make sure you do not need a level shifter or if you may have to remove pull-up resistors as some sensors may be 3.3v and some controllers may be 5v on the i2c lines.

Hardware connections should be:

Raspberry Pi - MPU 6050

Pin 1 (3.3V) - VCC

Pin 3 (SDA) - SDA

Pin 5 (SCL) - SCL

Pin 6 (GND) - GND

If you need to find code and more instructions on how to interface these 2 devices you can Google “Raspberry Pi MPU-6050” and find a forum or tutorial that best explains how to work with the parts in you preferred method of learning.

We also have a well written tutorial about the Pi and I2c here if you seek more details: https://learn.sparkfun.com/tutorials/ra … torial/all

@TS-John: thanks for the really useful feedback and the helpful tip on I2C! Can’t wait to try it out with the Rpi3.

Glad I could help! Let us know if you need anything else and happy hacking!