You are on page 1of 2

Procedure

1. The USB port of the Arduino Mega is connected to the computer.

2. The Arduino software is turn on to launch the C++ programming.


3. The raw data is set at a setpoint of 128 counts (90°).

= 128;

= 2;
=1;

4. The P-I-D controller is used which is consist of three controller such proportional
controller (P controller) kp, proportional and integral controller (PI controller) kd, and the
proportional, integral and derivative controller, (PID controller) ki to tune the control
system.
5. The serial plotter is opened to observed the graph of the control system.
6. Step 4 and 5 is repeated using Ziegler Nichols method until the control system is satisfied.

You might also like