Kalman Filtered IMU via 5DOF Accelerometer/Gyro

Warning message

The Propeller Object Exchange system is decommissioned and replaced with a GitHub repository to house the same existing and future Propeller objects. As of 12/5/2019, this site is read-only. You can continue to browse and download objects from here for a limited time; however, please begin using the Parallax Propeller repository for future reference.
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 18
Request group membership
By: created: 2013-04-10 | updated: 2017-02-06


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
Package icon IMU_-_Archive__Date_20081.03.09__Time_21.22.zip34.53 KB