Robo Car by Chethan

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 14

Embedded

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

COMPONENTS TASKS CODES

04 05 06

EXPERIENCES CONCLUSION OUR TEAM


COMPONENTS

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.

9-volt battery It is be used as a auxiliary supply for 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)

LEFT MOTOR RIGHT MOTOR


PINS 2 4 5 7

COLOUR OF WIRE RED BLACK BLACK RED

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

SPIN LEFT (SL ) L H H L

SPIN RIGHT (SR ) H L L H


TASKS DONE

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);
} } } }

void left(int n){ Void spinleft(int n){ Void spinleft(int n){


digitalWrite(2,LOW); digitalWrite(2,LOW); digitalWrite(2,HIGH);
digitalWrite(4,LOW); digitalWrite(4,HIGH); digitalWrite(4,LOW);
digitalWrite(5,HIGH); digitalWrite(5,HIGH); digitalWrite(5,LOW);
digitalWrite(7,LOW); digitalWrite(7,LOW); digitalWrite(7,HIGH);
delay(n); delay(n); delay(n);
} } }
SENSORS USED

IR sensor Sound sensor Ultra sonic sensor


An infrared (IR) sensor is The sound sensor is one An ultrasonic sensor is an
an electronic device that type of module used to electronic device that converts
measures and detects notice the sound. the reflected sound into an
infrared radiation in its electrical signal.
surrounding environment.
LINE 01

FOLLOWER
LOGIC:

if ((ls == LOW) && (rs == LOW)){


forward();
}
if ((ls == LOW) && (rs == HIGH)){

right();

}
if ((ls == HIGH) && (rs == LOW)){

left();
}
OBJECT 02

FOLLOWER
LOGIC:

if ((ls == LOW) && (rs == LOW)){


forward();
}
if ((ls == LOW) && (rs == HIGH)){

left(); }
if ((ls == HIGH) && (rs == LOW)){

right();
}
if ((ls == HIGH) && (rs == HIGH)){
hault();
}
ABSTACLE 03

AVOIDER
LOGIC:

if ((ls == LOW) && (rs == LOW)){


backward(2000);
spin(1000);
}
if ((ls == LOW) && (rs == HIGH)){

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)

You might also like