Home Contents Start Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Next

Phase 9: Sensor Fusion and Kalman Filtering

Overview

Kupe will eventually use Stereo Visual Odometry, compass navigation, ultrasonics and maybe downstream, even use lidar. On the way, I will be using April Tags. At some stage I need to fuse all these sensor reading and distill output down to commands to move the robot in the desired direction. Moana was used as a platform to experiment with many sensors and these were each hadled in the arduino code. As I move forward, I want to combine all the sensor data to help localize the robot and Kalman Filtering allows for the combination of many sensors with a unified predict-update approach. Sensor data can be pushed into a matrix that can be extended (along with what to do with it) as more sensors are added. It has the advantage of using past data and new measurement to get a much better estiate of where the robot is as it moves.

Initially, I aim to use April Tags as as my measurement "reset" but it would also be good to have an estimate of where the robot is as it moves. Since I dont have wheel encoders, I intend to create a rudimentary lookup table of PWM value to locomotion velocity. This can be used as prediction phase of the kalman filter, and when the robot encounters an April tag measurement, this can be used in the correction and update phase. This will also allow me to become familiar with using the algorithm which should enable me to extend it as more sensors are added.

Creating a PWM to Velocity lookup table

The plan is:

  • Measure out a 10 metre straigh strip on the ground
  • Drive kupe over the strip in both directions and various speeds and time the transition then average.
  • Driving can be done with basic arduino control at this stage.
  • Try this for 50, 100, 150 200, 250 and 255 PWM values.
  • Code this as a lookup table. We could extrapolate but nearest value should be good enough due to Kalman.
  • This is straight-line, curves and turns may involve some vector maths but it is a place to start before the compass is integrated.

Resultant Lookup Table

Flesh this out once we start using Kalman


Sept 2026


Home Contents Start Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Next