Can we use slam with distances sensors

Hi!

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

can we make a slam robot using distances like E18-D80NK or ultrasonic sensor or any other sensors “without using lidar or stereo cameras”, and I know we can make it using ROS i wanted to make it in the embedded system so ros won’t work

i just wanted to make a cheap slam robot

i am open to any suggestions
Thank you so much in advance for your help!

@HariHarish12345 SLAM effectively helps localize a robot by simultaneously mapping its environment. Rotating distance sensors are ideal since you only need one sensor, a motor and a way to know what angle it’s at. Alternatively you could use many distance sensors to get distance readings, and the accuracy would depend on how many you have. The issue with ultrasonic sensors is that the ping and echo are slower than light (IR or laser). The accuracy a will also depend on how fast you’re spinning the distance sensor. Nevertheless, you can indeed you very simple sensors for SLAM.