You are on page 1of 5

Line Follower with Obstacle Information System

using ZigBee
Snehal Kokare Rajveer Shastri Shrikrishna Kolhar
Dept. of Electronics & Dept. of Electronics & Dept. of Electronics &
Telecommunication Telecommunication Telecommunication
VPKBIET, Baramati VPKBIET, Baramati VPKBIET, Baramati
Baramati, India Baramati, India Baramati, India
snehal.kokare48@gmail.com rajveer.shastri@vpkbiet.org shrikrishna.kolhar@vpkbiet.org

Abstract— In this paper Firebird V robot follows white line on microcontroller and Atmega8 microcontroller, three white
a black surface. On Firebird V three white line sensors (Left, line sensors, one sharp IR range sensors, eight IR proximity
Centre, Right) for detecting white line. When obstacle comes in sensors, Buzzer, LCD, two DC (Direct Current) motors,
robot path then robot stops and buzzer get on for alertness and ZigBee module, RS232 serial port, USB port etc[6].
sends message wirelessly to PC via ZigBee i.e. “Obstacle is
present”. Here Sharp IR range sensor is used for obstacle
avoidance and motion of robot is handled by DC (Direct
Current) Motors. PWM (Pulse Width Modulation) is used to
control the speed of motor. We measured variation in voltages
of Sharp IR range sensor and IR proximity sensor as distance
between obstacle and sensor varied and voltage levels of white
line sensor on white line and black surface. We also measured
RSSI (Received Signal Strength Indicator) at various distance
using XCTU software and we observed that RSSI value get
decreases as distance increases.

Keywords— Atmega2560 Microcontroller, Firebird V robot,


Line follower robot, White line sensor, Sharp IR range sensor.

I. INTRODUCTION
In 1950 Automobile engineers try to develop a machine
to carry out a task of dangerous area and repetitive task
which is boring for human such as drilling, welding,
pushing, cutting, soldering etc. British inventor Cyril W.
Kenward was developed first robotic arm in 1954. General Fig.1 Basic architecture of Fire Bird V robot [6]
Motors was the first company in 1962 that used service
robot in the production of radiators whose name was A. Motion Control
‘Planetbot’. In 1995 mobile robot was investigated, several DC geared motor interfacing with Atmega2560 is as
recent studies [1][2] used mobile robot for monitoring the shown in Fig.2. ATmega 2560 has total eleven ports; among
environment, handle the work in dangerous area and also this six are 8-bit (Port A to Port F), remaining five are 6 bits
used for collecting and routing a data in Wireless Sensor (Port G, H, J, K, L). Port A is used for handling motion
Network (WSN). Recently one humanoid robot was control. Fire Bird V robot has two 75 Revolution per Minute
investigated whose name was Sophia [3]. Sophia was (RPM) DC geared motors [7]. On the DC motor position
developed by Hanson Robotics Company which is located encoders are mounted as shown in Fig.3 which gives
in Hong-Kong. Sophia was the first robot who talks to position information to microcontroller. Fastest speed of
people and she got the citizenship of Saudi Arabia. Here we Firebird V robot is 24cm per second. Direction of motor i.e.
used a Firebird V robot which was made by IIT Bombay [4]. forward, backward, left, right etc. handled by L293D motor
Firebird V robot is used as a service robot in various field driver. PWM (Pulse Width Modulation) is used to control
such as hospitals, hotels; library and industry for pick and the speed of motor [6] [7] [8].
place job. By using line follower technique M.B. Nugraha et
al. [5] developed automated guided vehicle based on RFID
(Radio Frequency Identification) for transportation of
various things within an industry and buildings. For
programming this robot we used AVR STUDIO 4.1 and for
configuring a ZigBee module we used XCTU configuration
and test utility software. We experimented with and various
practical aspects are reported in this paper.
II. SYSTEM ARCHITECTURE
In the Firebird robot there are different series of robots
available, we are used fifth series of Firebird. As shown in
Fig.1 Firebird V robot consist of Atmega2560 Fig.2 Motor interfacing with Atmega2560 [7]

978-1-5386-5257-2/18/$31.00©20XX IEEE
Fig.4 Pulse Width Modulation (Case A)

Fig.3 DC geared motors and position encoders [7]

B. Motor Pin Connections


4 Pins for Direction control is connected at PORT A
 PA0 - Left Motor Control (Left Backward)
 PA1 - Left Motor Control (Left Forward)
 PA2 - Right Motor Control (Right Forward)
 PA3 - Right Motor Control (Right Backward) Fig.5 Pulse Width Modulation (Case B)
Two Pins for Enabling Motor Driver IC is connected at
PORT L D. White Line Sensors
 PL3 - Left Channel Enable
 PL4 - Right Channel Enable

Table I. Logic table for motor direction control [6] [7]

Direction PA0 PA1 PA2 PA3


(LB) (LF) (RF) (RB)
Forward 0 1 1 0
Backward 1 0 0 0 Fig.6 Schematic of White line sensors.
Left 1 0 1 0
Right 0 0 1 0 It consists of photo transistor for white line detection
Soft Left 0 1 0 0
and bright red LED (Light Emitting Diode) for illumination.
Soft Right 0 0 0 0
Stop 0 0 0 0 Fig.6 shows white line sensor position on Firebird V. If the
white line sensor is on white line then more light reflected
hence more leakage current, voltage across the sensors falls
C. DC Motor Velocity Control Using Pulse Width down 2 to 0.1V. Conversely if robot does not on white line
Modulation (PWM) then less light reflected, less leakage current hence more
In PWM, duty cycle of square wave is modulated to voltage across the sensors 2 to 3.3V[10].
control the power delivered to the load. Duty cycle is the
ratio of ON time (Ton) to total time period (T) E. Sharp IR Range Sensor
For accurate distance measurement, robot uses Sharp IR
range sensors. At this instant on Firebird V robot one sharp
IR (Infrared) range sensor is present. We can extend this
1) Case A count up to 5. As shown in Fig.7 Sharp sensor contains IR
Ton = Time at output remains high = 1 LED and linear CCD (Charge Couple Device) array, both
Toff = Time at output remains Low = 7 encapsulated in the housing with precision lens assembly
Duty Cycle = 12.5% mounted in front of them. IR LED with the help of the leans
In case A (refer Fig. 4) ON time (Ton) is less so power transmits a narrow IR beam [11]-13]. When obstacles
delivered to motor is less hence speed of motor is slow [7] arrives then light incident on obstacle and reflects back to
[9]. CCD array.
2) Case B
Ton = Time at output remains high = 6
Toff = Time at output remains Low = 2
Duty Cycle = 75%
In this case B (refer Fig. 5) Ton is more, power delivered to
motor is more hence speed of motor is fast [8] [9].

Fig.7 Infrared Range finder sensor and its inside view

2018 Fourth International Conference on Computing Communication Control and


Automation (ICCUBEA)
III. PROPOSED FLOWCHART

Fig.8 Distance measurement based on angel of reflection

As shown in Fig.8 angel of reflection get changes as a


distance of obstacle varies. CCD array measures an angel
and find distance. Since sensor measurement is based on
triangulation and not on intensity of the reflected light, it is
immune to disturbance caused by ambient light. Sensor
gives out analog voltage corresponding to angle of
reflection. Relationship between the angle of reflection and
output voltage is not linear because of trigonometry
involved. Here GP2Y0A02YK sensor is used has range of
80cm t0 10cm.

F. Infrared proximity sensors

Fig.11 Flowchart for proposed system

Fig.9 Infrared proximity sensor The output of white line sensors is analog value hence
Several studies [12] uses Infrared proximity sensor for ADC (Analog to Digital Converter) is used to convert
detecting the obstacle for short range; its range is up to analog value into digital. According to white line sensor
10cm. Fig.9 shows the schematic of infrared proximity microcontroller (Atmega2560) gives command to motor.
sensor it uses IR ray [12]-[15] as a transmitter and Flowchart of proposed system is as shown in Fig.11. If
photodiode as a receiver. When obstacle is absent then no Centre white line sensor is on white line then robot moves in
reflected light no leakage current will flow through forward direction. All the three sensors (Left, Centre, and
photodiode so voltage across the photodiode is about 3.3V. Right) are on the black line and if there is obstacle in front
As obstacle comes then reflection of light causes leakage of the robot then robot stops [16]. Left and right white line
current flow in photodiode and voltage start to fall down sensors are on the black line then robot moves either left or
across the photodiode [11]-[13]. right.

G. ZigBee IV. RESULTS & DISCUSSION


For wireless communication various protocols available Using white line sensors, we successfully achieved
like Bluetooth, ZigBee, Wi-Fi etc. but we prefer ZigBee maximum stability in robot motion. Robot completes its task
because of robust, low cost and power efficient features. in low speed as well as in high speed. Robot does not get
Here we used ZigBeesS2C (refer Fig.10) protocol for deviates from white line if track is not straight. Table II
wireless transmission of obstacle information in between PC shows the measured voltage values of white line sensors
and Firebird V robot. ZigBee operates in 2.4GHZ band i.e. when robot is on white line and on black line. From Fig. 12
Industrial Scientific Medical (ISM) band and it work in we conclude that when white line sensors are on black line
physical layer of OSI (Open Source Interconnection) model. more voltage across the sensor and when it on white line
then voltage falls down.

Table II. White line sensors (WLS) voltage values

Line Color Left WLS Centre WLS Right WLS


Black 75 88 72
White 8 7 9

Fig.10 ZigBeeS2C protocol

2018 Fourth International Conference on Computing Communication Control and


Automation (ICCUBEA)
Fig.12 White line sensor voltage plot
Fig.15 Motion of robot on a white line track

Fig.16 XCTU software window


Fig.13 Disatnce vs voltage plot for sharp IR range sensor
Experimental demo of white line following and obstacle
Fig. 13 shows the graph of sharp IR range sensors avoidance robot is as shown in Fig.15. When obstacle
voltage over a distance. When obstacle is near to sensor then arrives in front of robot then robot automatically stops and
voltage across the sensor is less and if obstacle is far then its send message wirelessly i.e. “Obstacle is present” to
voltage goes on increase. According to voltage values we laptop via ZigBee. Fig. 16 shows XCTU software window
need to set a threshold value in program i.e. 50. If sharp where obstacle data is received via ZigBee. We measured
sensor value is greater than threshold then robot will stop RSSI values at various distance and we observed refer
moving. We test the sharp IR range sensor up to 20 cm Fig.17 local ZigBee RSSI (ZigBee which is connected to
distance. IR proximity sensor is used for near distance PC) and remote ZigBee (ZigBee which is connected to
obstacle up to 10cm. If obstacle is beyond 10cm then it robot) get decreases as a distance increases and transmission
cannot detect obstacle. Here we used five IR proximity error and packet lost is also increases as a distance
sensor so it can detects obsacle from various sides. Fig 14 increases.
shows plot of voltages of IR proximity sensors with respect
to distance. According to IR sensor voltage values we have
to set threshold value for e.g for IR1 we have set 60 as a
threshold, above 60 value robot will move forward
otherwise it stop i.e there is obstacle present.

Fig.17 Plot of RSSI VS Distance

V. CONCLUSION
Thus by using line follower technique we achieved a
stability in robot motion for high speed as well as low speed.
Fig.14 Disatnce vs voltage plot for IR proximity sensors ZigBee has provided a robust, low cost, low power platform
for wireless communication between robot and PC. This
makes it useful for application such as library management,

2018 Fourth International Conference on Computing Communication Control and


Automation (ICCUBEA)
hotel management and as a service robot in industry. Further [6] S. Malewar, A. Malewar, “Fire Bird V ATMEGA2560 Research
Platform Software Manual,” NEX Robotics Pvt. Ltd., Mumbai,
this work can be extended towards energy and path Maharashtra, Version 2, Aug. 2012.
optimization among multiple robots with artificial [7] S. Malewar, A. Malewar, “Fire Bird V ATMEGA2560 Research
intelligence for specified applications. By adding GPS Platform Hardware Manual,” NEX Robotics Pvt. Ltd., Mumbai,
(Global Positioning System) we get the location of robot. Maharashtra, Version 7, Aug. 2012.
[8] Lalitha K., Deepika T. V., “Patient Monitoring Robot,” International
Journal of Engineering Research in Electrical and Electronic
ACKNOWLEDGMENT Engineering, Vol.2, Issue 5, pp.38-41, May 2016.
[9] Vinod Desai (2006), Projects on Firebird V [online]. Available:
Author acknowledges technical resources provided by http://www.nex-robotics.com/resources/projetcs-on-fire-bird-v.html.
Embedded and Robotics Lab which is developed under E- [10] RM. Nachammai, et al. “White Line Follower using Firebird V
Yantra Lab Setup Initiative (E-LSI) carried out by IIT robot,” International Journal for Scientific Research and
Bombay at VPKBIET, Baramati. The author would like to Development, vol.3, issue 10, pp.224-228, 2015.
thank Prof. Shrikrishna U. Kolhar for giving technical [11] K. Hasan, A. Nahid, A. Mamun, “Implementation of Autonomous
Line Follower Robot,” in IEEE Conf. of Informatics Electronics and
support. Vision, Bangladesh, 2012
REFERENCES [12] F. Kaiser, S. Islam, K. Khan, “Line Follower Robot: Fabrication and
Accuracy Measurement by Data Acquisition,” in IEEE Conf. of
[1] M. Rajesh, A. George, T.S.B. Sudarshan, “Energy Efficient Electrical Engineering and Information and Communication
Deployment of Wireless Sensor Network By Multiple Mobile Technology, 2015
Robots,” in IEEE Conf. of Computing and Network [13] M. Pakdaman, M. Sanaatiyan, M. Ghahroudi, “A Line Follower
Communications, Trivandrum, India, Dec.2015, pp.72-78. Robot from design to Implementation: Technical issues and
[2] Shuxiang Guo, Xin Li, Jian Guo, “Study on a Multi-Robot problems” in IEEE Conference, May 2014.
Cooperative Wireless Communication Control System for the [14] K. Hasan, A. Nahid et al. “Sensor Based Autonomous Color Line
Spherical Amphibious Robot,” in IEEE Conference on Mechatronics Follower Robot with Obstacle Avoidance,” in IEEE conf. of Business
and Automation, china, Aug. 2016 pp.1143-1148. Engineering and Industrial Applications Colloquium, April 2013, pp.
[3] N. Owano (2016, March 21) Humanoid Sophia is Given Primary Role 598-603.
of Talking to People [online] available: http:// [15] D. Mohan raj, “Microcontroller Based Autonomous Wireless Line
techxplore.com/news/2016-03-humanoid-sophia-primary-role- Tracking Robot,” International Journal of Advanced Engineering
people.html Research and Studies, pp.102-105, June 2015.
[4] K. Burle, S. Ahankari, R. Kanai, “Engineering a better tomorrow by
bridging the quality gap in Education through Project based Learning [16] F. Tabassum, S. Lopa, et al., “Obstacle Avoidance Robot,” Journal of
using ICT e-Yantra- Robot Enhanced Teaching in Engineering Robotics and Nano-Tech, vol.17, issue 1, June 2017.
Colleges,” in IEEE conf. of Technology for Education, Sangali,
2016, pp-252-253.
[5] M.B. Nugraha et al. “Design and Implementation of RFID Line- .
follower Robot System with Color Detection Capability using Fuzzy
Logic,” in IEEE conf. on Control Electronics, Renewable Energy and
Communications, Aug.2015.

2018 Fourth International Conference on Computing Communication Control and


Automation (ICCUBEA)

You might also like