Implementationof Position Control Servo DCMotorwith PIDControllerto Humanoid Robot Arm
Implementationof Position Control Servo DCMotorwith PIDControllerto Humanoid Robot Arm
net/publication/354622337
CITATIONS READS
0 6,051
2 authors:
All content following this page was uploaded by Abdelrady Okasha Elnady on 26 October 2021.
Abstract–In this paper implementation of position control servo DC In this paper Position control of a 3rd ordered plant (Servo
motor with PID controller to humanoid robot arm is discussed. The motor) using Conventional PID [2],[3]. Simulation for
objectives are development and analyze the movement of humanoid recreation and results for some cases, examines utilizing
robotic arms before implementation to show the system response MTLAB program. And besides, adding the disturbance to
and get the least errors. Humanoid robot arms are mechanically
process (angle) and finding that the system is returning stable
controlled devices designed for emulated the movement of a human
arm. The mathematical equations of servo DC motor are simulated after the disturbance is removed. [4].
and connected to PID controller using the MATLAB program. The
Practical experience, by connecting a real control system to a
PID controller is a closed loop feedback mechanism system. It
calculates an error value from the difference measured process PID controller with adjusting the angles of the motor, every
variable and desired value, and give pulse-width modulation joint of the arm could be moved. It could be taught the
(PWM) signal to send it to motor by microcontroller. As a result, humanoid robot arm to perform those tasks by imitation and
the system response is getting without error and less overshoot. And learning it once [5].
besides, the disturbance is added to process (angle) and found that
the system is returning stable after the disturbance is removed. With
practical experience, the system achieved the same response and
efficiency. Under this control, every joint of the arm could be II. METHODOLOGY
moved by adjusting the angles of the motor. The different activities The control of adaptive robotic mechanical systems can
could be applied using the humanoid robot arm safely, because it’s
be approached using the general proposed formulation. This
stable system.
methodology is based on the use of the basic principles of
Keywords: Humanoid robot arm, Servo DC Motor, PID control concepts. To build real control system: The
controller, MATLABSimulink. methodology can be divided into five main steps.
Step 1: Determine the system requirements. Position control of
I. INTRODUCTION DC servo motor to imitate the human arm by adjusting the
selected angle.
Humanoid robots are being used in the inspection,
maintenance and disaster response at power plants to relieve Step 2: Understanding servo motor control. The position data
human workers of laborious and dangerous tasks. They are to the control should be sent in the form of PWM signal
being developed to perform human tasks like personal through the Signal pin of servo motor.
assistance, through which they should be able to assist the sick
and elderly. Simply speaking, the control electronics adjust Step 3: Choose benefit of control and tune it.
shaft position by controlling the DCservo motor.The position
data to the control should be sent in the form of PWM signal Step 4: Controller simulation. PID controller is used to
through the Signal pin of servo motor. A Servo DC motor improve the dynamic performance and also reduce the
alongside servomechanism (closed-loop control system) goes steady state error of the systems.
about as a servo motor which is essentially utilized as a Step 5: Controller implementation. Apply it to the DC-servo
mechanical transducer in the computerization business. A motor to optimize and test if it is practically stable.
servo framework is a shut circle framework where the
criticism signal (position, speed, and so on) drives the motor.
The motors are coupled to a yield shaft (load) through a stuff
train for power coordinating. III. SYSTEM MODELLING
In this DC servo motor can be considered as a linear SISO
The main aim of this paper is to analyze the servo motor and
system having a 3rd order transfer function. Armature control
show cases hypothesis of dynamic DC motor about the
is a closed loop system, while field control is an open loop
boundaries for (𝒎, 𝑳𝒂, 𝑹𝒂, 𝑩𝒎, 𝑲𝒃) [1].Then speaks to system. Closed loop systems are often the preferred choice for
mathematical equations (close loop) for dynamic DC motor operators and business leaders who are looking for stability
without and with PID controller. and the convenience of a 108 automated process. Armature
The relation between shaft position and armature voltage is 𝑅𝑎 Armature Resistance 1Ω
derived from the physical laws [1]. Schematic graph of DC-
𝐿𝑎 Armature inductance 0.5 H
servo motor is shown in Fig.1.
J Motor Moment of 0.0093
Inertia kg/𝑚2
B Motor Viscosity 0.008 N.m. s
𝜃(𝑠) 0.01
𝑘𝑓 𝑖𝑓 . (1) 𝐸𝑎 (𝑠)
=
0.005𝑆 3 +0.06𝑆 2 +0.1𝑆
. (11)
𝑇 = 𝐾𝑚 𝑖𝑎 (𝑡). (4)
Fig.2: Equivalent block diagram. [1]
Back EMF of the motor is given by:
𝑒𝑏 𝑘𝑏 (5)
So, differential equation for armature circuit servo motor
controlled by armature voltage:
𝑑𝑖𝑎
𝑙𝑎 + 𝑅𝑎 𝑖𝑎 + 𝑒𝑏 = 𝑒𝑎 (6)
𝑑𝑡
𝐾𝑝 𝐾𝑑 𝐾𝑖
VI. IMPLEMENTATION
A. Control System
Fig.7: MATLAB Simulink model of DC-servo motor with PID-controller.
The motor is simulated and calculated transfer
function with PID controller. The real control system consists
of actuator (DC-servo motors) and the process (angle).The
potentiometer is the system feedback and gives
microcontroller signal to interface with MATLAB. The
schematic for the system is shown in Fig11.
Test motor stability: by adding disturbance for motor. This Fig.11: Schematic of control system for DC servo motor.
experiment shows that the system is stable at Fig9, 10.
The system is stable and ready to connect with real control
system as shown in Fig.12.
Fig.10: Response of DC-servo motor with PID-controller and loading The practical experiment [9], the actuator (DC-servo
disturbance motor) is connected to power supply and gave feedback to
It can be noted that the system under disturbance when step microcontroller. Our microcontroller is Arduino-Mega
time is 5 sec there is disturbance founded by (-0.2) detract which makes an interface between input and output. The
VII. CONCLUSIONS
In this paper, distinctive PID controlleris work for
controlling a servo DC motor framework and
implementation for humanoid arm robot.This dual feedback
Fig.13: Free body diagram of humanoid robot arm. control provides for a faster response time of the armature
throughout its total voltage range together with the feature
of a position for different voltages. The disturbance is
added to help in checking stability of the system. Analysis
of walking gait, optimal control of multiple motors or other
actuators, controlling the Degree of Freedom (DOF),
adaptability control and intelligence are also the challenging
tasks to make Humanoid robots behave like a human.
ACKNOWLEDGMENT
First and foremost, I would like to thank God Almighty for
giving me the strength, knowledge, ability and opportunity to
undertake this research study and to persevere and complete it
satisfactorily. Without his blessings, this achievement would
not have been possible. The success of this step required a lot
of guidance and assistance from Assoc. Prof. Abdelrady
Fig.14: Implementation position control of servo motor to humanoid robot Okasha Elnady, head of Mechatronics Department Faculty of
arm Engineering October 6th University and I would like to thank
him for giving me all support and guidance.