DC Motor Control for Wheeled Robots
DC Motor Control for Wheeled Robots
International Scholarly and Scientific Research & Innovation 1(8) 2007 1149 [Link]/1307-6892/3689
World Academy of Science, Engineering and Technology
International Journal of Electrical and Computer Engineering
Vol:1, No:8, 2007
D. MATLAB Representation
To represent the model with m-file, we can perform the Fig.
2 data as follows;
A = tf (1, [L R]);
I = feedback (A, K);
T = I*K;
Gs=T*tf(1,[J b]);
Fig. 1 Schematic Diagram of a DC Motor [6] Ga=tf(1,[1 0])*Gs;
B. System Equation ‘tf’ means transfer function of data in its block and
The motor torque T is related to the armature current, i , by ‘feedback’ function is also used . And then the DC motor’s
International Science Index, Electrical and Computer Engineering Vol:1, No:8, 2007 [Link]/Publication/3689
International Scholarly and Scientific Research & Innovation 1(8) 2007 1150 [Link]/1307-6892/3689
World Academy of Science, Engineering and Technology
International Journal of Electrical and Computer Engineering
Vol:1, No:8, 2007
T = 15.27 mNm following value are assigned to be used for our desire DC
Therefore, the total equivalent damping b can be chosen the Motor Model.
value of; Vt=12; J=0.01; b =0.00003; K =0.023; R =1; and L =0.5;
(0.023*0.663) – b (524) = 0
b = 0.00003
By calculating and assuming the require data as above, the
International Science Index, Electrical and Computer Engineering Vol:1, No:8, 2007 [Link]/Publication/3689
E. Analysis
As we may want plot the responses for the velocity and
angle in one figure, it convenient to group the two transfer
functions into a single system with one input, the voltage, and
two outputs, the velocity and the angle:
G = [Gv; Ga];
G = ss(Ga);
set(G,’c’,[010;001],’d’,[0;0],’OutputName’,{’Velocity’;’An
gle’}); (a)
This extension of the state-space model with an extra output
has to be done in one set command in order to keep the
dimensions consistent. Now, we can plot the step, impulse and
frequency responses of the motor model:
figure(1); step(G,0:0.5:10);
figure(2); impulse(G,0:0.5:10);
figure(3); bode(G,0:0.5:10);
(b)
International Scholarly and Scientific Research & Innovation 1(8) 2007 1151 [Link]/1307-6892/3689
World Academy of Science, Engineering and Technology
International Journal of Electrical and Computer Engineering
Vol:1, No:8, 2007
A. General Operation
Fig. 5 shows the Schematic Circuit Diagram of the PIC-
International Science Index, Electrical and Computer Engineering Vol:1, No:8, 2007 [Link]/Publication/3689
(c) based DC motor drive system that support one part of the
Fig. 3 Step, Impulse Responses and Bode plot author’s research.
We can get the plots given in Fig. 3. Also we can analyze TABLE I
WMR DRIVING RESULTS DEPEND ON TWO MOTORS
on each part of DC Motor rating as follows;
Left motor Right motor WMR Drive
figure(4); step(I,0:0.5:10); Clockwise Clockwise Go forward
figure(5); impulse(I,0:0.5:10);
figure(6); bode(I,0:0.5:10); Clockwise Counter-CW Stop
figure(7); step(T,0:0.5:10); Counter-CW Clockwise Stop
figure(8); impulse(T,0:0.5:10);
figure(9); bode(T,0:0.5:10); Counter-CW Counter-CW Go backward
International Scholarly and Scientific Research & Innovation 1(8) 2007 1152 [Link]/1307-6892/3689
World Academy of Science, Engineering and Technology
International Journal of Electrical and Computer Engineering
Vol:1, No:8, 2007
International Science Index, Electrical and Computer Engineering Vol:1, No:8, 2007 [Link]/Publication/3689
International Scholarly and Scientific Research & Innovation 1(8) 2007 1153 [Link]/1307-6892/3689
World Academy of Science, Engineering and Technology
International Journal of Electrical and Computer Engineering
Vol:1, No:8, 2007
its output to the two transistors which will active one for each
time. There are two H-bridge circuits to drive to motors and
one part depends on two bits of PIC16F84A. Both circuits can
be derived the Motors to be rotate only in ‘10’ or ‘01’ of these
two bits. ‘00’ and ‘11’ means stopping Motor. Four NPN
transistors are used as switch to change or choose the direction
of current flows to the Motor.
V. EXPERIMENTAL RESULTS
The experimental results of both the Modeling and
Simulink procedures and the control system testing circuit are
shown in Fig. 6 to Fig. 12.
For the assembly software programming of the control
circuit, the process is very simply and the procedure can be
mentioned as the following steps.
Initialization
Ports Declaration: all Port A’s pins are declared as inputs,
International Science Index, Electrical and Computer Engineering Vol:1, No:8, 2007 [Link]/Publication/3689
International Scholarly and Scientific Research & Innovation 1(8) 2007 1154 [Link]/1307-6892/3689
World Academy of Science, Engineering and Technology
International Journal of Electrical and Computer Engineering
Vol:1, No:8, 2007
(a)
(b)
International Scholarly and Scientific Research & Innovation 1(8) 2007 1155 [Link]/1307-6892/3689
World Academy of Science, Engineering and Technology
International Journal of Electrical and Computer Engineering
Vol:1, No:8, 2007
REFERENCES
[1] Steven [Link], ‘Introduction to Simulink with Engineering
Applications’, Orchard Publications, [Link]
[2] Tan Kiong Howe, May 2003, Thesis, B.E (Hons), ‘Evaluation of the
transient response of a DC motor using MATLAB/SIMULINK’,
University of Queensland.
[3] MathWorks, 2001, Introduction to MATLAB, the MathWorks, Inc.
[4] MathWorks, 2001, SIMULINK, the MathWorks, Inc.
[5] MathWorks, 2001, What is SIMULINK, the MathWorks, Inc.
[6] EE505 Electrical Engineering Lab, Spring 2007, project paper, ‘Lab2.
DC Motor Control using a Microcontroller’.
[7] Carnegie,[Link], 2004, ‘A human-like Semi Autonomous Mobile
Security robot, University of Waikato, Hamilton, New Zealand.
[8] Microchip Technology, Inc.2001, PIC16F84A Data Sheet,
[Link]
Wai Phyo Aung was born in 1981, August 15. Got [Link] Certificate in 2000,
(c) November. Graduated in 3rd November, 2003 with B.E (Electronic) and
finished Master degree on March, 2006 with M.E (Electronic). Now, he is a
Fig. 12 Circuit Construction and Testing Photos
International Science Index, Electrical and Computer Engineering Vol:1, No:8, 2007 [Link]/Publication/3689
ACKNOWLEDGMENT
Firstly the author would like to thank his parents: U Hla
WIN and Daw Saw Shwe for their best wishes to join the PhD
research. Special thanks are due to his Supervisor/ Head of
Electronic Engineering Department, MTU, Myanmar: Dr. Yin
Mon Myint. The author would like to express his thank to his
partners: Ms. Aye Aye New and Ms. Aye Aye Zan. The
author greatly expresses his thanks to all persons whom will
concern to support in preparing this paper.
International Scholarly and Scientific Research & Innovation 1(8) 2007 1156 [Link]/1307-6892/3689
The H-bridge circuit is crucial in a PIC-based DC motor drive system as it controls the direction of the current flow and thus the rotation direction of the DC motor. This is essential for the maneuverability of wheeled mobile robots, enabling them to move forwards, backwards, and rotate left or right as needed. The H-bridge setup allows for differential drive by switching inputs that manage two motors differently, providing the robot with dynamic and precise movement control .
Simulating step, impulse, and frequency responses in MATLAB helps to understand DC motor dynamics by visualizing how the motor reacts to changes in input. Step response shows the time-domain reaction, indicating stability and speed of response. Impulse response reveals the system's inherent characteristics and transient states. Frequency response (Bode plot) illustrates how the system behaves over a range of frequencies, identifying bandwidth and resonant frequencies that inform stability and performance tuning. These analyses are vital for optimizing the control strategies used in complex applications like wheeled mobile robots .
The transfer function in modeling a DC motor is significant because it mathematically describes the relationship between the input voltage and output mechanical variables such as angular displacement or velocity. It facilitates the analysis and design of control strategies by allowing the prediction of the system's behavior in response to various inputs. Understanding the transfer function is crucial for designing controllers that achieve desired performance standards in applications like robotics, where precision in motor control is paramount .
Using constant values like K (torque constant), J (inertia), b (damping), V (voltage), L (inductance), and R (resistance) is essential in DC motor models to ensure accurate predictions of the motor's performance under various conditions. These constants define the motor's static and dynamic characteristics. Precise values are necessary to reflect real-world conditions, which influence controller design, performance tuning, and ensuring the reliability and efficiency of the motor when implemented in practical applications such as robotics .
The rotor inertia (J) and torque constant (K) are critical in defining a DC motor's dynamic and steady-state performance. The torque constant directly relates to the motor's ability to convert electrical energy into mechanical torque efficiently. Rotor inertia affects how quickly the motor can respond to changes in control inputs; higher inertia results in slower responses. These parameters must be finely tuned for applications requiring precise speed and position control, such as in motion control systems for mobile robots .
Sensors contribute significantly to the functionality of DC motor-driven wheeled mobile robots by providing critical environmental data that informs movement decisions. For example, front and side sensors detect obstacles, enabling the robot to navigate around obstructions and avoid collisions. The sensor inputs are processed by the control system, which adjusts motor controls via the H-bridge circuit to change speed and direction, effectively guiding the robot in a dynamic environment .
Integrating control and robot technology poses challenges in real-time environments due to the need for precise and synchronized control of multiple dynamic systems. Real-time systems require rapid processing and immediate response to sensor inputs to avoid obstacles and adjust movements accurately, as seen in wheeled mobile robots. Achieving this using complex algorithms in variable operating conditions, while maintaining computational efficiency, demands advanced modeling and simulation tools like MATLAB Simulink for effective solution development .
MATLAB Simulink enhances the modeling of DC motors by allowing complex control system simulations through step response, impulse response, and Bode plot analysis. These tools enable designers to predict the motor's behavior under various conditions and refine the motor's control system for optimal performance in robotic applications, such as wheeled mobile robots with obstacle avoidance features. This integration facilitates real-time problem-solving in both control technology and robotics .
Motor specifications like speed and power critically impact the selection of a DC motor for a mobile robot. High speed enables rapid movement, beneficial in applications requiring fast response, but may sacrifice torque unless paired with adequate power. Adequate power (watts) ensures the motor can handle the load and sustain operation without overheating. Selecting a motor with balanced speed and power relative to the robot's tasks is essential for efficient, reliable performance in varied operational conditions, such as those experienced by obstacle-avoiding robots .
Key components of a PIC-based motor control system for a differential wheeled mobile robot include a PIC microcontroller, sensors, H-bridge circuits, and DC motors. The sensors provide environmental data as inputs to the PIC. The microcontroller processes this data to determine motion commands, which are sent as outputs to the H-bridge circuits. The H-bridge circuits control the direction and speed of the DC motors, allowing the robotic system to move and react according to sensed conditions, such as avoiding obstacles while maintaining intended travel paths .