Follow object and avoid obstacles


#1

Can anyone help me write a code to follow an object(person,ball, anything) and avoid obstacles at the same time.
A lot of the forums I have been reading is to follow a line and avoid an obstacle.

Or by using the app you can draw a certain line to make it go somewhere but I need it to avoid obstacle.

Thank you


#2

I’d suggest that you write down the steps that you think the robot should perform and then post those for commentary. The ultrasonic ranging sensor will be required to detect objects to support either object following or obstacle avoidance. Most obstacle avoidance applications I’ve seen tend to use the line follower to control “normal” movement and the ultrasonic sensor to detect obstacles but you’ll need to think through what you want the mBot to do.


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.