Calibration Motion Control System-Part2
Calibration Motion Control System-Part2
Student Handout
1.0 Introduction
▪ In the forward loop, the actuator must be integrated with the controller.
▪ In the feedback loop, the sensor must be integrated with the controller.
▪ In the closed loop, actuator and sensor, must be fully integrated with the
controller.
Establish the correct working principle and calibration of the hardware components of
the system is essential before embarking further on software development of the
computer control algorithm.
Automatic Controller
Reference
input, R(s) E(s) (Controller) U(s) (Actuator Output, C(s)
+ Arduino )
-
DC Motor
B(s)
Measured (Sensor)
Output Encoder
In this laboratory session, students will become familiar with the integration of
mechatronic control system. At the end of the session, student should know the
following;
▪ How to interface the encoder with the controller
3.0 Prerequisites
▪ How many inputs and outputs of the Arduino microcontroller. What are their
respective addresses?
▪ With aid of diagram explain the working principle encoder. What type of
encoder is used in this experiment?
▪ With aid of diagram explain the working principle of DC motor. Plot the graph,
voltage vs no load speed of the DC Motor.
To setup this experiment, the following hardware and software are required;
● DC motor [3]
● Encoder [4]
Identify all the main components in the test rig of the system
To wire up the system, please follow the default wiring procedure as shown in Figure 2.2.
Verify the connection and when you are confident with your connection, you can power up
the control system.
Desired + PWM DC
Output,
Actual
Controller Motor
Angle angle
-
Measured Sensor
angle Actual
Encoder angle
Figure 2.2: Wiring, System interfacing and integration
In order to ensure the control system algorithm is functioning properly, you need first to do
the following;
▪ Using the Arduino menu command, show the serial data and plot data.
Manually, rotate the motor shaft
▪ clockwise and counterclockwise, and read the data from the command window.
▪ Determine the position and the speed of the motor shaft. Plot graph angular
position vs time and speed vs time
▪ Using the computer algorithm, change the rotational speed of the motor
clockwise and counter clockwise direction. How to change the speed of
rotation?
▪ Appendices A.3.
▪ Using the computer algorithm, rotate the motor shaft clockwise and
counterclockwise, and read the data from the command window.
▪ Calibrate the relationship between the speed of the DC motor and the PWM
voltage outputs.
▪ Determine the frequency of the rotating shaft of DC motor oscillation. Increase
the frequency of oscillation
6.4 Method of Approach: Calibration of input voltage and no-load speed of the DC
Motor.
▪ Compare the results of the theory graph with experimentally graph. Give
justification for any discrepancy. Discuss the significant of the gradient of the
graph.
▪ In the next laboratory, you will design, develop and implement a computer
algorithm for a motion control system. What are the effects of sampling time to the
control system
i. Introduction
ii. Objectives
iii. Methodology
iv. Results, Analysis and Discussion
v. Conclusions
The report shall also include but not limited to the following items; flow chart of the computer
algorithm, and source code of computer algorithm.
Report Submission BV
Submission date:
Total marks:
LATE Submission: 5 marks per day will be deducted for late submission
Appendices
References
i. Encoder manual
v. Ricrh Dorf
vi. Nise