How to map a area using ultrasonic senosr and mpu6050

Hi!

I require your help regarding a problem I’m encountering.

i am working on an indoor mapping (slam) robot I want to use an ultrasonic sensor (HC-05) and an mpu6050

I am using raspberry pi for this project, i don’t know how to make this work can someone help
Thank you so much in advance for your help!

Hello @harish1506!

An ultrasonic sensor might not be the best choice for SLAM because of the spread, a better option would be a LIDAR or a camera, however, that doesn’t mean it is impossible to use an ultrasonic sensor for odometry. Here are some projects that might be of interest to you:

https://gopalmenon.github.io/Raspberri-Pi-GoPiGo-Robot-EKF-SLAM-Manuscript/

A good starting point is investigating what an Extended Kalman Filter is and how can you use it for your project (the link above can help you with that). Also, you might want to check ROS and the different packages available for SLAM (it might seem difficult at the beginning but it could help you out in the long run).

I hope that info can help you!

1 Like