Control de Temperatura Usando PID: Función de Transferencia a partir de Datos Experimentales.

Control de Temperatura Usando PID: Función de Transferencia a partir de Datos Experimentales.

Obtaining Transfer Functions from Experimental Data

In this section, the speaker discusses the process of obtaining transfer functions from experimental data and explores methods for modeling processes based on differential equations and Laplace transforms.

Modeling Processes Based on Experimental Data

  • Applying a step change to the physical plant's input variable and observing the output response can help determine the system's behavior, whether it exhibits first-order, second-order responses, inverse response, or dead time.
  • Understanding how a system behaves allows for inferring its type and determining the constants of the transfer function model based on experimental data.

Setting Up Prototypes for Data Collection

  • The speaker introduces a prototype connected to Arduino for data collection purposes. The setup includes electronic components explained in detail in a YouTube video linked in the description.
  • While focusing on demonstrating how to derive transfer functions from experimental data rather than programming skills, essential code segments are provided for users with limited Arduino programming experience.

Setting Up Control Modes and Variables

This section delves into setting up control modes and variables within the prototype system for further analysis and experimentation.

Operating Modes and Variable Changes

  • Two operational modes exist: manual mode (mode 1) and automatic mode (mode 0). Manual mode involves manipulating an input variable like power sent to a bulb, while automatic mode facilitates closed-loop control analysis.
  • Parameters such as initial power settings, final power settings, proportional-integral-derivative (PID) parameters like setpoint (S point), are crucial but not immediately utilized in open-loop operations.

Configuring System Parameters

This part focuses on configuring system parameters through computer interfaces before conducting experiments with the prototype setup.

Configuring Power Settings

  • Adjusting power settings is essential before observing changes in the prototype's behavior. Accessing device connections via hardware settings on a computer helps identify connected devices like Arduino boards.
  • Verifying correct port connections ensures successful communication between software tools and hardware components like Arduino boards. Checking port configurations is vital for seamless operation.

Uploading Code and Monitoring System Behavior

Here, uploading code to Arduino boards is discussed alongside monitoring system behavior during experiments using temperature readings as an example.

Uploading Code and Observing Outputs

  • Compiling code ensures syntax correctness before uploading it to Arduino boards. Successful uploads are indicated by flashing LEDs on prototypes.

Temperature Control System Overview

In this section, the speaker discusses the temperature control system and demonstrates how to manipulate power levels using Arduino.

Plotter Tool for Visualization

  • The plotter tool in Arduino displays temperature as a red line, power as a blue line (currently at zero), and set point as a green line (also at zero).

Manipulating Power Levels

  • By adjusting the code, the speaker manipulates the power sent to the bulb. For instance, setting it to 10% or even lower for observation.
  • The demonstration shows how changing power levels affects temperature readings and bulb brightness.

Monitoring and Analysis

  • The serial monitor displays real-time data such as temperature readings and allows for manipulation of power levels directly from the code.
  • To analyze system response, a step change from 0 to 100 is introduced over 15 seconds to observe stability before conducting further analysis.

Cooling System Considerations

  • Before analysis, ensuring stable conditions by cooling the system with a fan. The fan accelerates temperature reduction for accurate analysis.
  • Once stability is achieved, turning off the fan is crucial for conducting accurate analysis without external influences on temperature control.

Step Change Analysis

  • A step change from 0 to 100 is initiated after a waiting period to observe system response accurately within a controlled timeframe.

Understanding First-Order Systems

In this section, the speaker discusses the concept of first-order systems and demonstrates an experiment to observe their behavior.

Exploring First-Order Systems

  • The focus is on the power of heat transfer, showcasing how a system changes from 0 to 100 instantly.
  • Observing the temperature rise until it reaches a stable state, resembling a first-order system's behavior.
  • Noting that the system has reached a stable state with no further temperature changes, characteristic of a first-order system.
  • Mathematically representing the system's response to a step change as a first-order function over time.
  • Planning to repeat the experiment due to data loss and confirming that the system exhibits characteristics of a first-order system.

Analyzing System Response and Constants

This section delves into determining constants for the first-order system based on experimental observations.

Determining System Constants

  • Deciding to repeat the experiment without fan assistance to analyze cooling behavior and determine constants accurately.
  • Monitoring temperature changes post-power off, observing stabilization before proceeding with numerical analysis.
  • Repeating experiments for accurate data collection and emphasizing understanding first-order systems' dynamics.

Calculating Time Constants and Responses

Here, calculations are made regarding time constants and responses in relation to first-order systems.

Calculating Time Constants

  • Discussing how time constants impact responses in first-order systems based on experimental results.
  • Highlighting that at infinite time, only initial values remain significant in these systems' responses.

Interpreting Experimental Data

Interpreting experimental data obtained from repeated trials for deeper insights into first-order systems.

Analyzing Experimental Results

New Section

In this section, the speaker discusses the transition of the system from zero power to full power and explains the significance of data collection post this transition.

Transition to Full Power

  • The system transitions from 0 to 100 power, rendering data collected before this point irrelevant.
  • Data collection is deemed useful only after the power shift.
  • A new cell is inserted at time zero for accurate data representation moving forward.

New Section

This part focuses on graphing temperature against time and delves into understanding gain and time constant values in a first-order system.

Graphing Temperature Against Time

  • Data up to 331 seconds is crucial for analysis.
  • A scatter plot graph depicting time in seconds against temperature is created.
  • The speaker highlights the beauty of the resulting graph resembling a first-order system.

New Section

Here, the discussion centers around determining gain and time constant values in a first-order system through calculations based on specific criteria.

Calculating Gain and Time Constant

  • Parameters for gain and time constant are introduced.
  • Calculation of gain involves considering changes from 0 to 100.
  • The formula for calculating final value in deviation variables is explained as subtracting an initial state value (23) from all data points.

New Section

This segment elaborates on updating graphs with deviation variables and determining final values based on these adjustments.

Updating Graphs with Deviation Variables

  • Graphs are updated using deviation variables starting from zero.
  • Final value determination results in a value of 66.

New Section

The focus here shifts towards calculating gain and time constant values based on specific percentages within a first-order system.

Calculating Gain and Time Constant Values

  • Gain calculation involves dividing the final value by delta (change from 0 to 100).
  • Determining time constant involves finding when a certain percentage (63%) of gain is reached.

New Section

This part explores further calculations related to determining specific times corresponding to percentage thresholds within the system's response curve.

Further Time Constant Calculations

  • Time corresponding to reaching 41.7% of final value (66) is calculated as approximately 60 seconds.

New Section

Here, discussions revolve around incorporating functions into calculations based on established parameters within the system model.

Incorporating Functions Based on Parameters

  • An exponential function representing step change dynamics in Arduino systems is introduced.

New Section

This section delves into comparing datasets and adding additional information for comprehensive analysis within the model framework.

Dataset Comparison and Addition

  • Adding more data points for comparison between experimental and calculated values.

New Section

The speaker evaluates model accuracy through parameter adjustments, emphasizing achieving optimal alignment between experimental data and model predictions.

Model Evaluation Through Parameter Adjustments

  • Utilizing techniques like minimizing squared errors for precise parameter adjustments.

New Section

This segment concludes by summarizing key findings regarding parameter values obtained through modeling processes.

Key Findings Summary

  • Identified constants: Time constant = 60, Gain = 0.66
Video description

Este video es la segunda parte del video "Control de Temperatura Usando PID: Construcción del Prototipo." disponible en https://youtu.be/1rXs4XCuros. Se muestra como obtener la función de transferencia de proceso real a partir de datos experimentales resultado de un cambio escalón en la variable de entrada manipulable. Durante el video se usa un código de Arduino el cuál les comparto en el siguiente link. https://drive.google.com/file/d/1bYcPPaLCJWbJmo6RkC_cmWEOPElsQmLn/view?usp=sharing. Si necesitan ayuda, requieren alguna asesoría y/o clase, escriban a misael.gm@outlook.com.