Escolar Documentos
Profissional Documentos
Cultura Documentos
1. OBJETIVOS
OBJETIVO GENERAL
Controlar la temperatura de trabajo u operacin de un
transformador sobrecargado.
OBJETIVOS SECUNDARIOS
Implementar un control PID usando la placa Arduino,
Conocer el funcionamiento de un control PID.
2. CONCEPTO DE PID
4. TRANSISTOR 2N2222
CARGAS
MOTOR DE 9 DC
RPM 480 RPM
Corriente en vacio 0.025
Corriente maxima Rendimiento 0.10 A
Corriente de Bloqueo 0.42 A
Par de bloqueo 70 g*CM
MOTOR DE 9 AC
RPM 80 RPM
Corriente en vacio 0.055
Corriente maxima Rendimiento 0.15 A
Corriente de Bloqueo 0.45 A
Par de bloqueo 70 g*CM
DOS VENTILADOR
Dimensiones:80 x 80 x 25 mm
Voltaje:12 V
Velocidad del ventilador:1000 ~ 3500 R.P.M.
Flujo de aire: 49 CFM
Nivel de ruido:19 ~ 29 dB(A)
Tiempo de vida:30.000 h
TRANSFORMADOR
Dimensiones 29 x 23 x 11 mm
Tensin primaria: 220 v
Tensin secundaria: 9v
Potencia nominal: 50
va
Relacin de
transformacin: 24.4
Intensidad nominal del secundario: 1.25A
5. CIRCUITO PID
PARTE DE CONTROL
Ventilador de 12 VDC
Sistema
Transformador y carga.
Para trabajar con el arduino sabemos que el arduino solo tiene de 0-5 Vdc, por tal
motivo tenemos que manejar el voltaje de ingreso al ventilador con un PWM.
Ventilador
PRUEBA EN ARDUINO PARA VERFICAR EL FUNCIONAMIENRO DEL PWM
TIEMPO DE MUESTREO
Tiempo en el cual se realiza una instruccin.
TIEMPO DE
MUESTREO
Se muestran el
archivo importado
2. Click en import
4. Escogemos PROCESS MODELS
6. Escogemos nmero de polos.
5. Click en Estimate
7. En la ventana de Comando de
Matlab escribimos tf(P2Z)
GRAFICAMOS:
Salida en Matlab:
Ploteamos la entrada.
{
i=0;
t = Total/20;
miliVolts=(analogRead(sensor)*5000.00)/1023.00;
t=-0.0004*miliVolts*miliVolts+0.3647*miliVolts-42.149;
ahora=millis(); // tiempo actual
int CambioTiempo= ahora-pasado; // diferencia de tiempo actual- pasado
if(CambioTiempo >= TiempoMuestreo) // si se supera el tiempo de muestreo
{
error = Ref - t; // error (Lazo cerrado)-- Feedback
errorPass=error*TiempoMuestreo+errorPass; // clculo de aproximacin del
area
double errorD =(error-errorAnt)/TiempoMuestreo; // clculo derivativo
float P=Kp*error; // control proporcional
float I=Ki*errorPass; // control Integral
float D=Kd*errorD;
if (t>27)
{
digitalWrite(6, HIGH);
}
else if (t<15)
{
digitalWrite(6, LOW);
}
//Serial.println(Ref);
Serial.print(Ref);
Serial.print(' ');
Serial.print(t);
Serial.print(' ');
Serial.println(U);
analogWrite(motor,salida);
}
8. CONCLUSIONES
ANEXOS