You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My goal is to come up with a simple and a basic model of an obstacle avoiding bot with the best possible algorithm to detect and avoid an obstacle using only One Ultrasonic Sensor module (HCSR04) and 2 wheels. The project is still into development to find even better an algorithm to achieve the same task.
This Arduino code utilizes an ultrasonic sensor to measure distances. When an object is detected within a fix distance , the connected motors trigger a sequence: move backward, turn right, turn left, then move forward. Motor control is achieved using the AFMotor library, and the distance calculation is based on the sensor's pulse duration.