Answered step by step
Verified Expert Solution
Link Copied!

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 l298n 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 =10;
int in1=9;
int in2=8;int enB =5;int in3=7;
Int in4=6;#define L_S A0//ir sensor Left
#define R_S A1//ir sensor Right
#define echo 3//Echo pin
#define trigger 2//Trigger pin#define servo 11

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

A 300N F 30% d 2 m Answered: 1 week ago

Answered: 1 week ago

Question

4. Identify cultural variations in communication style.

Answered: 1 week ago

Question

9. Understand the phenomenon of code switching and interlanguage.

Answered: 1 week ago

Question

8. Explain the difference between translation and interpretation.

Answered: 1 week ago