The Real-Time Control System for Servomechanisms

Similar documents
Motion Control of a Three Active Wheeled Mobile Robot and Collision-Free Human Following Navigation in Outdoor Environment

Design and Development of Novel Two Axis Servo Control Mechanism

International Journal of Advance Engineering and Research Development

RAPID CONTROL PROTOTYPING FOR ELECTRIC DRIVES

Virtual Reality Devices in C2 Systems

DEMONSTRATIONAL SYSTEM FOR TRAINING IN FlexRay COMMUNICATION

The Haptic Impendance Control through Virtual Environment Force Compensation

Automobile Prototype Servo Control

Distance Measurement of an Object by using Ultrasonic Sensors with Arduino and GSM Module

Robotic Swing Drive as Exploit of Stiffness Control Implementation

Final Report. Chazer Gator. by Siddharth Garg

DC motor control using arduino

Design and Control of the BUAA Four-Fingered Hand

Team Description Paper: HuroEvolution Humanoid Robot for Robocup 2010 Humanoid League

9 Things to Consider When Specifying Servo Motors

Preliminary Design Report. Project Title: Search and Destroy

An Introduction To Modular Robots

SELF STABILIZING PLATFORM

Laboratory of Advanced Simulations

Small Unmanned Aerial Vehicle Simulation Research

Key-Words: - Neural Networks, Cerebellum, Cerebellar Model Articulation Controller (CMAC), Auto-pilot

Wheeled Mobile Robot Kuzma I

Advances in Antenna Measurement Instrumentation and Systems

Segway Robot Designing And Simulating, Using BELBIC

Design of Joint Controller Circuit for PA10 Robot Arm

OFFensive Swarm-Enabled Tactics (OFFSET)

Robotics Prof. Dilip Kumar Pratihar Department of Mechanical Engineering Indian Institute of Technology, Kharagpur

Abstract Entry TI2827 Crawler for Design Stellaris 2010 competition

Designing of a Shooting System Using Ultrasonic Radar Sensor

DLR s ROboMObil HIL Simulator Using FMI 2.0 Technology on dspace SCALEXIO Real-time Hardware. Andreas Pillekeit - dspace. Jonathan Brembeck DLR

Workshops Elisava Introduction to programming and electronics (Scratch & Arduino)

Hardware in the Loop Simulation for Unmanned Aerial Vehicles

Wheeled Mobile Robot Obstacle Avoidance Using Compass and Ultrasonic

MULTI-LAYERED HYBRID ARCHITECTURE TO SOLVE COMPLEX TASKS OF AN AUTONOMOUS MOBILE ROBOT

TASCA 4 Target Wheel Control

PRODUCTS AND LAB SOLUTIONS

Designing Toys That Come Alive: Curious Robots for Creative Play

Advanced Mechatronics 1 st Mini Project. Remote Control Car. Jose Antonio De Gracia Gómez, Amartya Barua March, 25 th 2014

Robo-Erectus Tr-2010 TeenSize Team Description Paper.

Distributed Vision System: A Perceptual Information Infrastructure for Robot Navigation

CYCLIC GENETIC ALGORITHMS FOR EVOLVING MULTI-LOOP CONTROL PROGRAMS

Automatic Docking System with Recharging and Battery Replacement for Surveillance Robot

Classical Control Based Autopilot Design Using PC/104

AGENT PLATFORM FOR ROBOT CONTROL IN REAL-TIME DYNAMIC ENVIRONMENTS. Nuno Sousa Eugénio Oliveira

A Simple Design of Clean Robot

MCE441/541 Midterm Project Position Control of Rotary Servomechanism

Continuous Rotation Control of Robotic Arm using Slip Rings for Mars Rover

ADVANCED SAFETY APPLICATIONS FOR RAILWAY CROSSING

Voice Guided Military Robot for Defence Application

Control System for an All-Terrain Mobile Robot

Adaptive Humanoid Robot Arm Motion Generation by Evolved Neural Controllers

ISSN Vol.05,Issue.01, January-2017, Pages:

Nao Devils Dortmund. Team Description for RoboCup Matthias Hofmann, Ingmar Schwarz, and Oliver Urbann

Implementation of a Self-Driven Robot for Remote Surveillance

Software Computer Vision - Driver Assistance

Visual Perception Based Behaviors for a Small Autonomous Mobile Robot

YRA Team Description 2011

UNIVERSIDAD CARLOS III DE MADRID ESCUELA POLITÉCNICA SUPERIOR

NAVIGATION OF MOBILE ROBOT USING THE PSO PARTICLE SWARM OPTIMIZATION

FLCS V2.1. AHRS, Autopilot, Gyro Stabilized Gimbals Control, Ground Control Station

Physics Based Sensor simulation

Design of Joint Controller for Welding Robot and Parameter Optimization

Computational Principles of Mobile Robotics

Mechatronics Project Presentation

COURSE MODULES LEVEL 3.1 & 3.2

III. MATERIAL AND COMPONENTS USED

ELECTRICAL CONTROL DESIGN FOR DRIVING SYSTEM OF SERVO MOTOR

A New Simulation Technology Research for Missile Control System based on DSP. Bin Tian*, Jianqiao Yu, Yuesong Mei

2006 CCRTS THE STATE OF THE ART AND THE STATE OF THE PRACTICE. Network on Target: Remotely Configured Adaptive Tactical Networks. C2 Experimentation

OBSTACLE EVADING ULTRASONIC ROBOT. Aaron Hunter Eric Whitestone Joel Chenette Anne-Marie Cressin

Virtual Testing of Autonomous Vehicles

Android Phone Based Assistant System for Handicapped/Disabled/Aged People

NCCT IEEE PROJECTS ADVANCED ROBOTICS SOLUTIONS. Latest Projects, in various Domains. Promise for the Best Projects

Design of intelligent vehicle control system based on machine visual

Modelling and Simulation of Tactile Sensing System of Fingers for Intelligent Robotic Manipulation Control

Chapter 1. Robot and Robotics PP

SENLUTION Miniature Angular & Heading Reference System The World s Smallest Mini-AHRS

Robotic Navigation Distance Control Platform

A PROTOTYPE CLIMBING ROBOT FOR INSPECTION OF COMPLEX FERROUS STRUCTURES

Executive Summary. Chapter 1. Overview of Control

GESTURE BASED ROBOTIC ARM

A K D S E R V O D R I V E

Path Planning and Obstacle Avoidance for Boe Bot Mobile Robot

IMU Platform for Workshops

Behaviour-Based Control. IAR Lecture 5 Barbara Webb

Intelligent Driving Agents

An Electronic Eye to Improve Efficiency of Cut Tile Measuring Function

Space Research expeditions and open space work. Education & Research Teaching and laboratory facilities. Medical Assistance for people

Easy-To-Use Graphic Interface

Advanced Distributed Architecture for a Small Biped Robot Control M. Albero, F. Blanes, G. Benet, J.E. Simó, J. Coronel

Based on the ARM and PID Control Free Pendulum Balance System

Hardware Implementation of an Explorer Bot Using XBEE & GSM Technology

e-navigation Underway International February 2016 Kilyong Kim(GMT Co., Ltd.) Co-author : Seojeong Lee(Korea Maritime and Ocean University)

CS494/594: Software for Intelligent Robotics

MEDICAL ROVER. Locus Gives the doctors and nurses a hand

Multi-robot Formation Control Based on Leader-follower Method

SPEED SYNCHRONIZATION OF MASTER SLAVE D.C. MOTORS USING MICROCONTROLLER, FOR TEXTILE APPLICATIONS

An Improved Path Planning Method Based on Artificial Potential Field for a Mobile Robot

Simple Path Planning Algorithm for Two-Wheeled Differentially Driven (2WDD) Soccer Robots

Learning Algorithms for Servomechanism Time Suboptimal Control

Transcription:

The Real-Time Control System for Servomechanisms PETR STODOLA, JAN MAZAL, IVANA MOKRÁ, MILAN PODHOREC Department of Military Management and Tactics University of Defence Kounicova str. 65, Brno CZECH REPUBLIC Petr.Stodola@unob.cz http://www.unob.cz/en/ Abstract: - This paper deals with the design and implementation of our real-time system for controlling servomotors. In the first part, the article presents the basic architecture of the designed system and shows the basic structure of a control algorithm. The next part deals with principles of real-time communication between a servo drive and a system control unit and introduces an algorithm for servo position control. The last part is focused on our application of the system. Key-Words: - servomotor, real-time control system, microcontroller, CAN bus 1 Introduction Nowadays servomotors can be found in a wide range of applications. Their utilization is common in machines and devices for industrial automation, e.g. in machining, automotive, rubber, food processing, glass, or construction industry for controlling robots, manipulators, manufacturing machines, CNC machines, packing machines, assembly machines, etc. There are a lot of various types of servomotors, as well as possibilities of their control. At the present time the most common way for controlling servomotors is the real-time principle, i.e. they can be steered according to current requirements or as a reaction to unpredictable circumstances without unacceptable delay causing material, financial or other losses. This paper deals with the design and implementation of our own real-time multi-axis system for controlling servomotors without the necessity of buying a very expensive control system from producers. We have managed to design and construct a reliable system which is used for controlling devices being developed within our research projects [1], [2]. This paper considers a topic that has practical implementation and that is of a real concern in number of research or industry applications. There are a lot of papers published in international journals and conferences dealing with utilization and implementation of manipulators, manufacturing machines or robots, e.g. [7], [8], [9], [10]. This paper can provide a unique system as a solution for their controlling. 2 System architecture Our system serves for controlling servomotors from the TG Drives company. This company offers its own real-time control system called TG Motion [3] which can be installed on the control unit (computer) with the operating system Windows XP. TG Motion provides a real-time control with precision in microseconds. However it is very expensive and increases project costs considerably. The TG Motion architecture is shown in Fig. 1. It is apparent that the link between the control unit and the servo device is conducted directly via a CAN bus or an industrial Ethernet bus EtherCAT. The real-time system TG Motion is installed on the control unit; communication with the control software proceeds via shared memory. Fig. 2 presents the architecture of our system. There is included a microcontroller Stellaris between the control unit and servo device; the microcontroller replaces the TG Motion system completely. Communication between the control software and microcontroller is established on a serial interface RS232 or Ethernet. The microcontroller is connected to the servo device via a CAN bus. ISBN: 978-1-61804-142-5 64

Fig. 1 TG Motion system architecture Fig. 2 Architecture of our system 3 Communication protocol Communication between the microcontroller and servo device on a CAN bus [4] is shown in Fig. 3. In real-time position control commands SYNC are sent to the servo device in regular time intervals t sync (1 to 8 ms according to user setting); up to three servomotors can be connected to one servo device. Subsequently, the servo device sends ACTPOS messages containing current positions of all connected servomotors. The microcontroller has to compute new positions of the servomotors requested in the next step and send them to the servo device in time interval t pos via NEWPOS messages. Then the whole cycle is repeated. Communication is established on a serial interface RS232 or Ethernet and conducted by standardized messages. It does not have to run in the real time; only the microcontroller is responsible for the real-time messaging. Fig. 3 Communication between the microcontroller and servo device ISBN: 978-1-61804-142-5 65

4 Control algorithm structure This part presents a simplified structure of our control algorithm (see Fig. 4) running in the microcontroller Stellaris (particularly the type LM3S8962 with clock frequency 50 Mhz [5]). The algorithm is based on the above mentioned communication protocol. When the power is on, microcontroller s system variables, parameters, and busses (CAN and RS232 or Ethernet if needed) are initialized and the connection with the servo device is established. The system timer interrupt regularly generates SYNC commands and sends them to the servo device in time intervals t sync (particularly 4 ms in our application). The main loop of the algorithm waits for setting the msg variable signaling arrivals of ACTPOS messages from the servo device (messages are received in the CAN interrupt). After receiving the messages, new requested positions of all servomotors are computed and sent to the servo device via NEWPOS messages. Then the whole process is repeated. Fig. 4 Structure of the control algorithm 5 Algorithm for position control The key element for real-time controlling is calculation of all servomotors positions in each step of the main loop of the control algorithm. The aim is to reach the precisely defined target position s r from the initial position s 0 as fast as possible, providing the maximal values of speed (v max ), acceleration (a max ) and deceleration (d max ) are not exceeded. We have chosen the Trapezoid curve for position control (see Fig. 5). This curve guarantees a linear progress of servomotor s acceleration and deceleration. The requested position in the next step has to be computed in the current step (see the white circles in Fig. 5) so that the target position is reached as soon as possible and at the same time parameters v max, a max and d max are not exceeded. Fig. 5 Trapezoid curve for position control ISBN: 978-1-61804-142-5 66

An advantage of our algorithm consists in the possibility of changing the requested position s r from the control unit whenever wanted (even when the servomotor is just rotating). Fig. 6 shows the example of the curve progress (both in speed and position axes); a new request s r2 comes before the first position s r1 is reached. Fig. 6 Example of the curve progress in speed and position axes 6 Possibilities of system applications We use the designed system in our research projects, particularly in the project of an experimental autonomous vehicle TCX-G1 being developed at the University of Defence since 2007. The vehicle is designed especially for reconnaissance purposes with the possibility of automatic searching for targets and their destruction [1], [2]. The vehicle is shown in Fig. 7. The microcontroller Stellaris operates the five servomotors (connected to the two servo devices) in the real time (see Fig. 7). The used servomotors are as follows: Rotation of front wheels. Rotation of the sensor and weapon platform. Horizontal rotation of the camera system. Vertical tilting the camera system. Vertical tilting the weapon system. 7 Conclusion The article designs the real-time system for controlling servomotors via the microcontroller Stellaris. This system replaces the very expensive TG Motion system from a producer and at the same time it provides the same functionality. Areas of its utilization are really wide; there are a lot of applications for it. The system can be used for controlling motion parts of robots, manipulators, CNC machines, assembly machines, etc. Reliability and precision of it was successfully verified when implemented into our experimental ground vehicle being developed and tested at the University of Defence. Perspectives of our next research in this area can be seen in S-curves [6] implementation for position control instead of Trapezoid curves being used at present. S-curves should ensure more fluent forces exerted on servomotors in the phase of their ISBN: 978-1-61804-142-5 67

acceleration or deceleration. An advantage consists in lesser oscillations of rotary parts when the servomotor is stopped rapidly (e.g. the barrel of a gun while tilting). However we still have to verify the practical impact of using S-curves in detail on the real application. Fig. 7. Experimental autonomous ground vehicle TCX-G1 References: [1] STODOLA, P., MAZAL, J., Optimal Location and Motion of Autonomous Unmanned Ground Vehicles, WSEAS Transactions on Signal Processing, Vol. 6, No. 2, 2010, pp. 68-77, ISSN 1790-5052. [2] STODOLA, P., Extended Motion Model of Autonomous Ground Vehicle, International Journal of Mathematics and Computers in Simulation, Vol. 5, No. 1, 2011, pp. 28-35, ISSN 1998-0159. [3] TG Motion: Virtual PLC v 6.2, Brno: TG Drives, 2005. [4] Sdrive: UNI Interface Board Manual, ver. 7.51, Brno: TG Drives, 2009. [5] Stellaris LM3S8962 Microcontroller: Data Sheet, Wild Basin: Texas Instruments, 2011. [6] DENISON, D., Log(ist)ic and simplistic curves, Raymond Hickey (ed.), Motives for Language Change, Cambridge: Cambridge University Press, 2003, pp. 54-70, ISBN 978-0- 521-79303-2. [7] HASAN, A. T., Under-Actuated Robot Manipulator Positioning Control Using Artificial Neural Network Inversion Technique, Advances in Artificial Intelligence, Vol. 2012, 6 p, ISSN 1687-7470. [8] HASSANZADEH, I., DARABI, M., HASSANZADEH, S., Rapid Prototyping of a Manipulator Mechanism Using Hardware in the Loop (HIL) Simulators and Comparing the Results, WSEAS International Conference on Applications of Electrical Engineering, Prague, 2006, pp. 191-196. ISBN 960-8457-42-4. [9] ZAHER, A. A., ZOHDY, M. A., Robust Motion Control of Biped Walking Robots, WSEAS Transactions on Systems and Control, Vol. 4, No. 12, 2009, pp. 613-624, ISSN 1991-8763. [10] LIN, R. S., CHEN, S. L., LIAO, J. H., Advanced Curve Machining Method for 5-Axis CNC Machine Tools, International MultiConference on Engineers and Computer Scientists, Hong Kong, 2011, ISBN 978-988- 19251-2-1. ISBN: 978-1-61804-142-5 68