Software > Software

obstacle avoidance using ultrasonic

(1/1)

sambhav:
i have designed a robot which does 3 tasks.. line following,obstacle detection and speed regulation..
i have used PIC 16f877 and the program has been written in assembly using MPLAB..
in obstacle detection ,once the obstacle is detected the robot stops. but i also want to implement obstacle avoidance..wherein the robot will steer across the obstacle and take an obstacle free path..
can anyone provide me the algorithm..or if possible the assembly code for the same... I have used two motors..one for left-right control and the other for forward backward motion.
Thanking you..

Admin:
You cannot steer around an object with just sonar (mostly).

The reason is because the robot has no idea where it is, just where the object is with respect to the robot. The robot will have no idea when its gone around the object!

You will need to also use an encoder or digital compass so that the robot knows its heading and general direction.

Ill write a tutorial on this sometime this summer when I get more time . . . there are like 10 basic algorithms and a billion more advanced ones for object avoidance . . .

My Fuzzy robot used sonar to avoid objects, but it only had a random heading with no end goal location . . . source code can also be found on that page . . .

Tsukubadaisei:

--- Quote from: Admin on April 16, 2007, 11:57:33 AM ---Ill write a tutorial on this sometime this summer when I get more time . . . there are like 10 basic algorithms and a billion more advanced ones for object avoidance . . .


--- End quote ---

Me too, for the 100 bucks competition. I will be using sonars and encoders.

Navigation

[0] Message Index

Go to full version