
Thanks for the code and the explanation, it works perfectly! Can you tell me what I need to change in order for motor to do just one iteration, I need it to go from 0 to 180 degrees and back to 0 degrees just once, not continuously. I tried a bunch of things, nothing worked so far...
Ahmed
Electrical Engineer
Hi Sir! Can you help how to modify this code if I need to change intensity of motor inversely propotional to distance from some obstacle (detected by ultrasonic sensors) Thanks Sir