wheel encoders + mpu605 differential drive mobile robot Odometry
15 views (last 30 days)
Show older comments
Hello dear reader
I have been experimenting for months but coudln't get a precise solution to my problme, which is:
- I wish to detect ticks from my encoder in matlab code, Not Simulink. i can't find any function that does that. (Interrupts)
- I wish to find my robot's orientation from my MPU6050 sensor.
- How do i combine these outputs to get a good estimate of my robot's position to feed them to my closed loop controller in simulink.
- Have a wonderful day
0 Comments
Answers (1)
Brian Fanous
on 6 Sep 2022
You can read data from an mpu650 using an Arduino as described here:
If you simply want to determine orientation consider following this example
but use the imufilter or complementaryFilter as there is no magnetometer present in your setup.
If you would like to fuse wheel encoder ticks and IMU data you should consider using the insEKF filter
See Also
Categories
Find more on Simulink Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!