Programming an Arduino Robot to Avoid Obstacles - Help Needed!

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
8 replies · 2K views
Harrison G
Messages
41
Reaction score
2
I need to program an arduino robot to execute a series of actions when there is an obstacle infront of him. Actions like: stop>go backwards>stop>shift left>go forward>stop>shift right> continue forward. With this the robot will avoid obstacles while keeping his original dirrection. The problem is that i am new in programing and don't know how to do it. Can anybody suggest some code that i can use?
 
Physics news on Phys.org
Is this an arduino robot that you are building? Or is it a pre-made robot that is in need of some instructions?

If you're building it yourself, what sort of sensors are you using to detect any obstructions in the robots path?
 
Joppy said:
Is this an arduino robot that you are building? Or is it a pre-made robot that is in need of some instructions?

If you're building it yourself, what sort of sensors are you using to detect any obstructions in the robots path?
Im building it myself, using Ultrasonic sensor to detect obstacles and H bridges to shift the polarity of the motors.
 
Link works from my PC . If you still can't get to it directly try here
 
  • Like
Likes   Reactions: Harrison G
No, its okay, all the links work. Thank you verry much for the answers, i know what i must do now :-)
 
Strange, i guess my internet dropped out or something, sorry about that.

Anyways, all the best!