Documente Academic
Documente Profesional
Documente Cultură
The basic idea behind a PID controller is to read a sensor, then compute the desired actuator
output by calculating proportional, integral, and derivative responses and summing those three
components to compute the output.
WORKING METHODOLOGY:
I interfaced incremental rotary encoder with arduino nano microcontroller to so as to verify my
program for encoder interface. I programmed the microcontroller to find the error, difference
between the set point and the process variable and used it to feed actuator input . Further, I
used the encoder and motor coupled assembly, connected the motor driver L298 with the
microcontroller and the motor. Then, by trial and error method I gave a constant of proportion
(P) to multiply the error for pwm for motor. We are able to achieve minimum error of 4 i.e 2.4
degree.
Further, on exploring how to use integration as summation of all errors, I used I, to reduce the
steady state error and was hence able to reduce the error to 1, i.e . 1.6 degree using PI. I learnt
the significance of integral term and the operation of a closed loop control system.
INSIGHTS:
We should always check connections for short with multimeter before connecting to the
battery. Tuning should be done well to achieve the minimum possible error to increase
accuracy.
RESULT:
I was able to rotate the motor to a particular angle. (Video available).
REFERENCES:
1. ni.com : PID theory.
2. Arduino forum
3. Microcontrollersllab.com : for working to rotary encoder.
4. Seniors.
5. Datasheet for external interrupts for encoder pulses.