Professional Documents
Culture Documents
Robo Car by Chethan
Robo Car by Chethan
Robo Car by Chethan
Robotics
Presented By:
M.V.R.chandravadan(20711A0225)
M.chethan(20711A0226)
N.Ram babu(20711A0228)
N.Harsha vardan(20711A0230)
P.Mabu hussenaiha(20711A0231)
Table of contents
01 02 03
04 05 06
Arduino Arduino is a software as well as hardware platform that helps in making electronic projects
l293d motor driver IC This motor driver IC is used to control the rotation direction and speed of two DC motors.
Connecting cables Connecting cable is used to connect the Arduino with PC.
Patch cords Patch cords are used to connect different pins for their respective purpose
l293d motor driver IC:
1)The l293d motor driver IC is used to control the
rotation direction and speed of two DC motors.
2) It has two dc input ports and two dc output ports
Used to provide proper voltage supply to motors for
desired motion
3) Based on signal received from Arduino it gives
signals to motors
4) It has two motors connected ,Considered them to
be as Left motor(LM),Right motor(RM) .
For LM pins are 2(red),4(black).
For RM pins are 5(red),7(black).
l293d motor driver IC :
For various operations
H – HIGH (5V)
L – LOW (0V)
FORWARD (F) H L H L
BACKWARD (B) L H L H
LEFT (L) L L H L
RIGHT (R) H L L L
HAULT (H) L L L L
Basics:
FORWARD (F) Main tasks:
BACKWARD (B)
LEFT (L) Line follower
RIGHT (R) Object follower
HAULT (H) Abstacle avoider
SPIN LEFT (SL )
SPIN RIGHT (SR ) Edge detector
CODES
void forward(int n){ void backward(int n){ void hault(int n){ void right(int n){
digitalWrite(2,HIGH); digitalWrite(2,LOW); digitalWrite(2,LOW); digitalWrite(2,HIGH);
digitalWrite(4,LOW); digitalWrite(4,HIGH); digitalWrite(4,LOW); digitalWrite(4,LOW);
digitalWrite(5,HIGH); digitalWrite(5,LOW); digitalWrite(5,LOW); digitalWrite(5,LOW);
digitalWrite(7,LOW); digitalWrite(7,HIGH); digitalWrite(7,LOW); digitalWrite(7,LOW);
delay(n); delay(n); delay(n); delay(n);
} } } }
FOLLOWER
LOGIC:
right();
}
if ((ls == HIGH) && (rs == LOW)){
left();
}
OBJECT 02
FOLLOWER
LOGIC:
left(); }
if ((ls == HIGH) && (rs == LOW)){
right();
}
if ((ls == HIGH) && (rs == HIGH)){
hault();
}
ABSTACLE 03
AVOIDER
LOGIC:
right(500);
}
if ((ls == HIGH) && (rs == LOW)){
left(500);
}
EDGE 03
DETECTOR
LOGIC:
if ((ls == HIGH) && (rs == LOW)){
if ((ls == LOW) && (rs == LOW)){
forward();
backward(500);
Sright(850);
}
if ((ls == LOW) && (rs == HIGH)){ forward();
}
if ((ls == HIGH) && (rs == HIGH)){
backward(500);
Sleft(850);
backward(500);
forward();
Sleft(850);
}
forward();
}
EXPERIENCES
EDGE DETECTOR
TEAM :
M.V.R.chandravadan(20711A0225)
M.chethan(20711A0226)
N.Ram babu(20711A0228)
N.Harsha vardan(20711A0230)
P.Mabu hussenaiha(20711A0231)