Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write code for an obstacle avoiding robot and line follower that uses Arduino uno , , components l 2 9 8 n motor driver,
Please write code for an obstacle avoiding robot and line follower that uses Arduino uno components ln motor driver, ultrasonic sensors and servo motor to turn the ultra sonic to see left and right in case detected an obstacle while it was moving in the black line and stops if it get out the black line and it shall avoid the obstacle and get back to the black line and two IR sensors detect the black line i wrote a code but the ir sensor dont detect the black line properly and it dont detect the obstacle also when it see obstacle it should xheck let and right which way is empty take it and avoid the obstacle and get back to the black line again
int enA ;
int in;
int in;int enB ;int in;
Int in;#define LS Air sensor Left
#define RS Air sensor Right
#define echo Echo pin
#define trigger Trigger pin#define servo
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started