So in my project im looking to use a motor to move a platform left to right, which goes up and down at certain points. I want the platform to stop moving axially and then move up, and then go axially again. I'm using an ultrasonic sensor to determine where the stops are. The issue im having is when the ultrasonic senses a certain range, I can get it to move the platform up and then down but cant get it to start moving left to right, it still reads its in that range so it moves up again.
I was wondering if there's a way to cause a delay on one function, while at the same time having something else occur? Or is there no workaround a delay, it stops everything else at that section of code?