Modelling and Control of DWR 1.0 A Two Wheeled Mobile Robot

Similar documents
DC Motor Position: System Modeling

Dynamic Modeling of Rotary Double Inverted Pendulum Using Classical Mechanics

Fuzzy modeling and control of rotary inverted pendulum system using LQR technique

FUZZY LOGIC CONTROL Vs. CONVENTIONAL PID CONTROL OF AN INVERTED PENDULUM ROBOT

Example: DC Motor Speed Modeling

Mechatronics Engineering. Li Wen

Design of Fuzzy Logic Control System for Segway Type Mobile Robots

Modelling of Ball and Plate System Based on First Principle Model and Optimal Control

The dynamics of a Mobile Inverted Pendulum (MIP)

Example: Modeling DC Motor Position Physical Setup System Equations Design Requirements MATLAB Representation and Open-Loop Response

Design, realization and modeling of a two-wheeled mobile pendulum system

GAIN SCHEDULING CONTROL WITH MULTI-LOOP PID FOR 2- DOF ARM ROBOT TRAJECTORY CONTROL

EE Homework 3 Due Date: 03 / 30 / Spring 2015

PID Controller Design for DC Motor

Predictive Cascade Control of DC Motor

MATHEMATICAL MODEL ANALYSIS AND CONTROL ALGORITHMS DESIGN BASED ON STATE FEEDBACK METHOD OF ROTARY INVERTED PENDULUM

Jurnal Teknologi IMPLEMENTATION OF ROBUST COMPOSITE NONLINEAR FEEDBACK FOR ACTIVE FRONT STEERING BASED VEHICLE YAW STABILITY.

Gain Scheduling Control with Multi-loop PID for 2-DOF Arm Robot Trajectory Control

MECH 3140 Final Project

Research Article On the Dynamics of the Furuta Pendulum

Mechatronic System Case Study: Rotary Inverted Pendulum Dynamic System Investigation

Adaptive Fuzzy PID For The Control Of Ball And Beam System

FU REASONING INFERENCE ASSOCIATED WIT GENETIC ALGORIT M APPLIED TO A TWO-W EELED SELF-BALANCING ROBOT OF LEGO MINDSTORMS NXT

Robot Manipulator Control. Hesheng Wang Dept. of Automation

ELEC4631 s Lecture 2: Dynamic Control Systems 7 March Overview of dynamic control systems

Stabilization of Motion of the Segway 1

Coupled Drive Apparatus Modelling and Simulation

MOBILE ROBOT DYNAMICS WITH FRICTION IN SIMULINK

Real-Time Implementation of a LQR-Based Controller for the Stabilization of a Double Inverted Pendulum

MEAM 510 Fall 2011 Bruce D. Kothmann

Manufacturing Equipment Control

Appendix W. Dynamic Models. W.2 4 Complex Mechanical Systems. Translational and Rotational Systems W.2.1

Mathematical Modeling and Dynamic Simulation of a Class of Drive Systems with Permanent Magnet Synchronous Motors

MATHEMATICAL MODELING OF OPEN LOOP PMDC MOTOR USING MATLAB/SIMULINK

Lab 6a: Pole Placement for the Inverted Pendulum

Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #02: DC Motor Position Control. DC Motor Control Trainer (DCMCT) Student Manual

MEM04: Rotary Inverted Pendulum

Line following of a mobile robot

THE REACTION WHEEL PENDULUM

MEAM 510 Fall 2012 Bruce D. Kothmann

Satellite Attitude Control System Design Using Reaction Wheels Bhanu Gouda Brian Fast Dan Simon

Introduction to Control (034040) lecture no. 2

Review: control, feedback, etc. Today s topic: state-space models of systems; linearization

Design and Comparison of Different Controllers to Stabilize a Rotary Inverted Pendulum

Course of lab activities on control theory based on the Lego NXT

Robotics. Dynamics. University of Stuttgart Winter 2018/19

FUZZY SWING-UP AND STABILIZATION OF REAL INVERTED PENDULUM USING SINGLE RULEBASE

3- DOF Scara type Robot Manipulator using Mamdani Based Fuzzy Controller

DISTURBANCE ATTENUATION IN A MAGNETIC LEVITATION SYSTEM WITH ACCELERATION FEEDBACK

HARDWARE-IN-THE-LOOP SIMULATION AND DIGITAL CONTROL OF DOUBLE INVERTED PENDULUM

Model of a DC Generator Driving a DC Motor (which propels a car)

A Backstepping control strategy for constrained tendon driven robotic finger

CONTROL OF ROBOT CAMERA SYSTEM WITH ACTUATOR S DYNAMICS TO TRACK MOVING OBJECT

E11 Lecture 13: Motors. Professor Lape Fall 2010

MODELING OF TWO-WHEELED SELF-BALANCING ROBOT DRIVEN BY DC GEARMOTORS

International Journal of Advance Engineering and Research Development SIMULATION OF FIELD ORIENTED CONTROL OF PERMANENT MAGNET SYNCHRONOUS MOTOR

Stable Limit Cycle Generation for Underactuated Mechanical Systems, Application: Inertia Wheel Inverted Pendulum

Modelling, identification and simulation of the inverted pendulum PS600

ECEN 420 LINEAR CONTROL SYSTEMS. Lecture 6 Mathematical Representation of Physical Systems II 1/67

ENGG4420 LECTURE 7. CHAPTER 1 BY RADU MURESAN Page 1. September :29 PM

Anakapalli Andhra Pradesh, India I. INTRODUCTION

EE 474 Lab Part 2: Open-Loop and Closed-Loop Control (Velocity Servo)

Positioning Servo Design Example

Controlling the Inverted Pendulum

Lab 5a: Pole Placement for the Inverted Pendulum

Simulation of Backstepping-based Nonlinear Control for Quadrotor Helicopter

Motion Control. Laboratory assignment. Case study. Lectures. compliance, backlash and nonlinear friction. control strategies to improve performance

SRV02-Series Rotary Experiment # 1. Position Control. Student Handout

FEEDBACK CONTROL SYSTEMS

Robot Control Basics CS 685

Research Article Force Control for a Pneumatic Cylinder Using Generalized Predictive Controller Approach

Inverted Pendulum System

Balancing of an Inverted Pendulum with a SCARA Robot

Introduction to Feedback Control

Tutorial 1 - Drive fundamentals and DC motor characteristics

Robotics. Dynamics. Marc Toussaint U Stuttgart

Video 5.1 Vijay Kumar and Ani Hsieh

Introduction to Controls

Lecture «Robot Dynamics»: Dynamics 2

Design and Implementation of Control System for Inverted Pendulum

Modelling and Stability Control of Two-Wheeled Robots in Low-Traction Environments

Modeling and Experimentation: Compound Pendulum

Lecture «Robot Dynamics»: Dynamics and Control

Rotary Inverted Pendulum

Mechatronics. MANE 4490 Fall 2002 Assignment # 1

Computational and mathematical modeling of an industrialautomobile robot: a multi-purpose case of study

Physics 12. Unit 5 Circular Motion and Gravitation Part 1

6. 3D Kinematics DE2-EA 2.1: M4DE. Dr Connor Myant

SRV02-Series Rotary Experiment # 7. Rotary Inverted Pendulum. Student Handout

EE 410/510: Electromechanical Systems Chapter 4

EXAMPLE: MODELING THE PT326 PROCESS TRAINER

Friction. Modeling, Identification, & Analysis

Embedded Control: Applications and Theory

Intelligent Systems and Control Prof. Laxmidhar Behera Indian Institute of Technology, Kanpur

3D Pendulum Experimental Setup for Earth-based Testing of the Attitude Dynamics of an Orbiting Spacecraft

Extremum Seeking for Dead-Zone Compensation and Its Application to a Two-Wheeled Robot

Model Reference Adaptive Control of Underwater Robotic Vehicle in Plane Motion

LQG/LTR CONTROLLER DESIGN FOR ROTARY INVERTED PENDULUM QUANSER REAL-TIME EXPERIMENT

MAE143a: Signals & Systems (& Control) Final Exam (2011) solutions

CEE 271: Applied Mechanics II, Dynamics Lecture 25: Ch.17, Sec.4-5

Transcription:

APPLICAIONS OF MODELLING AND SIMULAION http://www.ams-mss.org eissn 600-8084 VOL 1, NO. 1, 017, 9-35 Modelling and Control of DW 1.0 A wo Wheeled Mobile obot Nurhayati Baharudin, Mohamad Shukri Zainal Abidin *, Muhd Saiful Azimi Mahmud and Muhammad Khairie Idham Abd ahman 1 Department of Control and Mechatronics Engineering, Faculty of Electrical Engineering, Universiti eknologi Malaysia, 81310 UM Johor Bahru, Johor, Malaysia. * Corresponding author: shukri@fke.utm.my Abstract: his paper presents modelling and control of DW 1.0, a two wheeled mobile robot. his balancing robot is one of the applications of an inverted pendulum on a two wheel. A relatively recent offshoot of the classical inverted pendulum is the wheel inverted pendulum, popularized in contemporary culture by the Segway Personal ransporter. However, the mathematical model for a wheel inverted pendulum do not account for the full complexity of the construction of the platform. he mathematical model obtained in this work with the measured parameters is simulated using Matlab and PID control parameters are determined. Finally, PID control algorithm is implemented on the two-wheeled mobile robot to test the accuracy of the model. Keywords: Inverted pendulum; modelling; PID control; simulation; two wheeled mobile robot. 1. INODUCION A two-wheel mobile robot is one of the applications for the inverted pendulum system. Inverted pendulum is a classical model of under-actuated, non-linear and unstable system. Hence, control of a two-wheel mobile robot is very challenging as it is non-linear, unstable and uncontrollable system. esearch and study on the controlling self-balancing two-wheel robot has contributed to the practical interest which is the applications on the vehicle field and autonomous robotics. Many practical systems have been implemented based on the two-wheel self-balancing robot models [1]. Among these applications, Segway P has been a popular personal transporter since invented in 001[]. he two-wheel mobile robots can be divided into two parts. he first is the lower parts which consist of two wheels connected to the axis and driven independently. he second part is the body of the robot which is placed at the centre of mass above the axis. he controller drives the wheel to maintain the body on the up-right position. wo wheeled mobile robots are well suited for traversing narrow spaces and slopes. Its characteristic includes compact size, light weight and lower energy consumption [3]. In this work, a two-wheeled mobile robot has been successfully developed, and this paper present development of the mathematical model. he mathematical model for the robot has to be developed based on the available system and hardware. By using the system identification approach, analysis of the physical platform, and the fundamental laws of mechanics, a nonlinear model of the system can be developed. his is useful as various control techniques can be tested and simulated by using the developed model.. MAHEMAICAL MODEL In this work, a non-linear model of DW 1.0, a two wheeled mobile robot shown in Figure 1 is developed. he motion of these two wheels mobile robot system involve of translational and rotational movements. he mathematical model is then linearized and converted into a state space form..1 DC Motor Modelling he two-wheel mobile robot is powered by two DC motors. Figure shows the diagram of a DC motor, and the mathematical model for the DC motor is derived [3]. 9

Figure 1. he DW 1.0 two wheeled mobile robot. Figure. DC motor he motor produces a torque which proportional to the current, m k m i (1) he voltage is proportional to the motor speed, V e k () e According to Kirchhoff s Voltage Law, sum of all voltages in the circuit must be equal to zero. di Va i L 0 (3) dt By rearranging Equations (1), () and (3), the DC motor equation can be obtained as d kmke 1 a Va (4) dt I I I. Wheel Modelling Figure 3 shows the free body diagram for left and right wheels. he free body diagram is useful to obtain the mathematical model based on Newton s Law. Every wheel has its own DC motor, which will provide free movement. Figure 3. Free body diagram of left and right wheels 30

Both of the wheels are assumed as identical and no slip occurs between wheels and ground. he mathematical modeling of wheel is described by the two motions which involve linear and angular motions. Linear Motion Angular Motion Left Wheel x M H F (5) LW LW LW LW LW JLW LW HLW (6) LW JLW FLW LW x LW M LW (7) ight Wheel W JW FW W xw M W (8) By combining Equations (7) and (8), and rearranging the equations and substituting the parameters from the DC motor derivation section, he final equation for wheel modelling is obtained as J. WH kmke km km MWH x x Va : LW VaW ( FLW FW ) r r r (9).3 Chassis Modelling he body of the robot can be modelled as an inverted pendulum on the two wheels. he physical representation of the system is illustrated by a two wheel inverted pendulum. he model adopted here is based on [4], where the behavior can be influenced by the motor s torque and disturbance forces from the centre of gravity. Figure 4 illustrates the free body diagram used to derive the mathematical model. able 1 describes the symbols used in this paper. he force balance equation can be written as F F f M l cos ( M M M ) x (10) From wheel modelling equation, LW W p p C p WH J W LW WH f p M pl cos M C M p 4MWH x (11) Figure 4. Free body diagram DW 1.0 robot 31

able 1. Parameter of the two-wheeled mobile robot Parameter L, θ LW, θ W H LW, H W F L, F fp x θ Mp M C M LW, M W CG l Description Driving torques of the left and right motors. Angle of the wheels rotation. Friction between the wheels and surface Interaction force between wheels and chassis External disturbance at the centre of gravity Position of two-wheel mobile robot ilt angle of inverted pendulum (robot body) Mass of pendulum Mass of robot chassis Masses of both wheels adius of the wheel Centre of gravity Distance between CG and wheel axis Collecting, W LW fp M pl cos x JWH 4MWH M C M (1) hen, the rotation around the Z axis (for the body tilt) can be determine as M pgl sin M p xl cos f pl cos ( J J ) (13) Substituting Equation (13) into (1) yields sin cos W LW M pgl f pl f p M pl cos ( J J ) x J M p l cos WH 4MWH M C M Mp ( J JJ ) (14) and substituting Equations (14) into (1) gives JWH W LW M p gl sin f pl cos 4MWH M cos C M p M pl f p JWH J J 4MWH M C M p M p l cos (15) Equations (14) and (15) represent a dynamic model of a two wheeled mobile robot DW 1.0. his robot have two degrees of freedom (DOFs) involving movement along X-axis (position) and rotation about Z-axis. Both DOFs can be controlled via the DC motor setup on the wheel. he upper part or inverted pendulum is carried on top of the two wheels with length, l and weight, m. In order to represent the system in a state space form, the dynamic equations, Equations (14) and (15) need to be linearized. his was done using the aylor s series and with the assumption of small θ, (θ 0), fp W J LW J M pl M pgl x J J J J (16) 3

J 4 WH M plw M pllw M p gl f pl MWH M C M p M plf p (17) where p J M l w Mc M p 4MW ( J J ) J ( J J ) M M 4M M l W c p W p Substituting the torque transformation equation into Equations (16) and (17) yelds k. mke km LW W x Va (18) r r x 0 1 0 0 x 0 0 0 Va v 0 A [ ] = [ A 3 0 v B ] [ ] + [ 1 B B LW 3 ] [ Va θ 0 0 0 1 θ 0 0 0 W ] f ω 0 A 4 A 43 0 ω B 41 B 4 B p 43 A A k k m e ; A 3 r m e p 4 ; A 43 p M gl ( J J Jw M 4 c M p MW M p gl k k M l r p ml km k M gl m B1 ; B ; B3 r r ( J J ) Jw Mc M p 4MW l ml k mm pl B41 B4 ; B 43 r 3. PAAMAE IDENIFICAION he parameters to be identified from the actual physical components are Mwh, Mp, Mrc,, L, Jw, Jp, Jm, km, ke, and r. hese parameters need to be determined empirically based on the DW 1.0 mobile robot. able shows a list of parameters identified from the DW 1.0. All the parameters will be used in the mathematical modelling equation for analysis of the stability and design the controllers for the system. able. List of simulation parameters No Part Name Weight (kg) Moment of Inertia (J) 1 Inverted Pendulum Mp = 0.335 J p = ml 3 = 0.068 Chassis Mrc =0.65 3 Wheel Mwh = 0.45 J m = 1 1 m(w + h ) J w = 1 1 (m ) 4 Overall robot weight 1.4 33

he DW 1.0 robot is equipped with Pittman GM 871-31 DC motor as the actuator. his motor is used to balance the robot with 4 V voltage supply. able 4 shows the DC motor parameters identified using experiments. able 3. DC motor parameters Battery Voltage (V) Current (A) PM shaft (rad/sec) Voltage drop (V) Ke (V/rad/sec) 10 0.10 63 (6.597) 1.49 0.013 15 0.1 100 (10.47) 1.788 0.009 0 0.13 136 (14.4) 1.937 0.010 4 0.15 167 (17.49).35 0.010 4. CONOL SAEGY o control and stabilize the two wheeled mobile robot DW 1.0, three PID controllers is required. he first PID is used to control the tilt angle of the robot using a feedback signal from a distance sensor. he set point is determined from the front and back sensors of the robot when the robot is perpendicular to the flat terrain as shown in Figure 5. he other two PID controllers are used to control the speed of left and right DC motors. he back EMF method was used to detect the current speed of both motors. In this work it is assumed that the parameters of the second and third controllers are the same. he output will control both the left and right motors at the same time. Figure 6 shows the PID control system block diagram for the DW 1.0. Figure 6. PID control system block diagram Figure 5. Set-point of the balancing robot Figure 7 shows the simulink block diagram design for DW 1.0 two wheel mobile robots. PID controls two and three join together to control both left and right motor. Figure 7. PID controller Simulink block diagram 5. ESUL his PID controller was designed in a cascade, where each PID controller has their own input and position in series forming a single regulating device. In a cascade control loop, it has two types of controller, namely the master or primary and the secondary or the slave. he master PID controller generated a control signal that served as the set point to the slave PID. he slave PID in turn used the actuator to apply its control signal directly to the system. able 4 shows the parameter values of K p, 34

K i and K d for both the master and slave PID controllers. Figure 8 shows the response of the two wheeled mobile robot using the proposed PID cascade control. Figure 8. Simulation result using PID controller. able 4. PID controller parameters Controller PID parameter values K p K i K d PID 1 (tilt angle control) 4 0 0 PID (left wheel speed control) 300 0.5 1 PID 3 (right wheel speed control) 300 0.5 1 he result showed that the system was oscillatory and unstable. A properly PID tuning with correct parameters are required. In addition, in the cascade control the secondary loop must be three or four times faster than the primary loop. 6. CONCLUSION A mathematical model of a two wheeled mobile robot has been developed based on DW 1.0. he actual parameters were determined experimentally and model was developed using the Newton Euler s Method. For control of DW 1.0, a cascade PID control technique was designed and simulation was performed within the MALAB/Simulink environment. Simulation results have shown that a properly tuned PID controller is crucial. In addition, some efforts are needed to ensure that the system parameters obtained through experiments are correct. EFEENCES [1] C.. Ching, Y. J. Shang and M. H. Shih, rajectory tracking of self-balancing two-wheeled robot using back stepping sliding mode control and fuzzy basis function networks, Proceeding of the 010 IEEE/SJ International Conference on Intelligent obots and system, aipei, aiwan, 010, pp. 3943-3948. [] C. L. Shui, C.. Ching and C. H. Hsu, Nonlinear adaptive sliding mode control design for two wheeled human transportation vehicle, Proceeding of the 009 IEEE International Conference on Systems, Man and Cybernetics, San Antonio, USA, 009, pp. 1965-1970. [3] C. O. ich, Balancing a two wheeled autonomous robot, hesis, University of Western Australia, 003 [4] A. O. Abd-Al-Azeem, M. K. Mohammed,. A. Moukarrab and M. S. Ibraheem, WIP robot balancing a two wheeled robot, Master of Science hesis, University of Minia, 009. 35