I was wondering if anyone knew how I could turn this obstacle avoiding robot into a obstacle following robot. (The robot must be able to turn and I would like it to stop if it gets too close to the object)
ClassifiedSecret:
I was wondering if anyone knew how I could turn this obstacle avoiding robot into a obstacle following robot.
Without worrying about the programming details, can you describe in plain English the sorts of changes that would need to be made to the program? How does it work now and how would it need to work in its new role?
If distance ahead is less than TooCloseDistance,
{
move slowly backward.
}
else
If distance ahead is greater than FollowDistance
{
scan for the closest object ahead.
If the closest object is straight ahead,
move forward.
else
turn in the direction of the closest object.
}
else
stop.
Avoiding objects and following an object are two completely different tasks, although some of the hardware may be the same that is about it.
How would the robot know what object to follow and how would it sense it?
How big would the object be, how fast could it move, what terrain would the object move over are there other ojects that need to be avoided?
I am a beginner at programming and I need some help with a project that I am working on.
I would like to build a motion following robot using an ardunio, an ultrasonic detector, and if possible, a L293D IC chip motor driver. I've seen videos of it being done but they never explain the electrical schematic or provide the code. The big thing that I need this motion following robot to do is turn towards the object and move forward. Also, the ultrasonic detector must be able to track the object from far away (1m away).
Does anyone know how to do that? If so can you please provide me with the code and wiring schematic.
Video demos are fun but this is an unaccountably difficult problem. You need to severely limit the problem to make it solvable.
If you are planning to go out on the street with your follow-me luggage then it will be staggeringly difficult to stop it following anyone who walks between you and your luggage.
Show us a link to the exact video you wish to copy. Then we can see what limitations they used to pretend that this idea works.
I would like to build a motion following robot using an ardunio, an ultrasonic detector, and if possible, a L293D IC chip motor driver.
A good project with that equipment would be a small robot that wanders around the room avoiding walls and other objects.
A beginner in programming will find this to be a surprisingly difficult challenge and an excellent learning experience. There are many on line tutorials to help you get started.
It will take a bit of internet searching. You can get an Optical Flow Sensor and use it to detect movement.
If you want to go high end, there is a paper and code out there, more searching, about how a bumble bee see's, that uses an optical flow sensor as an 'eye.'