How to make a line following Robot - robofest.lk · How to make a line following Robot •...

19
How to make a line following Robot Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera [email protected]

Transcript of How to make a line following Robot - robofest.lk · How to make a line following Robot •...

Page 1: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

How to make a line following Robot

• Department of Electrical and Computer Engineering- SLIIT

Jayasanka Anushka [email protected]

Page 2: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Definition of a robot

Department of Electrical and Computer Engineering- SLIIT

Why we use them

Page 3: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Introduction

• What are the main building blocks in a Robot

• Microcontroller (Act as the brain)

• Sensors

• Motors / Actuators (Driving Mechanism)

• Battery (Power Source)

• Department of Electrical and Computer Engineering- SLIIT

Page 4: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

• Department of Electrical and Computer Engineering- SLIIT

Sensors

• What is a sensor

• Sensors used for line detection

• LDR(Light dependent resistors)

• IR Sensors (Inferred)

Page 5: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

How to connect an IR sensor

• Department of Electrical and Computer Engineering- SLIIT

• VR1 can be used to adjust the sensor to the current ambient lighting conditions

Page 6: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Several other sensors used in robotics

• Ultrasonic sensor

• Color detecting sensor

• Pressure Sensor

• Department of Electrical and Computer Engineering- SLIIT

Page 7: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Data sheets

• What are data sheets

• Why do we need them

• Department of Electrical and Computer Engineering- SLIIT

Page 8: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Motors

• Gear motors

• Servo Motors

• Department of Electrical and Computer Engineering- SLIIT

Page 9: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Motor controllers

• Why motor controllers are used to drive motors

• Motor controller IC (L298 and L293D)

• Department of Electrical and Computer Engineering- SLIIT

L298 L293D

Page 10: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

How to connect the motor controller

• Department of Electrical and Computer Engineering- SLIIT

Page 11: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Power for the Robot

• Department of Electrical and Computer Engineering- SLIIT

Li-Po BatteryNi-Cd Battery

• Why use These type of batteries for the robot

• Need special charges to charge these batteries

Page 12: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Microcontroller (Brain of the robot)

• What is a Microcontroller

• Types of Microcontrollers• PIC Microcontroller

• Atmel Microcontroller

• Why use Microcontrollers in robots

• Architecture of the Microcontroller

• Department of Electrical and Computer Engineering- SLIIT

Page 13: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

PIC 16F877A

• Pin Diagram

• Department of Electrical and Computer Engineering- SLIIT

Page 14: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Line detecting using IR sensor

• Department of Electrical and Computer Engineering- SLIIT

Page 15: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Line detection using two sensors

• Department of Electrical and Computer Engineering- SLIIT

Page 16: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Steering the robot

• Department of Electrical and Computer Engineering- SLIIT

Page 17: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

Resources

• http://www.pololu.com

• http://www.sparkfun.com/

Data sheets

• http://microrato.ua.pt/main/Actividades/Estagios/docs/pic16f87x.pdf

• http://www.st.com/web/en/resource/technical/document/datasheet/CD00000240.pdf

• http://rohmfs.rohm.com/en/products/databook/datasheet/opto/optical_sensor/photosensor/rpr-220.pdf

• http://www.ti.com/lit/ds/symlink/l293.pdf

• Department of Electrical and Computer Engineering- SLIIT

Page 18: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

• Department of Electrical and Computer Engineering- SLIIT

Page 19: How to make a line following Robot - robofest.lk · How to make a line following Robot • Department of Electrical and Computer Engineering- SLIIT Jayasanka Anushka Ranaweera Jayasanka.r@sliit.lk

• Department of Electrical and Computer Engineering- SLIIT