Making vehicle stop in front of wall using stepper motor and ultrasonic (HELP)

gifted:
I tried that but then it doesn't run smooth at all, thankyou tho!

You need to post your program so we can see what you have tried.

For the system you are trying to make I can't see any value in having a stepper motor.

...R
Stepper Motor Basics
Simple Stepper Code