4 responses to “Simple obstacle avoiding sketch using an ultrasonic sensor”

  1. Somanshu Mehta

    You have connected only one ultrasonic sensors with 4 motors , the problem comes when you take input from two or more sensors to drive your motor.As in my case,you cannot run two milis() function in the same sketch.So, two sensors cannot give their individual distances to the microcontroller.

  2. Jose Luis

    Hi!
    I am just learning to use Arduino. And I need to run a search with arduino robot using 2 HC-SR04 ultrasonic sensors. Can you help?
    Best regards,
    JL

Leave a Reply to admin Click here to cancel reply.

*