PID CON AUTOTUNING

Dependencies:   mbed

Committer:
tony63
Date:
Fri Mar 17 05:41:22 2017 +0000
Revision:
0:ee0828fc5778
PID CON AUTOTUNING

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tony63 0:ee0828fc5778 1 /*
tony63 0:ee0828fc5778 2
tony63 0:ee0828fc5778 3 CONTROL PID AUTOTUNING
tony63 0:ee0828fc5778 4
tony63 0:ee0828fc5778 5 SEGUN ESTA PAGINA WEB SE EXPLICA EL PRINCIPIO DEL METODO DE LA OSCILACION
tony63 0:ee0828fc5778 6 PARA SACAR GANANCIAS KP, KI, KD
tony63 0:ee0828fc5778 7
tony63 0:ee0828fc5778 8
tony63 0:ee0828fc5778 9 https://sites.google.com/site/picuino/ziegler-nichols
tony63 0:ee0828fc5778 10
tony63 0:ee0828fc5778 11 TOMAR EL PID CON TECLAS DE MI REPOSITORIO E INCORPORARLE
tony63 0:ee0828fc5778 12
tony63 0:ee0828fc5778 13 EL METODO DE TECLAS_RAPIDAS
tony63 0:ee0828fc5778 14 https://developer.mbed.org/users/tony63/code/teclas_rapidas/
tony63 0:ee0828fc5778 15
tony63 0:ee0828fc5778 16 Y UNA RUTINA INICIAL DE AUTOTUNING.
tony63 0:ee0828fc5778 17
tony63 0:ee0828fc5778 18 ANTES DE CORRER EL AUTOTUNING UN MENU PREVIO PEREGUNTA A QUE CONSIGNA SE DESEA EL AUTOAJUSTE
tony63 0:ee0828fc5778 19 AL TERMINAR EL AUTOAJISTE MIESTRA POR 6 SEGUNDOS LAS CONSTANTES CALCULADAS Y LUEGO INICIA EL CONTROL
tony63 0:ee0828fc5778 20
tony63 0:ee0828fc5778 21 EN AUTOAJUSTE DEBE INCREMENTAR MUY SUAVE LA KP HASTA OSCILAR LEVEMENTE AHI SE CALCULA Kc Y Tc
tony63 0:ee0828fc5778 22
tony63 0:ee0828fc5778 23 #include "mbed.h"
tony63 0:ee0828fc5778 24
tony63 0:ee0828fc5778 25 DigitalOut myled(LED1);
tony63 0:ee0828fc5778 26
tony63 0:ee0828fc5778 27 int main() {
tony63 0:ee0828fc5778 28 while(1) {
tony63 0:ee0828fc5778 29 myled = 1;
tony63 0:ee0828fc5778 30 wait(0.2);
tony63 0:ee0828fc5778 31 myled = 0;
tony63 0:ee0828fc5778 32 wait(0.2);
tony63 0:ee0828fc5778 33 }
tony63 0:ee0828fc5778 34 }