Kalman Filtered IMU via 5DOF Accelerometer/Gyro

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: Jwood , created: 2013-04-10 | updated: 2013-04-10

 

This object uses an ADC to take readings from a 5DOF Accelerometer/Gyro unit and send them through a Kalman filter. This filter maintains an accurate angle, gyro rate and gyro bias based on the noisy readings. Hook up the MCP3208 ADC to the 5DOF circuit like the object shows. Then start up the filter. After that use the reading for balancing a robot or flying an aircraft.

update: Fixed a few bugs and set the correct stackspace (with a little extra)

update: Added 2 axis. You now use these functions: get_angle_pitch, get_angle_roll, get_rate_pitch, get_rate_roll, get_q_bias_pitch, get_q_bias_roll

 

Original File Upload
AttachmentSize
IMU_-_Archive__Date_20081.03.09__Time_21.22.zip34.53 KB