Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
Annexure I
1. Project Title: Color sensor based multiple line follower robot with obstacle
detection
TABLE OF CONTENTS
Page 1
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
A line following robot is a robot that basically follows a specific line. This line
following robot is sensor based. Sensor based approach uses various kinds of sensors such as IR
sensors and ultrasonic sensors. IR sensors are generally used for measuring the difference in
reflectivity of surfaces depending on the properties like color, roughness etc. Which is this line
follower is based on. The path can be visible like a black line on a white surface (or vice-versa).
Sensing a line and maneuvering the robot to stay on course, while constantly correcting wrong
moves using feedback mechanism forms a simple yet effective closed loop system. Here wireless
sensor network Zigbee is used to receive the information from transmitter section to receiver
section. This robot was developed based on a vision based system to navigate the robot through a
black line marked in the white surface. It also extracted some features in the sensor to follow a
line with automatic color detection and follow that color in white surface. This report is intended
to describe the information regarding the project. It explains the requirements, the techniques and
technologies used, design and implementation, details, problems faced, and future improvements
of the project.
Page 2
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
1.2 Motivation
A Robot is a machine which is completely automatic, i.e. it starts on its own, decides its
own way of work and stops on its own. Robotics has greatly advanced in the developed
countries. High performance, high accuracy, lower labor cost and the ability to work in
hazardous places have put robotics in an advantageous position over many other such
technologies but as for developing countries like Bangladesh it is still quite out of reach. But it is
one of the most fascinating and interesting aspects to the new generations and a lot of
development in robotics has been done in last couple of years. Robots have several useful
applications in our daily. It is actually a replica of human being, which has been designed to ease
human burden. It can be controlled pneumatically or using hydraulic ways or using the simple
electronic control ways.
1.3 Objective
The objective of the project is paper the multiple source Multiple Destination Robot
(MDR-l) having the ability to choose a desired line among multiple lines autonomously. Every
line has different colours as their identities. The robot can differentiate among various colours
and choose a desired one to find its target. Unlike any other simple line follower robot, this robot
can be considered as a true autonomous line follower robot having the ability to detect presence
of obstacle on its path. A powerful close loop control system is used in the robot. The robot
senses a line and endeavours itself accordingly towards the desired target by correcting the
wrong moves using a simple feedback mechanism but yet very effective closed loop system. The
robot is capable of following very congested curves as it receives the continuous data from the
sensors
Page 3
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
Working:
Functional description in general includes the block diagram representing every module
of the project and working which specifies the function of each module in the project. The sensor
in the block diagram is color sensor used to sense color path .We also have the LCD display for
the purpose of displaying the color which is given as input. The project is designed with
ARDUINO and ZIGBEE technology.
In Transmitter section the input switches combinations are given to select the particular
destination to which the robot has to move from the source to destination. Here in this proto type
we have given the three destinations for moving the robot from one place to another place. The
Page 4
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
three destinations are assigned with the predefined colored paths. Each switch as its own color by
its own and if we select any particular destination with its color then robot will move according
to the path assigned to it and reaches its destination by tracking the color continuously.
The main part to move the robot is the arduino-uno this will control all the performance
of the robot through the wireless Zigbee module. The wireless Zigbee module will transmit the
signal to the Zigbee receiver. The block diagram of transmitter section is shown in Figure
In receiver section the information from transmitter is received using Zigbee module. The
destination which is selected by the user is received by this Zigbee module and it is given to the
arduino-uno controller then this will give the required task to the color sensor (TCS230) that
which is given at the transmitter and transmitted through the Zigbee module.
The color sensor will know sense all the color and then select the color required to it and
this is done by using the servo motor in the color sensor then the motor driver (L293D) will give
instruction to the motor to move the robot according to it and then it follow the color line and
reaches the destination. The IR sensor which is present in the robot will detect the obstacle and
stop the robot. The block diagram of receiver section is shown in Figure
Flowchart:
The below Figure shows the flow chart it indicates the sequence of operation carried out
throughout the project It indicates the step by step procedure of operations performed this
project.
2.2.1 Arduino-Uno:
Microcontroller ATmega328P
Operating Voltage 5V
Page 5
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
SRAM 2 KB (ATmega328P)
EEPROM 1 KB (ATmega328P)
Length 68.6 mm
Width 53.4 mm
Weight 25 g
Vin : The input voltage to the Uno board when it's using an external power source (as
opposed to 5 volts from the USB connection or other regulated power source). You can
supply voltage through this pin, or, if supplying voltage via the power jack, access it through
this pin.
Vcc : This pin outputs a regulated 5V from the regulator on the board. The board can be
supplied with power either from the DC power jack (7 - 12V), the USB connector (5V), or
Page 6
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
the VIN pin of the board (7-12V). Supplying voltage via the 5V or 3.3V pins bypasses the
regulator, and can damage your board. We don't advise it.
A 3.3V supply generated by the on-board regulator. Maximum current draw is 50 mA.
GND: Ground pins.
I/OREF: This pin on the Uno board provides the voltage reference with which the
microcontroller operates. A properly configured shield can read the IOREF pin voltage and
select the appropriate power source or enable voltage translators on the outputs to work with
the 5V or 3.3V.
Page 7
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
Arduino-uno is interfaced to the D2 and D3PWM pins of first motor and D4 and
D5PWM of the motor driver. The shown below fig is the motor driver interfacing to the
arduino-uno.
Page 8
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
Page 9
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
S0,S1 12 I Outputfrequencyscaling
selection inputs.
S2,S3 78 I Photodiodetype
selection inputs.
Vdd 5 Supply voltage
Page 10
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
The shown fig: is the LCD interfacing to the arduino uno microcontroller. The pins of
Arduino-uno D7, D10, D12GCK, D12MISO are interface to the D7, D8, D6,D5 pins of the
Liquid Crystal Display.
2.2.6.: IR Sensor
Page 11
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
2.2.7: Zigbee
ZigBee protocol was engineered by the ZigBee Alliance, a non-profit consortium of leading
semiconductor manufacturers, technology providers, OEMs and end-users worldwide. The
Page 12
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
protocol was designed to provide OEMs and integrators with an easy-to-use wireless data
solution characterized by low-power consumption, support for multiple network structures and
secure connections.
Page 13
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
Receiver Section:
3.1 RESULT
Below fig. shows Color Sensor Based Multiple Line Follower Robot With Obstacle
Page 14
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
Detection which has ARDUINO, color sensor (TCS230), IR sensor and L293D Motor Driver,
Servo Motor.
Page 15
Color Sensor Based Multiple Line Follower Robot With Obstacle Detection
3.2 Conclusion
The concept of the line follower robot is practically implemented in this paper based
electronics logic circuit and sensors. Simultaneously, makes the use of instructions from sensors
and on board logic circuits performs physical movements. The robot is succeeded to locate and
follow target. This robot can follow different colors by comparing the voltage which is given as
reference voltage. Further modification of this robot includes application of shortest path
algorithm and neural network so that it can find its target more efficiently in shortest amount of
time. The robot senses a line and endeavors itself accordingly towards the desired target by
correcting the wrong moves using a simple feedback mechanism but yet very effective closed
loop system. The robot is capable of following very congested curves as it receives the
continuous data from the sensors.
Page 16