06.05.2015 Views

REVISTA DEL CENTRO DE GRADUADOS E INVESTIGACIÓN

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

JIMÉNEZ DOMÍNGUEZ, Q., NAVARRETE SOLÍS, C.A.; PARE<strong>DE</strong>S PLANCARTE, Y., GAMBOA SALAZAR R.. Y ESCOBEDO ESQUIVEL, N.<br />

x=0;<br />

}<br />

if (x==1)////restar<br />

{<br />

if (input(PIN_C0)==1)<br />

{<br />

if(kp==0){<br />

}<br />

else{<br />

delay_ms(100);<br />

kp--;<br />

delay_ms(100);<br />

while(input(Pin_C0)==1){}<br />

}<br />

}<br />

if (input(PIN_C1)==1)<br />

{<br />

if(ki==0){<br />

}<br />

else{<br />

delay_ms(100);<br />

ki--;<br />

delay_ms(100);<br />

while(input(Pin_C1)==1){}<br />

}<br />

}<br />

if (input(PIN_C2)==1)<br />

{<br />

if(kd==0){<br />

}<br />

else{<br />

delay_ms(100);<br />

kd--;<br />

delay_ms(100);<br />

while(input(Pin_C2)==1){}<br />

}<br />

} if (input(PIN_C3)==1)<br />

{<br />

if(setpoint==0){<br />

}<br />

else{<br />

delay_ms(100);<br />

setpoint--;<br />

delay_ms(100);<br />

while(input(Pin_C3)==1){}<br />

}}}<br />

}}<br />

Para el convertidor digital-analógico se utilizó el siguiente<br />

esquema con el DAC0800:<br />

Figura 4. Convertidor digital-analógico DAC0800<br />

RESULTADOS<br />

El proyecto consta de dos partes fundamentales: un<br />

controlador digital y una fuente de alimentación para poder<br />

suministrar la energía de nuestro controlador; los dos<br />

sistemas están separados, todo en su respectiva caja (ver<br />

figura 5):<br />

Figura 5. Controlador PID digital con su fuente de alimentación<br />

Como se puede observar en las imágenes, cada botón<br />

corresponde al aumento o disminución de los parámetros:<br />

"P", "I" o "D" e incluso el set point, según la característica<br />

deseada a configurar. La disminución o aumento de las<br />

8 <strong>REVISTA</strong> <strong><strong>DE</strong>L</strong> <strong>CENTRO</strong> <strong>DE</strong> <strong>GRADUADOS</strong> E <strong>INVESTIGACIÓN</strong> VOL. 20 NÚM. 54

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!