Author Topic: Cheap Inertial measurement unit (IMU)  (Read 3237 times)

0 Members and 1 Guest are viewing this topic.

Offline hamster_nzTopic starter

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Cheap Inertial measurement unit (IMU)
« on: January 10, 2016, 08:32:23 pm »
I've been playing around with an inexpensive (<$10 incl shipping) MPU6050-based IMU, which is a 3-Axis Gyro+ 3-Axis Accelerometer + a Kalman filter which gives Attitude (roll, pitch & yaw).

http://www.dx.com/p/mpu6050-serial-6-axis-accelerometer-gyroscope-module-kalman-filtering-angle-output-for-arduino-414210

As it uses TTL-level serial it was easy to got it running with a Raspberry Pi Zero and an FPGA board, and now just have to find something useful to do with it!

The manual that is linked to with the part is all in Chinese, so I've documented things on my Wiki if anybody else wants to play with one. See http://hamsterworks.co.nz/mediawiki/index.php/MPU6050_sensor &
http://hamsterworks.co.nz/mediawiki/index.php/MPU6050_sensor_RTL
« Last Edit: January 10, 2016, 10:30:38 pm by hamster_nz »
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Cheap Inertial measurement unit (IMU)
« Reply #1 on: January 10, 2016, 09:14:14 pm »
A far more authoritative source of information is invensense' ducumentation / code on dmp.
================================
https://dannyelectronics.wordpress.com/
 

Offline hamster_nzTopic starter

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: Cheap Inertial measurement unit (IMU)
« Reply #2 on: January 10, 2016, 10:40:22 pm »
A far more authoritative source of information is invensense' ducumentation / code on dmp.

True, but this board has a little bit more on it - it processes the raw Gyro / Accelerometer data to give roll/pitch/yaw, and then reports over RS232, so you can avoid all that yeachy math stuff, making it simple to use with a small controller.

So you don't actually need to talk I2C to the sensor itself, or port the Invensense driver to your controller.

Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11630
  • Country: my
  • reassessing directives...
Re: Cheap Inertial measurement unit (IMU)
« Reply #3 on: January 10, 2016, 11:59:53 pm »
are you sure it has kalman filter built in? the datasheet only mentioned "low pass filter" signal conditioning... http://www.seeedstudio.com/wiki/images/b/b1/MPU6050.pdf i have few of them for future rc project...
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline hamster_nzTopic starter

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: Cheap Inertial measurement unit (IMU)
« Reply #4 on: January 11, 2016, 12:49:44 am »
are you sure it has kalman filter built in? the datasheet only mentioned "low pass filter" signal conditioning... http://www.seeedstudio.com/wiki/images/b/b1/MPU6050.pdf i have few of them for future rc project...

Definitely - this the decoded serial data :

Code: [Select]
...
1452329359.732404 Acceleration   -1.49   -6.24   -7.65  (   9.98)
1452329359.745713 Rotation       -2.44    0.31   -0.55
1452329359.756980 Attitude      140.84    9.72   90.73
1452329359.776160 Acceleration   -1.51   -6.29   -7.69  (  10.05)
1452329359.789532 Rotation       -2.44    0.37   -0.37
1452329359.800751 Attitude      140.84    9.72   90.73
1452329359.819940 Acceleration   -1.49   -6.26   -7.66  (  10.01)
1452329359.833240 Rotation       -2.44    0.43   -0.49
1452329359.844507 Attitude      140.84    9.72   90.73
...

There looks to be an additional MCU from ST on it, running the filter and interface.

http://www.dx.com/p/mpu6050-serial-6-axis-accelerometer-gyroscope-module-kalman-filtering-angle-output-for-arduino-414210

Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf