You are on page 1of 6

RC Circuit Response With Arduino/Simulink

The objectives of this experiments


1) Study the Open loop response of RC circuit by Arduino/Simulink
2) Determine the transfer function of the system
3) Study the close loop response of RC circuit.
4) Design a PID Controller.
5) Implementation of PID control using Arduino

1. The Open Loop response of RC circuit


In this part we need to build the part one is the hardware using resistance and capacitor, the part
two is the software part using the blocks in simulink. Before this step and depend on the Based
Design Model we need to determine the following
1) The input and output of system
Input : 𝑉𝑖𝑛 , Output : 𝑉𝑜𝑢𝑡

2) The parameter of the system


Resistance, Capacitor

1.1 Hardware Interface with Arduino

1|Page
Control Laboratory
1.2 Simulink Blocks

The transfer function of system can be obtain by the output voltage

1
𝐺(𝑠) = 0.5𝑠+1

and this represent the open loop transfer function.

2|Page
Control Laboratory
1.3 Build the Simulink Blocks using transfer function

We use the estimated transfer function to simulate the open loop, closed loop and design and
PID control for system

2. Closed Loop Response of RC Circuit

This is the simulation block representation of the closed loop, and to connect to the RC circuit by
the Arduino, we must build the following blocks

3|Page
Control Laboratory
4|Page
Control Laboratory
3. Design and Implementation of PID Controller

To design a PID controller or any one of these controller (PI, PD and PID) we use the PID tune
toolbox in Simulink.

The Controller must be in Discrete form not continuous.

5|Page
Control Laboratory
After select the value of the parameter of controller , now we implement the controller using
Arduino to RC circuit.

6|Page
Control Laboratory

You might also like