Go Down

Topic: Need static path planner code (Read 316 times) previous topic - next topic

Krish_NK7

Hai guys,

I have to make my 2 wheel drive robot to path plan and static path planning between two points is enough.
The robot consists of a ultrasonic sensor at the front to avoid obstacles. and here is the pin details
Ardiuno Pin details

Left-DC Encoder Motor
CH-A-2
CH-B-3

Right-DC Encoder Motor
CH-A-18
CH-B-19

L298 motor Driver
IN1-45
IN2-47
IN3-49
IN4-51
en1 pwm1 -  9
en1 pwm2 - 10

Servo motor PWM pin-11

IMU-MPU-6050
SDA-ard mega SDA
SCL-ard mega SCL


Servo motor PWM pin-

Ultrasonic Sensor
Tiggr-6
Eco-7




I learned djistra and A* algorithms and tried coding but now i am feed up and the deadline for my project is near :( . Does any one have code for this or any related code for my robot?

Thank you
 

PaulS

Quote
//handling hardware, may take several seconds to complete
So, now you want help cheating. I'll pass.
The art of getting good answers lies in asking good questions.

Krish_NK7

My project is to built an buggy robot for surveillance with provision to be controlled from any internet access device and i have finished and also finished the paper work. This is an additional work that has to be done for my friend.
Thanks

PaulS

Quote
This is an additional work that has to be done for my friend.
So, why is there a deadline, and why does your project depend on completing non-related development for your friend?
The art of getting good answers lies in asking good questions.

Krish_NK7

My project(buggy) is not depended on the above project, the thing is i have to help my friend who is unable to complete his project and i dont know where to ask and how to ask so i posted as if it is my project. :(

PaulS

Quote
the thing is i have to help my friend
Your digging your whole deeper.

You may WANT to help your friend, and that would be understandable.

Path planning involves discovering all the possible paths between n points, and then choosing the best path between m points that are to be visited.

Apparently, you have a cane (an ultrasonic sensor), a Braille compass (the MPU6050), a Braille ruler (the encoders), so you can wander around blind bumping into things, and map out where the obstructions are, relative to some point.

Using this polar coordinate map, you can then find an unobstructed path to the target. It may not be the optimal path, initially, but the path will get better as the map get more accurate.

You've read about two of the most common ways of accomplishing the process.

So, what is the problem?
The art of getting good answers lies in asking good questions.

Go Up