Programming an Arduino Robot to Avoid Obstacles - Help Needed!

Click For Summary

Discussion Overview

The discussion focuses on programming an Arduino robot to navigate around obstacles using specific actions. Participants explore the programming challenges faced by a newcomer in robotics, particularly in implementing obstacle avoidance using sensors.

Discussion Character

  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant outlines a sequence of actions for the robot to take when encountering an obstacle, including stopping, moving backward, shifting left, and continuing forward.
  • Another participant asks for clarification on whether the robot is being built from scratch or if it is a pre-made model, and inquires about the type of sensors being used for obstacle detection.
  • A participant confirms they are building the robot themselves and specifies the use of an ultrasonic sensor for obstacle detection and H bridges for motor control.
  • Several participants share links to resources and tutorials related to Arduino programming and obstacle-avoiding robots.
  • There is a discussion about the functionality of shared links, with some participants confirming their accessibility while others report issues.

Areas of Agreement / Disagreement

Participants generally agree on the need for programming guidance and resource sharing, but there is no consensus on the specifics of the programming approach or the effectiveness of the provided links.

Contextual Notes

Some assumptions about the robot's design and the programming environment are not explicitly stated, and there are unresolved questions regarding the specific implementation of the obstacle avoidance logic.

Who May Find This Useful

Individuals interested in robotics, Arduino programming, and obstacle avoidance algorithms may find this discussion beneficial.

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   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!
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
Replies
2
Views
3K
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 22 ·
Replies
22
Views
4K