Examine different accelerometer and gyroscopes to work with the raspberry pi

In order to detect potholes in the street we need to track the vertical movement of the car.
To realise this task we need a special sensor, an accelerometer. This sensor can capture movements in all three axis. In the future we could combine it with the data from a gyroscope. This way, we also get an impression on the rotational forces that acting on the car.

There are a some accelerometers that are compatible with the raspberry pi. We have to find one that is easy to connect to the pi, has a easy way to fetch the data, is not that expensive and has an optional gyroscope right built in. Let’s take a look at the common ones:


MPU-6050
gyro, accelerometer

The MPU-6050 is compatible with the raspberry pi over the i2c interface
https://iotprotocols.wordpress.com/2015/03/17/solder-a-mpu-6050-to-stick-on-a-raspberry-pi/
It also contains a gyro which could potentially also be used for pothole detection.
http://playground.arduino.cc/Main/MPU-6050
costs: around 6€


MMA7455
accelerometer

The Freescale MMA7455L sensor is a 3-axis, 10-bit accelerometer with i2c interface
should be compatible with the raspberry pi, several tutorials available.
http://playground.arduino.cc/Main/MMA7455
http://ddi.uni-wuppertal.de/material/materialsammlung/mittelstufe/raspberry/info_04_gpio_beschleunigungssensor.pdf
http://linux.activityworkshop.net/raspberry_pi/accelerometer.html

costs: around 8€


ADXL345
accelerometer

i2c interface

http://www.stuffaboutcode.com/2014/06/raspberry-pi-adxl345-accelerometer.html
https://blog.adafruit.com/2014/07/04/adxl345-accelerometer-python-for-raspberry-pi/
http://wiki.analog.com/resources/tools-software/linux-drivers/input-misc/adxl345

costs: 17€


BerryIMU which uses a LSM9DS0
accelerometer, gyroscope, magnetometer and barometric/altitude sensor

The BerryIMU hat an i2c interface. It comes with a lot sensors integrated which are not really needed, but would be nice to have for future additions.

http://ozzmaker.com/2014/12/11/berryimu/

costs: 37€


In conclusion the MPU-6050 is our top candidate. Some team members already worked with this sensor, its good documented, has an gyroscope already built in and its fairly cheap.

In an upcoming blogpost, we will take a look on the amount and actual placement of the sensors.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s