Programming an Arduino Robot to Avoid Obstacles - Help Needed!

AI Thread Summary
The discussion revolves around programming an Arduino robot to navigate around obstacles using a series of predefined actions. The user seeks guidance on coding these actions, which include stopping, reversing, shifting left and right, and continuing forward while maintaining its original direction. The robot is being built from scratch, utilizing an ultrasonic sensor for obstacle detection and H-bridges to control motor polarity. Participants share links to relevant resources, including tutorials on creating obstacle-avoiding robots, which ultimately help the user understand the necessary steps for programming their robot effectively.
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?
 
Technology 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 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!
 
Back
Top