obstacle avoiding car
I am using arduino uno.I am not understanding the calculation of time of HCSR04 ultrasonic sensor in this code.Besides, when i am changing time of DC motors(mainly backward or forward function), the time is changing proportionally.But I need to get signals of ultrasonic sensor more frequently. And this code is very nice without servo motors but mostly useless with the servos.(The first one for l298n motor driver shield and the second for l293d motor driver shield).
sketch_mar09a.ino (1.72 KB)
oac2.ino (1.97 KB)