Development of Wi-Fi Communication Module For Atmega Microcontroller Based Mobile Robot For Cooperative Autonomous Navigation
Development of Wi-Fi Communication Module For Atmega Microcontroller Based Mobile Robot For Cooperative Autonomous Navigation
Abstract- Effective formation and coverage control of mobile module has been developed that can be gainfully utilized for
robots require a reliable and powerful wireless communication formation control and coverage control of mobile robots. IC
infrastructure for exchanging information among themselves. ESP8266 [18] is required to establish the aforementioned
Standard Transmission Control Protocol/Internet Protocol communication and connect to an access point. Transmitting
(TCP/IP) based Wi-Fi networking is a popular wireless
and receiving data is convenient through ESP8266 because of
communication method which allows rapid development of high
bandwidth communication interface for multi-robot systems. A its pre-installed firmware that supports AT commands. A
large number of educational and experimental mobile robots have connection is established autonomously between mobile robots
been developed with ATmega microcontrollers for their ease of with Atmel ATmega 2560 microcontroller [17]. The
programming. However, there is no off the shelf Wi-Fi microcontroller has been programmed using AVR Studio [19].
communication module available which can directly interface A library has been developed in ANSI C using GNC GCC
with the standard ATmega microcontrollers. This paper gives a compiler. The desired AT commands are sent through the
detailed technical account of how a versatile Wi-Fi communication library. The set of AT commands required to establish a
module can be developed for standard ATmega microcontrollers wireless communication have been listed. After initializing a
so that it can be utilized for establishing a powerful
communication channel between the ESP8266, data is
communication among a group of mobile robots. The circuit
development and power supply issues have been elaborated. The transmitted and received between the mobile robots wirelessly.
effectiveness of the communication module developed has been Since the mobile robots are now able to communicate with each
established by successful experimentation of ATmega other, this method has been implemented in certain swarm
microcontroller based autonomous mobile robots for cooperative robotics algorithm towards formation control. A compatibility
navigation. between AVR (microcontroller) and ESP8266 (Wi-Fi module)
has been established through this work. To the best of the
Keywords- Wi-Fi, ESP8266, serial communication, UART, RS knowledge of the authors, achieving this compatibility between
232, AT commands, Atmel AVR, Atmel ATmega 2560, TCP, AVR software (microcontroller) and AT firmware in ESP8266
WMR, mobile robots.
(Wi-Fi module) has never been addressed in the literature. The
I. INTRODUCTION
developed module have been utilized for the cooperative
autonomous navigation of wheeled mobile robots FIREBIRD-
Effective navigation and control of a group of mobile
V. The schematic diagram for the developed Wi-Fi
robot swarm [1], [2], [3] requires an efficient and user-friendly
communication module based cooperative autonomous
wireless communication network [4], [6], [8], [9], [10], [12],
navigation has been illustrated in Fig. 1.
[13], [14], [15], [16]. Standard Transmission Control
Protocol/Internet Protocol (TCP/IP) based Wi-Fi networking
has emerged as a popular wireless communication method
which allows rapid development of high bandwidth
communication interface for multi-robot systems. An intensive
review in this regard have been presented in [5], [7], [11].
Although Wi-Fi communication is quite common and
popular in recent years yet certain robots running on
microcontrollers like ATmega2560 has no native library to
connect and send/ receive data via Wi-Fi. In the present work,
this problem has been solved and a Wi-Fi communication Fig 1. Communication channel between two Mobile Robots
169
2017 IEEE Calcutta Conference (CALCON)
170
2017 IEEE Calcutta Conference (CALCON)
ESP as a server. The other ESP is now the client ESP that needs
to establish a connection with the server ESP.
AT+CIPSTART=2,”TCP”,”ip-address”,portno.As given in
Fig 5. The example shows use of a TCP connection. A TCP
connection is recommended as it provides a reliable means of
Fig. 6(b) Sending message from Client to Server.
communication. Here 2, represents the channel no. the client
Fig. 6(c) Server receiving message.
ESP has used to establish a connection with the server.
The server ESP has however used its channel 0 to
receive the incoming connection. It should be noted that
V. EXPERIMENTAL VALIDATION WITH FIREBIRD-V
channel 0 of the server ESP is the same as channel 2 of the
ROBOTS PERFORMING COOPERATIVE NAVIGATION
client ESP. (Fig. 5)
WITH THE WI-FI MODULE
171
2017 IEEE Calcutta Conference (CALCON)
172