Embedded Control System For Mobile Robots With Dif
Embedded Control System For Mobile Robots With Dif
Embedded Control System For Mobile Robots With Dif
15546/aeei-2017-0025
ABSTRACT
This article deals with design and implementation of control system for mobile robots with differential drive using embedded
system. This designed embedded system consists of single control board featuring ARM based microcontroller which control the
peripherals in real time and perform all low-level motion control. Designed embedded system can be easily expanded with additional
sensors, actuators or control units to enhance applicability of mobile robot. Designed embedded system also features build-in
communication module, which can be used for data for data acquisition and control of the mobile robot. Control board was
implemented on two different types of mobile robots with differential drive, one of which was wheeled and other was tracked. These
mobile robots serve as testing platform for Fault Detection and Isolation using hardware and analytical redundancy using
Multisensor Data Fusion based on Kalman filters.
Keywords: embedded system, mobile robot, motion control, microcontroller, fault detection and diagnostics
ISSN 1335-8243 (print) © 2017 FEI TUKE ISSN 1338-3957 (online), www.aei.tuke.sk
Acta Electrotechnica et Informatica, Vol. 17, No. 3, 2017 43
2.1. Electronics
ISSN 1335-8243 (print) © 2017 FEI TUKE ISSN 1338-3957 (online), www.aei.tuke.sk
44 Embedded Control System for Mobile Robots with Differential Drive
microcontrollers, but with some minor changes this 2.3.2. Motion control
MRCS can be implemented under Windows or Linux
machine. This part of control system handles all motion control
Whole mobile control system is executed and managed of mobile robot from regulation of the speed of wheels
using interrupts from timers and peripherals and some (tracks) to generation of waypoints. It consists of several
functionality is managed using Direct Memory Access parts (layers) where every higher layer depends on
(DMA) to relieve computational power when transferring functionality of lower layers. Whole motion control
large amount of data. On Fig. 4 is shown conceptual system was described in more detail in [3].
diagram of whole MRCS.
Wheel speed regulation
This layer performs feedback regulation of the speed
of wheels. Wheel speed regulation consists of two nested
feedback PSD controllers, where one is used to control
current flowing through armature of the motor and second
one control overall speed of the wheel.
The PSD controllers can be easily enhanced with
feedforward component as described in [4]
ISSN 1335-8243 (print) © 2017 FEI TUKE ISSN 1338-3957 (online), www.aei.tuke.sk
Acta Electrotechnica et Informatica, Vol. 17, No. 3, 2017 45
As default as interface is used UART connected to PC robot and its system. Example of this analytical
via Bluetooth module, but this interface can be redirected redundancy is calculation of linear and angular speed of
to other peripheral or module capable of transceiving data. the robot based on current flowing through armature of
Communication interface features function used for DC motors.
subscribing desired parameters like position, data from
sensors or control actions. These subscribed parameters
are then sent via communication interface with defined
period of time. This is main tool for collecting of the data,
which are then used for offline or online data analysis.
Diagnostic system is based on hardware and analytical Fig. 7 Block diagram of sample data pre-processing
redundancy, where information from multiple sensors and
mathematical models are put together using MSDF. 3.2. Fault Detection and Isolation
Proposed diagnostic system is currently under testing
on data measured from sensors and other relevant parts of FDI consists of residual generation, which is done by
MRCS. Diagnostic system was described in more detail in combining of the data using MSDF. For each sensor there
[5]. Whole diagnostic system is spreaded over multiple is independent residual generator that combines output
parts of MRCS, especially HAL, FDI and localization. from all other sensors using KF, whose output is
subtracted from the output of given sensor.
3.1. Data preprocessing This type of FDI is also capable of identifying unusual
or unwanted states of the system like skid of the robot or
This part of DS is used to prepare data from individual bump to the obstacle. These unusual states may show
sensors in the way of collecting, transforming and similar signs as faults of the sensors, some of them can be
filtering. Collecting of the data means receiving data from distinguished by taking in count information from
physical sensor using peripheral of microcontroller. This multiple residuals. For example error of the magnetometer
is done in HAL of MRCS. Transforming of the data is can be mistaken with unusual state caused by magnetic
calculation of the raw data to physical units based on field from metal object or permanent magnet placed near
calibration data. mobile robot.
This part is also used to generate analytical All residual are processed using simple expert system
redundancy based on mathematical models of mobile to determine actual state of the sensors and mobile robot.
ISSN 1335-8243 (print) © 2017 FEI TUKE ISSN 1338-3957 (online), www.aei.tuke.sk
46 Embedded Control System for Mobile Robots with Differential Drive
Simplified block diagram of designed FDI for four restricted dimensions and weight compete against each
sensors is shown in Fig. 8, where ω1-4 are measures from other. The whole system consists of three, five or ten
sensors after data preprocessing, e1-4 are error attributes mobile robots per team (depending on league), camera
from data preprocessing, r1-4 are residuals and E is placed above gaming pitch and central computer.
information about faults and state of the system. There is Each player has color sticker with team color and other
separate FDI for linear and angular speed. colors for identifying of the robots and their position.
Central computer runs ROS with several nodes to control
robots. Main nodes are in this application are image
processing node to determine positions of all robots,
strategy planning node to calculate reference trajectories
for robots, motion control node to control motion of
mobile robots and communication node to transfer
commands between computer and robots. Image
processing and MiroSot category was described in [7].
4. SAMPLE APPLICATIONS
ISSN 1335-8243 (print) © 2017 FEI TUKE ISSN 1338-3957 (online), www.aei.tuke.sk
Acta Electrotechnica et Informatica, Vol. 17, No. 3, 2017 47
4.3. Line following using camera [3] JADLOVSKÝ, J. – KOPČÍK, M.: Distributed
Control System for Mobile Robots with Differential
In this application was used TrackBot mobile robot Drive, 2016 Cybernetics & Informatics (K&I),
with Raspberry Pi zero and camera. The line is detected Levoča, 2016, pp. 1–5, ISBN 9781-5090-1832-1.
using image processing on images from camera. To follow
line, robot uses algorithm, which determines distance of [4] JADLOVSKÝ, J. – KOPČÍK, M.: Basic Motion
the line from the center of the robot and calculates linear Control of Differential-Wheeled Mobile Robot
and angular velocities, which are sent to MRCS. ALFRED, Advances in Intelligent Systems and
Computing. - Switzerland : Springer, 2014, Vol. 316,
2015, pp. 73–80, ISSN 2194-5357.
[5] KOPČÍK, M.: Diagnostics of Sensors and Actuators
Within Distributed Control System, SCYR 2015 -
15th Scientific Conference of Young Researchers:
Proceedings from conference, Herľany, 2014, pp.
214–215, ISBN 978-80-553-2130-1.
[6] KOPČÍK, M.: Multisensor data fusion for
differential wheeled mobile robots, SCYR 2014 -
14th Scientific Conference of Young Researchers:
Proceedings from conference, Herľany, 2015, pp.
Fig. 12 TrackBot in line following application 223–226, ISBN 978-80-553-1714-4.
5. CONCLUSIONS [7] JADLOVSKÝ, J. – VARGA, M. – KOPČÍK, M.:
Image Processing for Localization of Mobile Robots,
In this article we presented control system for mobile Electrical Engineering and Informatics 6:
robots with differential drive, using embedded electronics Proceedings of the Faculty of Electrical Engineering
with 32-bit ARM based microcontroller. Proposed mobile and Informatics of the Technical University of
robot control system was implemented and tested in Košice, 2015, pp. 574–577, ISBN 978-80-553-2178-
various applications using two types of chassis with 3.
minimal software changes. In this article the Fault [8] JADLOVSKÝ, J. – KOPČÍK, M. – SEGIŇÁKOVÁ,
Detection and Isolation and MultiSensor Data Fusion was S.: Introduction into maze mapping and the shortest
proposed, which will be implemented in control system in path finding, Electrical Engineering and Informatics
the future work. 6: Proceedings of the Faculty of Electrical
Engineering and Informatics of the Technical
ACKNOWLEDGMENTS University of Košice, 2015, pp. 621–625, ISBN 978-
80-553-2178-3.
This publication arose thanks to the support of the
Operational Programme Research and development for Received March 2, 2017, accepted July 11, 2017
the project "Centre of Information and Communication
Technologies for Knowledge Systems" (ITMS code BIOGRAPHIES
26220120020), co-financed by the European Regional
Development Fund (20%), by the Research and Michal Kopčík was born on 17.1.1989. In 2013 he graduated
Development Operational Program for project: University (MSc) with distinction at the Department of Cybernetics and
Science Park Technicom for innovative applications with Artificial Intelligence of the Faculty of Electrical Engineering
knowledge technology support – 2nd phase, ITMS code and Informatics at Technical University of Košice. Since
September 2013 he works as PhD. student at the Department of
313011D232, co-financed by the ERDF (40%), grant Cybernetics and Artificial Intelligence. His scientific research is
TUKE FEI-2015-33: Research Laboratory of Nonlinear focusing on mobile robotics in connection to embedded systems,
Underactuated Systems (30%) and also this publications fault detection and isolation and multisensor data fusion. He also
also arose thanks to grant KEGA - 001TUKE-4/2015 participates in various research projects.
(10%).
Ján Jadlovský works at the Department of Cybernetics and
REFERENCES Artificial intelligence of Technical University of Košice as a
Assoc prof. He is a graduate of Technical University of Košice,
[1] MONDADA, F. et al.: The e-puck, a Robot Faculty of Electrical Engineering. In terms of pedagogy he
focuses on the issues of proposal and implementation of
Designed for Education in Engineering, Proceedings
distributed systems that control production processes. In his
of the 9th Conference on Autonomous Robot Systems science-research based activities he is oriented towards
and Competitions, Castelo Branco, Portugal, 2009, distributed control systems, image recognition, complex
vol. 1, num. 1, pp. 59–65. functional diagnostics of single purpose regulators, diagnostics
of production control systems, creation of information and
[2] STERGIOS, S. I. – SUKHATME, G. S. – BEKEY,
control systems with application of the latest information
G. A.: Sensor fault detection and identification in a technology. He is a chief executive of company
mobile robot, Proceedings of the 1998 IEEE/RSJ KYBERNETIKA, s.r.o., Košice, that is oriented towards design
Intl. Conference on Intelligent Robots and Systems, engineering, implementation and operation of production and
Victoria, B.C., Canada, October 1998, pp. 1383– diagnostic systems in the electrical engineering, mechanical and
1388, ISBN 0-7803-4465-0. metallurgical production.
ISSN 1335-8243 (print) © 2017 FEI TUKE ISSN 1338-3957 (online), www.aei.tuke.sk