Temperature and Speed Control Lab (TSC-Lab)
The Temperature and Speed Control Lab (TSC-Lab) is an application of feedback control with an ESP32, an LED, two heaters, two temperature sensors, one direct current motor and an optical encoder as a revolution per minute (rpm) meter. The heater power output is adjusted to maintain the desired temperature setpoint. Thermal energy from the heater is transferred by conduction, convection, and radiation to the temperature sensor. Heat is also transferred away from the device to the surroundings. On the other hand, the motor speed is adjusted using a motor driver and with PWM signals, allowing the reference speed to be reached using the rpm meter.
The practice guides that were used in the data acquisition process are detailed in the following blog:
The codes used are in the following repository:
- Asanza V., Sanchez G., Cajo R., Peláez E. (2021) Behavioral Signal Processing with Machine Learning Based on FPGA. In: Botto-Tobar M., Zamora W., Larrea Plúa J., Bazurto Roldan J., Santamaría Philco A. (eds) Systems and Information Sciences. ICCIS 2020. Advances in Intelligent Systems and Computing, vol 1273. Springer, Cham. https://doi.org/10.1007/978-3-030-59194-6_17
- Asanza, V., Martín, C. A., Eslambolchilar, P., van Woerden, H., Cajo, R., & Salazar, C. (2017, October). Finding a dynamical model of a social norm physical activity intervention. In Ecuador Technical Chapters Meeting (ETCM), 2017 IEEE (pp. 1-6). IEEE.
The files must be downloaded and placed in the same folder so that they can be compiled in MATLAB, remember that these data were obtained in open loop for their respective identification of this system.
Temperature plant data:
- In any data "dato.csv" the first column represents the temperature acquired by sensor 1, the second column the temperature acquired by sensor 2, third and fourth column represent the state of activation (1) or deactivation (0) of transistor 1 and 2, respectively.
DC motor speed plant data: