Professional Documents
Culture Documents
MICROCONTROLLER
Nishant Mishra
02913204914
EEE
Sections
Control Systems
Types of controllers
Overview of the project
Voltage follower
The Arduino Platform
Low Pass Filter
Control Systems
A control system is a device, or set of devices, that
manages, commands, directs or regulates the
behavior of other devices or systems.
Open loop
Closed loop
Sections
Control Systems
Types of controllers
Types of controllers
The Deadband
Proportional Control
P accounts for present values of the error. For example, if
the error is large and positive, the control output will also
be large and positive.
A proportional controller (Kp) will have the effect of
reducing the rise time and will reduce, but never
eliminate, the steady-state error.
Increasing the proportional gain also increases the
overshoot.
Kp
0.9
0.8
Kp=300;
0.6
To: Y(1)
s 10 s ( 20 Kp )
0.7
Amplitude
T( s )
From: U(1)
0.5
0.4
K=100
0.3
0.2
num=[Kp];
0.1
0
0.2
0.4
0.6
0.8
1.2
1.4
1.6
1.8
1.2
1.4
1.6
1.8
Time (sec.)
den=[1 10
20+Kp];
From: U(1)
1.2
To: Y(1)
Amplitude
t=0:0.01:2;
Step Response
1.4
0.8
0.6
K=300
K=300
0.4
step(num,den,t)
0.2
0.2
0.4
0.6
0.8
Time (sec.)
Effect of damping
The value of the damping can
be adjusted to achieve a
critically damped response.
Integral Control
I accounts for past values of the error. For example, if the
current output is not sufficiently strong, the integral of the
error will accumulate over time, and the controller will
respond by applying a stronger action.
Proportional- Derivative control does not cure the problem
with the steady-state error. Fortunately it is possible to
eliminate this while using relatively low gain by adding an
integral term to the control function .
OVERSHOOT
SETTLING TIME
S-S ERROR
Kp
Decrease
Increase
Small Change
Decrease
Ki
Decrease
Increase
Increase
Eliminate
Kd
Small
Change
Decrease
Small
Change
Decrease
Control
Type
Kp
Ti
Td
0.5Ku
PI
0.45Ku Tu/1.2
PD
0.8Ku
classic
0.6Ku
PID
Tu/8
Tu/2
Tu/3
Sections
Control Systems
Types of controllers
Signal
Generator
Positive
Voltage
follower
Negative
Voltage
Follower
Arduino
LPF
Output
Sections
Control Systems
Types of controllers
Overview of the project
Voltage follower
The Arduino Platform
Low Pass Filter
Voltage follower
A voltage follower (also called a unity-gain amplifier, a
buffer amplifier, and an isolation amplifier) is a op-amp
circuit which has a voltage gain of 1.
This means that the op amp does not provide any
amplification to the signal. The output voltage is the same
as the input voltage. Thus, for example, if 5V goes into
the op amp as input, 5V comes out as output. A voltage
follower acts as a buffer, providing no amplification or
attenuation to the signal.
Negative Buffer
The gain of an inverting
op amp is given by
Vo/Vin = -R2/R1
The gain when R2 = R1
is -1
This configuration is
called a negative buffer
Sections
Control Systems
Types of controllers
Overview of the project
Voltage follower
Algorithm
previous_error = 0
integral = 0
start:
error = setpoint - measured_value
integral = integral + error*dt
derivative = (error - previous_error)/dt
output = Kp*error + Ki*integral + Kd*derivative
previous_error = error
wait(dt)
goto start
Sections
Control Systems
Types of controllers
Overview of the project
Weins bridge oscillator
Voltage follower
The Arduino Platform
Thank You