Next Article in Journal
A Cost-Effective Reference-Less Semiconductor Ion Sensor with Anodic Aluminum Oxide Film
Previous Article in Journal
Semantic-Aware Co-Parallel Network for Cross-Scene Hyperspectral Image Classification
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Reproducing Cold-Chain Conditions in Real Time Using a Controlled Peltier-Based Climate System

by
Javier M. Garrido-López
,
Alfonso P. Ramallo-González
,
Manuel Jiménez-Buendía
*,
Ana Toledo-Moreo
and
Roque Torres-Sánchez
Department of Automation, Electrical Engineering and Electronic Technology, ETSII, Universidad Politécnica de Cartagena (UPCT), European University of Technology, 30202 Cartagena, Spain
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(21), 6689; https://doi.org/10.3390/s25216689
Submission received: 5 October 2025 / Revised: 29 October 2025 / Accepted: 30 October 2025 / Published: 1 November 2025
(This article belongs to the Section Physical Sensors)

Abstract

Temperature excursions during refrigerated transport strongly affect the quality and shelf life of perishable food, yet reproducing realistic, time-varying cold-chain temperature histories in the laboratory remains challenging. In this study, we present a compact, portable climate chamber driven by Peltier modules and an identification-guided control architecture designed to reproduce real refrigerated-truck temperature histories with high fidelity. Control is implemented as a cascaded regulator: an outer two-degree-of-freedom PID for air-temperature tracking and faster inner PID loops for module-face regulation, enhanced with derivative filtering, anti-windup back-calculation, a Smith predictor, and hysteresis-based bumpless switching to manage dead time and polarity reversals. The system integrates distributed temperature and humidity sensors to provide real-time feedback for precise thermal control, enabling accurate reproduction of cold-chain conditions. Validation comprised two independent 36-day reproductions of field traces and a focused 24-h comparison against traditional control baselines. Over the long trials, the chamber achieved very low long-run errors ( MAE 0.19   ° C , MedAE 0.10   ° C , RMSE 0.33   ° C , R 2 = 0.9985 ). The 24-h test demonstrated that our optimized controller tracked the reference, improving both transient and steady-state behaviour. The system tolerated realistic humidity transients without loss of closed-loop performance. This portable platform functions as a reproducible physical twin for cold-chain experiments and a reliable data source for training predictive shelf-life and digital-twin models to reduce food waste.

1. Introduction

Perishable-food loss during storage and transport remains a pressing global problem [1,2,3]: temperature excursions and variable thermal histories incurred along the cold chain accelerate biochemical change and microbial growth, shortening shelf life and increasing waste [4,5,6]. Experimental and modeling efforts to predict and mitigate these losses depend on being able to reproduce, in a repeatable way, the complex, time-varying temperature trajectories that products experience in real logistics operations (e.g., loading/unloading, door openings, multi-modal transfers) [7,8,9].
Laboratory environmental chambers and conventional compressor-based refrigeration are excellent for maintaining steady setpoints, but they are limited when the objective is to emulate arbitrary, rapidly changing profiles [10,11,12]. In addition to their environmental impact, mechanical inertia, refrigerant dynamics, and compressor cycling restrict attainable bandwidth, and compressor systems are not well-suited to frequent polarity-reversible heating/cooling in compact, portable test rigs [10,12,13,14]. For research groups and industry partners who need realistic, repeatable emulation without large infrastructure, this limitation is important and motivates alternative actuator and control solutions.
Thermoelectric (Peltier) modules are a promising alternative for compact, reversible thermal actuation. They are solid-state, polarity-reversible, and capable of fine, fast electronic control, making them attractive for small-scale devices that must switch between heating and cooling or follow aggressive temperature trajectories [15,16]. At the same time, thermoelectrics have specific physical and control challenges: electro-thermal coupling (Peltier and Seebeck effects), Joule heating and conduction, significant thermal inertia of the module plus heatsinking assembly, and a coefficient of performance (COP) that depends strongly on the temperature difference across the module and on drive current [15,17]. These characteristics produce nonlinear, sometimes asymmetric dynamics between heating and cooling that complicate controller design and require care to avoid integrator windup, actuator chattering, and inefficient operation [15,18].
Prior control attempts for Peltier-based systems range from simple PI controllers to sliding-mode, fuzzy, adaptive, and model-predictive (MPC) schemes [19,20,21,22,23,24,25,26,27]. Sliding-mode and adaptive laws can be effective in constrained laboratory problems but often need extensive tuning and may be sensitive to unmodelled dynamics [28,29]. Fuzzy and MPC approaches can be computationally heavy or require accurate predictive models, which can be a practical barrier for embedded or low-cost deployments [27,28,30]. Meanwhile, naive PID (Proportional–Integral–Derivative) designs frequently suffer from windup and poor transient behaviour during polarity switching and large setpoint ramps [27,28,31].
PID control remains one of the most widely used strategies in industrial and embedded systems due to its simplicity, robustness, and ease of implementation [28]. In its basic form, it combines proportional (reducing present error), integral (eliminating steady-state offset), and derivative (providing predictive damping of future error) actions to shape closed-loop performance. However, classical PID controllers often struggle with systems that exhibit nonlinearities, dead time, actuator saturation, or asymmetric dynamics—such as thermoelectric modules used for reversible heating and cooling [31].
To address these challenges, advanced PID variants have been developed. Two-degree-of-freedom (2-DOF) architectures decouple setpoint tracking from disturbance rejection by introducing two tuning weights for the proportional and derivative terms. These architectures allow finer control over transient behaviour and overshoot [32,33,34]. A complementary practical improvement is derivative filtering, where the derivative term includes a low-pass filter to retain predictive damping without amplifying measurement noise from the sensors [34].
Integral windup due to actuator saturation is usually prevented by implementing anti-windup back-calculation, which dynamically reduces the integrator state when the actuator saturates [35]. Dead time further degrades PID performance if untreated. The Smith predictor is a classical, low-complexity compensation technique that uses an internal model of the plant to predict the non-delayed output [33,36].
Cascade control is often useful when the physical system has a clear separation of time scales [33], as is the case with thermoelectric modules, which respond significantly faster than the air mass inside a chamber. That is why this is the most appropriate option for our application at hand. All these enhancements are critical for maintaining stability and performance in systems with actuator saturation and transport delays. For the goal of producing repeatable physical-twin experiments—long, field-faithful thermal histories that can feed food shelf-life models—a controller must be robust, computationally lightweight, and specifically designed to handle the thermoelectric idiosyncrasies above.
In this work, we propose and validate a pragmatic hardware-software solution that addresses these needs. The system couples an array of off-the-shelf thermoelectric modules, heatsinking, and forced convection with distributed sensing and an embedded cascade control architecture. The control strategy integrates an outer 2-DOF PID for air-temperature tracking with faster inner PID loops for module-face regulation [32,33,34]. The design adds derivative filtering, anti-windup back-calculation, Smith predictor’s dead-time compensation, and hysteresis-based bumpless switching to manage heating/cooling polarity changes [33,35,36]. Rather than relying on heavy real-time optimization, this approach leverages identification-derived models to guide tuning, keeping implementation lightweight and robust.
Accurate reproduction of cold-chain conditions requires not only precise thermal actuation but also reliable sensing [19]. Sensors play a critical role in capturing the dynamic temperature and humidity profiles within the chamber, enabling real-time feedback for closed-loop control. Distributed temperature and humidity sensors (NTC thermistors for module-face measurements and digital sensors for inside air) ensure spatial coverage and measurement fidelity, which are essential for replicating realistic transport scenarios and for generating high-quality data to train predictive shelf-life models [7,8,19]. Without robust sensing, control accuracy and experimental reproducibility would be severely compromised.
Our study introduces a novel approach with the following key contributions: (i) development of a compact, portable thermoelectric climate chamber with a lumped thermal-electrical model that relates module-face inputs to chamber air temperature; (ii) formulation of a practical identification and control workflow—system identification, separate heating/cooling inner-loop tuning, and cascade 2-DOF PID design with dead-time compensation and anti-windup—that achieves reliable, repeatable tracking of aggressive real-world profiles while remaining suitable for embedded deployment; and (iii) extensive experimental validation: identification experiments, controller comparisons and long-duration reproductions of refrigerated-truck traces (two independent 36-day trials and a focused 24-h test) that demonstrate sub-degree tracking accuracy, robustness to humidity transients and clear improvements over classical control and tuning baselines.

2. Materials and Methods

2.1. Peltier Modules

The thermal regulation in the climate chamber built for this study relies on thermoelectric modules (or Peltier cells). These solid-state devices use the so-called Peltier effect to transport heat between their two faces when an electrical current passes through them. Reversing the current reverses the direction of heat flow; hence, a single module can provide either cooling or heating at the internal cavity simply by changing the current polarity [15].
A Peltier module is composed of many elemental thermocouples as basic units: paired P-type and N-type semiconductor legs electrically connected by metal interconnects and sandwiched between two ceramic plates that serve as thermal interfaces to the hot and cold sides. A diagram of one such thermocouple pair is provided in Figure 1. The elements are arranged electrically in series and thermally in parallel inside the module to obtain the required voltage/current and heat-pumping capacity.

2.1.1. Fundamental Heat and Electrical Relations

The dominant physical effects at the device level are the Peltier heat flow, Joule heating, and thermal conduction between faces. When a current flows through the cell, heat is generated or absorbed at the junctions because charge carriers exchange energy while crossing material interfaces—this is the Peltier effect [37]. The heat flow associated with it is proportional to the current, as shown in (1) [17,37,38]:
Q ˙ P e l t i e r = Π I = S I T
where Q ˙ P e l t i e r is the ideal Peltier heat, I is the current through the device, and Π = T S is the Peltier coefficient (with S the Seebeck coefficient and T the junction temperature).
The electrical power input to the module is P e = V e I , where the applied voltage V e must overcome the Seebeck voltage—produced by the temperature difference Δ T between faces—and must also drive current through the module resistance R , which produces Joule heating, as presented in (2) [15,39]:
P e = V e I = S Δ T I + R I 2
where Δ T = T h T c , with T h and T c referring to the hot and cold face temperatures, respectively. Accounting for all dominant heat terms yields the standard cold-side and hot-side heat balances used for module-level design. The cold-side heat absorbed by the module ( Q ˙ c ) in absolute value equals the Peltier cooling at the cold junction minus half the Joule heating and minus conductive leakage from hot to cold through the module, as depicted in (3) [15,17,40]:
Q ˙ c = S I T c 1 2 I 2 R K Δ T
where K is the thermal conductance. Energy conservation then gives the hot-side rejected heat ( Q ˙ h ), as shown in (4), as the sum of the electrical power and the absorbed heat [17,40]:
Q ˙ h = P e + Q ˙ c = S I T h + 1 2 I 2 R K Δ T
A commonly used performance metric is the coefficient of performance (COP), defined here for the cold and hot outputs as presented in (5) [15,17]:
C O P c = Q ˙ c P e                       C O P h = Q ˙ h P e = 1 + C O P c

2.1.2. Parameter Extraction and Effective Lumped Quantities

Module effective electrical and thermal parameters can be related to geometry and material properties as given in Equations (6)–(8) [41]:
R = 2 N u ρ e G
K = 2 N u k θ G
S = 2 N u s α
where N u denotes the number of basic thermocouple pairs in a module, ρ e the electrical resistivity ( Ω m ), G the geometrical factor (area/length, m ), k θ the thermal conductivity ( W m 1 K 1 ) and s α the elemental Seebeck coefficient ( V K 1 ). Alternatively, these parameters can be inferred directly from datasheet performance points ( Δ T m a x , I m a x , V m a x ), as depicted in Equations (9)–(11) [42]:
R = T h 0 Δ T m a x V m a x T h 0 I m a x
K = T h 0 Δ T m a x V m a x I m a x 2 T h 0 Δ T m a x
S = V m a x T h 0
where T h 0 is the reference hot-side temperature used in the datasheet entry. For this project, we selected TEC1-12708 modules from HB Electronic Components (Pudong Avenue, 1139, Shanghai, China) [43]. The extracted parameters are summarized in Table 1.

2.1.3. Performance Trends and Practical Implications

Figure 2 displays the calculated C O P c , Q ˙ c and Q ˙ h curves as functions of current and Δ T , obtained by evaluating Equations (2)–(5) with the module parameters:
Based on these curves, the following key insights were derived, which guided the climate chamber design and drove controller and thermal-management choices:
(i)
Figure 2a shows interesting information about the performance of Peltier cells. The C O P of the cell decreases as its current consumption—i.e., electrical power—increases, and this parameter is also low for very low consumptions. However, it presents an optimum value when the consumption of the cell is approximately 15–20% of its nominal value, which allows the highest amount of heat to be extracted with the lowest electrical consumption. Furthermore, the performance is higher the smaller the temperature difference between the cell faces.
(ii)
In Figure 2b, we observe that a higher power consumption of the cell allows a greater amount of heat to be absorbed, although this increase shows asymptotic trends as the consumption increases. Thus, as Δ T decreases, larger increases in Q ˙ c are observed when the consumption is low, up to approximately 50% of the nominal consumption.
(iii)
Similarly, in Figure 2c, an increase in heat rejected is observed as consumption increases. However, in this case, the growth is exponential, which causes the fact that, for the same consumption, a lower Δ T implies a large increase in Q ˙ h .
(iv)
Another interesting result is shown in Figure 2d. The performance of the cells is higher the lower the power consumption, and it is increasing as Δ T is lower, with a hyperbolic shape. However, this trend is true until 40–50% of the maximum Δ T allowed by the cell is reached, at which point the curves cross and a higher current consumption allows a higher C O P for the same Δ T . This also implies that, for a given Δ T , at the cutoff points of the curves, the same C O P can be reached for different current values. In these cases, if a fast dynamic is sought, it could be interesting to supply the cell with the higher current value, since it would achieve a higher heat extraction (Figure 2b), while maintaining the same efficiency. If reducing consumption while maintaining that Δ T is required, it may be of more interest to select the lower current.
(v)
Finally, Figure 2e,f show that the evolution of Q ˙ c and Q ˙ h upon variation of Δ T is very linear, with both values growing as current consumption increases. In the case of Q ˙ h , there is always an increase as the power consumption rises, as can be clearly seen in the curve with the highest consumption (8.5 A), which increases its value of Q ˙ h quite a lot for the same Δ T . On the contrary, for Q ˙ c , with the same consumption of 8.5 A, there is no significant difference with respect to the previous consumption value (6 A), as it tends to stabilize. This is because Q ˙ h = Q ˙ c + P e and, while P e is increasing, Q ˙ c does not vary much in value at high consumptions.

2.2. Design and Construction of a Peltier-Based Climate Chamber

Figure 3 shows a system diagram of the designed climate chamber (the figure illustrates cooling mode; reversing the current would provide heating). Figure 4 presents the prototype of the device. The chamber consisted of a rectangular insulated container with internal dimensions 600 × 600 × 400   mm and 50   mm thick walls. It was constructed from expanded polystyrene (EPS).

2.2.1. Mounting of the Thermoelectric Modules and Heatsinking

Eight Peltier modules, with their faces in contact with two aluminum heatsinks ( 400 × 150   mm , 30   mm fins), were installed in a hole at the rear of the chamber. One heatsink faced the internal cavity, and the other faced the ambient. Forced convection was provided by 11 W DC fans mounted on both heatsinks. The external fan maintained the outer face of the cells near room temperature, while the internal fan distributed conditioned air inside.
Operating at low temperatures could produce condensate on cold surfaces, notably on the heatsinks. For that, a drainage system was included to discharge the water generated by air condensation from the interior.

2.2.2. Air Distribution and Homogenization

To reduce spatial temperature non-uniformities, we combined directed forced convection with a passive flow-conditioning element placed near the chamber ceiling. A fibreglass mesh framed by aluminum profiles acted as a porous medium upstream of the conditioned volume.
The purpose of this element was to: (a) attenuate inlet jets and local recirculation; (b) produce a smoother downstream velocity field and more uniform temperature distribution; and (c) counteract stratification caused by natural convection (during heating, it helps move warm air downward; during cooling, it forces cold air to descend rather than pool at the floor). The internal fan blows upward from the side, and conditioned air then descends through this diffuser.

2.3. Integration of Electronics, Sensors, and Instrumentation

The ESP32 System-On-Chip from Espressif Systems (Bibo Road, 690, Shanghai, China) [44] was used as the chamber’s central controller. It was selected for its high performance, low cost, and versatility, and for incorporating a 12-bit analogue-to-digital converter (ADC), built-in peripherals for communications, and local data storage (8 MB flash memory) for storing timestamped experimental logs.
Bidirectional control of the thermoelectric modules was achieved with a custom H-bridge that incorporated four optocouplers to electrically isolate the logic outputs from the power stage (Figure 5). The H-bridge was driven by a 1 kHz PWM (Pulse Width Modulation) signal from the ESP32 to modulate the effective power applied to the modules.
The cells were grouped electrically in pairs—two cells in series, and groups connected in parallel—and supplied from a 24 V DC bus, such that each cell operated nominally at 12 V. The H-bridge allowed controlling cell polarity, for heating or cooling. The system included snubbing circuits to protect switching elements from transient peak values and overcurrent protection for safety and to prevent module overheating.
The sensors integrated into the climate chamber were essential for enabling accurate, real-time thermal regulation. Temperature measurements were obtained from NTC (Negative Temperature Coefficient) thermistors ( ± 0.5   ° C ) placed on representative hot and cold faces of the Peltier modules, providing fast local feedback for the inner control loop. Chamber air temperature and relative humidity were monitored using SHTC3 ( ± 0.2   ° C , ± 2 %   RH )—from Sensirion (Laubisruetistrasse, 50, Stäfa, Switzerland) [45]—and DS18B20 ( ± 0.5   ° C )—from Dallas Semiconductor (South Beltwood Parkway, 4401, Dallas, TX, USA) [46]—sensors, which were spatially distributed to capture gradients and ensure uniformity across the conditioned volume.
These sensors and instrumentation served multiple roles: (i) they provided fast, reliable feedback required for closed-loop PID control, (ii) they enabled system identification and model calibration, and (iii) they ensured that the chamber accurately reproduced the dynamic temperature and humidity profiles observed in real refrigerated transport. Sensor data were sampled and logged with timestamps via the ESP32 microcontroller, using its 12-bit ADC operating at a 100 kHz sampling rate. This setup ensured high-resolution data acquisition suitable for post-experiment analysis and full traceability.
Without precise and responsive sensing, the control system would be unable to track aggressive setpoint changes or maintain fidelity during transients. Moreover, the quality of the thermal data generated by the chamber—used to train predictive shelf-life models—depends directly on the accuracy and reliability of the sensor measurements. Thus, sensing is not only a support function but a central component of the system’s ability to reduce perishable food waste through reproducible cold-chain emulation.
Sensors were housed in 3D-printed PLA (polylactic acid) enclosures to protect them from condensing moisture while permitting adequate airflow across sensing elements. All the electronics were placed inside an ABS electrical panel with IP65 protection. The complete diagram of the measurement and control system is shown in Figure 6.
The sensor subsystem was not only responsible for monitoring environmental conditions but also played a central role in the control methodology. The temperature and humidity data acquired in real time were used both for feedback in the control loops and for offline system identification and model validation. This integration ensured that the chamber could accurately reproduce dynamic cold-chain conditions and generate high-quality datasets for predictive modelling.

2.4. Dynamic Modelling of the Thermal Behaviour of the System

To enable model-based control design and implement the control system, we developed a thermal dynamic model of the chamber and the thermoelectric modules based on energy balance principles. The chamber interior was modelled as a single, well-mixed thermal control volume—a common assumption in climate chamber modelling due to its balance between accuracy and tractability—whose temperature, T i n t , evolved according to an energy balance. This accounted for the heat delivered from the modules through convection and heat losses through the enclosure, as presented in (12):
ρ V C p d T i n t d t = T c e l l t T i n t R θ A U T i n t T
where ρ is air density, V the internal volume, C p the specific heat of air, A the internal surface area of the chamber, U the overall heat-transfer coefficient of the enclosure, T the external ambient temperature, R θ the effective convection thermal resistance between the cells and the chamber air—including natural and forced convection—and T c e l l t the temperature of the modules. Thermal resistances between cells and heatsinks were neglected. The module thermal dynamics were described by the thermal equation depicted in (13):
N c m c C p c d T c e l l t d t = N c q ˙ c e l l t T c e l l t T i n t R θ
where N c = 8 is the number of cells, m c and C p c are the lumped mass and specific heat of the module assembly (ceramic plates plus heatsink), and q ˙ c e l l t is the heat produced (or absorbed) by a single module (signed positive for heating). Following the thermoelectric relations introduced in Section 2.1, the heat rate produced by a module is shown in (14):
q ˙ c e l l t = ± S I c e l l t T c e l l t + 1 2 R I c e l l t 2 K T c e l l t T
where I c e l l t is the current through the cell. The upper sign applies during heating and the lower sign during cooling (we adopt the convention that q ˙ c e l l > 0 for heating and q ˙ c e l l < 0 for cooling). The module’s electrical current depends on the applied module voltage V c e l l t and the Seebeck voltage, as given in (15):
I c e l l t = V c e l l t S T c e l l t T R
Finally, the modules were driven through a PWM-controlled H-bridge. For a cell supply rail V C C and a duty cycle D t 0 ,   1 (where polarity was handled by the H-bridge logic), the voltage seen by each module was calculated as shown in (16):
V c e l l t = V C C D t

Linearization and Laplace-Domain Modelling

Due to the nonlinear nature of the dynamic equations, it was necessary to perform a linearization process around operating points to work more easily in the Laplace domain. Given a nonlinear equation F x = 0 , where x = ( x 1 , x 2 , ,   x n ) are its n time-dependent variables—including the derivatives—and given an equilibrium point x 0 = x 1 0 ,   x 2 0 , ,   x n 0 —where F x 0 = 0 and all derivatives vanish—first order Taylor was applied as indicated in (17), which represents the linearized equation [47,48,49]:
F x F x 0 + F x 1 x 0 Δ x 1 + + F x n x 0 Δ x n = i = 1 n F x i x 0 Δ x i = 0
where Δ x i = x i x i 0 . Taking the Laplace transform yields the relation shown in (18), which was finally used for the control system:
L F x i = 1 n F x i x 0 L Δ x i = 0
where L f t = f s represents the transform of f t . From linearizing Equation (12) around x 01 = T i n 0 ,   T c e l l 0 , the transfer function G T s , which relates internal temperature Δ T i n ( s ) to cell temperature Δ T c e l l s , is displayed in (19). A transport delay L was included to model finite heat-transport and sensor/actuator dynamics:
G T s = Δ T i n s Δ T c e l l s = Γ τ s + 1 e L s
where Γ = c 1 / γ , τ = c 2 ρ V C p R θ / γ , with γ = 1 + R θ A U , and c 1 , c 2 are constants to be obtained experimentally. This relation was well-described by a first-order, time-delayed system. Similarly, combining Equations (13)–(16) and linearizing around x 02 = T c e l l 0 , I c e l l 0 ,   D 0 , the resulting transfer function had the form G D s = Δ T c e l l s Δ D s = K D τ z s + 1 τ p 1 s + 1 τ p 2 s + 1 . When calculating the values approximately, τ z τ p 1 was obtained. Therefore, the system could be approximated by (20) to relate Δ T c e l l s with the duty cycle Δ D s . Additionaly, considering a delay L as follows:
G D s = Δ T c e l l s Δ D s Ω τ s + 1 e L s
where K D = ± γ N c V C C R S T c e l l 0 ± R I c e l l 0 / A U + δ γ , τ z = ρ V C p R θ / γ , τ p 1 = 2 / ( α α 2 4 β ) , τ p 2 = 2 / ( α + α 2 4 β ) , with δ = N c S T c e l l 0 ± I c e l l 0 R S + K , α = ( 1 / R θ + δ ) / ( N c m c C p c ) + γ / ( ρ V C p R θ ) , β = [ A U / R θ + δ ( 1 / R θ + A U ) ] / ( ρ V C p N c m c C p c ) , and with Ω = c 3 K D , τ = c 4 τ p 2 . Constants c 3 and c 4 must be determined experimentally. The delay L differs from L and is different for heating and cooling. Also, it is a first-order plus time delay system where Ω and τ depend on cell heating or cooling, obtaining two different models.
The values of the operating points are given in Table 2, after evaluating the equations at that point. The equilibrium was selected at the midpoint of the system’s operating range. For clarity, we used D > 0 for heating and D < 0 for cooling, expressed as a percentage.

2.5. Control System Design for Thermal Management

The chamber was regulated by a two-layer cascade control architecture. The outer (primary) loop commanded the chamber air temperature, and the inner (secondary) loop commanded the thermoelectric module temperature. This cascade architecture improved disturbance rejection and allowed the faster inner loop to stabilize module-level dynamics while the outer loop handled the slower air-temperature dynamics. Figure 7 illustrates the architecture block diagram.

2.5.1. Controller Architecture

Both loops use a two-degree-of-freedom PID controller (2-DOF PID) extended with:
(i)
A derivative filter to avoid amplifying measurement noise,
(ii)
An anti-windup mechanism based on back-calculation to handle actuator saturation, and
(iii)
A Smith predictor (with a low-pass filter) to compensate for the transport dead-time present in the thermal paths.
The 2-DOF PID control law implemented in the Laplace domain is presented in (21):
U s = K p λ R s Y s + 1 T i s R s Y s + T d s η T d s + 1 μ R s Y s
where R s is the reference, Y s the measured output, K p the proportional gain, T i the integral time, T d the derivative time, η the derivative filter constant, and λ , μ 0 ,   1 the two-degree weighting factors that tune how reference changes influence the proportional and derivative terms, respectively. Choosing λ < 1 or μ < 1 reduces the immediate impact of setpoint steps on the proportional or derivative action and helps reduce overshoot for aggressive setpoint profiles [32,34,50].

2.5.2. Anti-Windup Method

Integral windup was prevented using back-calculation. When the computed control signal u exceeds the actuator limits (clipped to u s a t ), the integral error accumulator e i is adjusted to drive the integrator state toward the clipped value with a gain constant K b , such that, if u > u s a t then e i e i K b u u s a t [35].
This back-calculation removes accumulated integral action proportional to the current saturation amount and the tuning constant K b , restoring the integrator as soon as the actuator leaves saturation. Actuator limits were enforced to protect the modules and power electronics. In our implementation, the practical saturation bounds were 15 ,   165   ° C for module-face temperature and 0 ,   100 % for duty cycle.

2.5.3. Smith Predictor for Dead-Time Compensation

Thermal transport and sensing introduce non-negligible dead time in the plant. To reduce the negative effects of delay on closed-loop performance, we implemented a Smith predictor that uses a model of the non-delayed plant G ~ s and the delay θ . The filtered predictor output Y ^ s was computed as shown in (22):
Y ^ s = F ν s Y s G ~ s e θ s U s + G ~ s U s
This was applied with F ν s = 1 / ( ν θ s + 1 ) , a low-pass filter used to increase robustness to model mismatch and measurement noise [33,36]. The predictor output Y ^ s was used inside the control law in place of the delayed plant output to reduce the effective loop delay seen by the controller.

2.5.4. Cascade Implementation and Hysteresis-Based Switching Logic

The cascade control was implemented as follows:
  • Outer loop C T s tracked the chamber air temperature increment Δ T i n r e f s , and its output was a module temperature reference Δ T c e l l r e f s that the inner loop had to achieve.
  • Inner loop C D s received Δ T c e l l r e f s and output the required duty-cycle increment Δ D s to the H-bridge driver.
Both controllers incorporated the 2-DOF PID, Smith predictor, and anti-windup. As the thermoelectric behaviour and time constants differ between heating and cooling—sign changes in the electro-thermal equations change gains and delays—two separate inner controllers were tuned: C D h s for heating and C D c s for cooling. The control system switched between these two PID laws according to the sign of the requested action (heating or cooling).
To prevent chattering when the desired action crossed zero, a hysteresis band of 0.5 °C was applied before switching branches. This value was chosen as a compromise between responsiveness and robustness: it was small enough to maintain accurate temperature control, yet sufficiently large to suppress unwanted switching due to measurement noise or small fluctuations near the setpoint. This ensured smooth transitions and reduced the probability of frequent toggling under noisy measurements.
To avoid abrupt control transients at the switch, the implementation also performed a bumpless transfer strategy: when switching, the integrator states and filtered derivative states were re-initialized to ensure that the command to the actuator did not suffer a step discontinuity. All these control features ensured stable, accurate reproduction of temperature trajectories while protecting hardware and minimizing transient overshoot.

2.6. Tuning and Optimization Strategies for the Controllers

Controller tuning followed a two-stage strategy: (i) obtain initial parameter sets from several established model-based tuning rules; and (ii) refine those sets experimentally on the real plant to balance tracking, robustness, and actuator effort.

2.6.1. Initial Tuning from Model-Based Methods

For the system transfer functions (Section Linearization and Laplace-Domain Modelling), described by first-order plus dead-time models of the form G s = κ T s + 1 e θ s , we computed candidate PID parameters ( K p , T i , T d ) for both the outer air-temperature controller C T s and the inner controller C D s using the following tuning methods: Ziegler–Nichols (ZN), Cohen–Coon (CC), Chien–Hrones–Reswick (CHR), Approximate M-constrained Integral Gain Optimization (AMIGO), and Skogestad Internal Model Control (SIMC) (see Table 3) [51,52,53,54,55].
These tuning methods were selected because they are widely used in industrial PID applications and provide a range of trade-offs between responsiveness, robustness, and overshoot. Their performance was evaluated using standard control metrics to ensure objective comparison.
In addition, we evaluated the Multiple Dominant Pole Method (MDPM) for the 2-DOF PID configuration, where parameters are obtained from the dominant pole s (see Table 4) [56]. These candidate tunings provided starting points that respected the dynamics and delays of the heating and cooling branches.

2.6.2. Initial 2-DOF and Auxiliary Parameter Choices

Each loop used a two-degree-of-freedom PID, such that setpoint transients and disturbance rejection could be traded independently. The derivative term included a first-order filter to limit noise amplification. Initial settings for the 2-DOF weights and filters were: (a) proportional setpoint weighting: λ = 0.7 ; (b) derivative setpoint weighting: μ = 0 ; and (c) derivative filter: η = 0.05 [57,58].
Anti-windup back-calculation was implemented with an initial back-calculation constant K b taken as 1 / T and 1 / T i T d , while the Smith predictor’s low-pass filter was initialized with ν = 0.5 [35,57,59]. These empirical choices provide stable starting behaviour for most first-order plants with moderate dead time.

2.6.3. Performance Evaluation and Selection

To compare candidate tunings objectively, we simulated each controller on a representative test reference and computed four performance indicators: Integral Square Error (ISE), Integral Absolute Error (IAE), Integral of Time-multiplied Absolute Error (ITAE), and Total Variation (TV), according to Equations (23)–(26) [60,61]:
ISE = 0 t s e 2 t d t
IAE = 0 t s e t d t
ITAE = 0 t s t e t d t
TV = 0 t s d u t d t d t
where e t is the tracking error, u t the control signal, and t s the settling time. The candidate tunings were evaluated for two demanding step tests that stress different parts of the operating range: a heating step of Δ T i n = + 40   ° C and a cooling step of Δ T i n = 10   ° C , each applied for 2 h. TV was used to quantify controller effort (actuator activity) and ISE, IAE, ITAE to quantify tracking quality and settling behaviour.

2.6.4. Controller Fine Tuning

The best-performing candidates from the simulation comparison served as initial control settings. Fine-tuning was carried out iteratively on the physical chamber. The following procedure was used:
(1)
Apply a step or short profile and observe the closed-loop response.
(2)
Adjust K p to trade steady-state speed versus overshoot.
(3)
Adjust T i to remove steady-state error while avoiding slow oscillatory behaviour.
(4)
Tune T d (and η ) to improve damping and reduce overshoot; reduce derivative action if noise amplification is observed.
(5)
Adjust 2-DOF weights λ and μ if setpoint transitions produce excessive overshoot.
(6)
Tune anti-windup constant K b to obtain fast recovery from actuator saturation without destabilizing the integrator.
(7)
Tune the Smith predictor’s filter ν to improve robustness against model mismatch (longer ν increases robustness but reduces dead-time compensation effectiveness).
Final tuning aimed to minimize error indicators to ensure robust control, accuracy, no sustained oscillations, and safe actuator saturation behaviour. The final tuned controller parameters are reported in Section 3.2.

3. Results and Discussion

3.1. System-Identification Results

System identification confirmed that both the air-temperature loop and the module electro-thermal loop were well-approximated by first-order dynamics with transport delay, consistent with the model structure adopted in Section Linearization and Laplace-Domain Modelling.
The unknown constants in (16) and (17) ( Γ , τ , L , Ω , τ , L ) were obtained experimentally by open-loop identification tests: (a) first, the chamber was brought to a well-defined steady operating point, allowing sufficient time for thermal transients to decay before applying excitation; (b) then a step input of amplitude Λ was applied in duty cycle switching cell polarity; (c) the first-order systems with the form G s = κ / ( T s + 1 ) were fitted to a curve k Λ 1 e t / T to estimate gains and time constants, ignoring time delay for the initial fit; and (d) the dead time was then determined graphically as the lag between inputs and outputs [47].
Figure 8 shows representative step responses used for identification. Figure 8a corresponds to the heating branch—cells driven from cool ( D = 100 % ) to heat ( D = 100 % )—and Figure 8b to the cooling branch—cells driven from heat ( D = 100 % ) to cool ( D = 100 % ). In all tests, the duty cycle was driven through its full available range ( ± 100 % ), and the module thermistors and distributed air sensors were recorded until steady state. The identified parameters for both plants are summarized in Table 5.

Interpretation and Implications from Identification Tests

The following key observations were derived from the identified parameters:
  • Air-loop dynamics G T ( s ) . The transfer from module face temperature to air temperature is slow: the dominant time constant is τ = 26.85   min and the transport delay is L = 1.17   min . The steady-state gain Γ = 0.5441 indicates that approximately 0.54   ° C of chamber air change is produced per 1   ° C change at the module face, reflecting the moderate thermal mass and convective coupling of the chamber.
  • Module dynamics G D ( s ) . The mapping from PWM duty-cycle to module face temperature is significantly faster than the air loop, as required for cascade control. Identified time constants were τ h e a t = 8.84   min and τ c o o l = 18.17   min ; the shorter heating time constant indicates that the module assembly responds faster when driven to heat—likely due to different convective conditions and thermoelectric asymmetry. Transport delays L were small (~0.8–1.0 min).
  • Asymmetry between heating and cooling. The identified gains Ω differ markedly: Ω h e a t = 144.93 versus Ω c o o l = 34.67 (°C per unit duty-step). This large disparity reflects the inherently asymmetric electro-thermal behaviour of the modules and the mounting/heatsink arrangement. In practice, it requires separate inner-loop tuning for heating and cooling, and explains why the cooling branch exhibits longer time constants in the identified models.
The clear separation of time scales ( τ < τ ) supports the chosen cascade architecture: a faster inner loop can regulate module face temperature while the slower outer loop controls the chamber air temperature. The small delays (~1 min) are non-negligible relative to the thermal time constants and benefit from explicit compensation (Smith predictor) when aggressive tracking is required. The strong gain asymmetry between heating and cooling motivated the design choice to implement separate inner controllers C D h s and C D c s (see Section 2.5).

3.2. Controller-Tuning Results

3.2.1. Candidate Tunings and Comparative Metrics

Initial controller settings are listed in Table 6 for the outer controller C T s and the two inner controllers, C D h s and C D c s , computed from the model-based tuning methods (ZN, CC, CHR, AMIGO, SIMC, MDPM). Table 7 reports the error indicators (ISE, IAE, ITAE, TV) obtained from the initial tuning comparison.
The most relevant outcome is that SIMC produced the best overall compromise across the error metrics (lowest IAE, ITAE; competitive ISE, TV), while some other methods (e.g., CHR) produced low actuator activity (TV) but substantially worse tracking. MDPM generated aggressive gains that yielded high TV.

3.2.2. Final Tuning and Experimental Refinement

SIMC candidates were used as the starting point for hardware fine-tuning. Table 8 lists the final tuned parameters. These settings reflect modest changes from the initial SIMC values, which provided good baseline performance, and only small adjustments were required to compensate for modelling mismatch and measurement noise.
A graphical comparison of performance indicators is shown in Figure 9. The figure highlights that the fine-tuned controllers achieve the lowest IAE, ISE, ITAE, and TV at moderate levels—indicating improved tracking with minimal actuator effort. Fine-tuning led to a significant reduction in both ITAE and TV compared to most model-based tuning rules, indicating faster settling with lower long-term error and the lowest actuator effort.

3.2.3. Practical Performance and Robustness

The following key points were observed:
  • Setpoint tracking: with the final tuning, the cascade controller tracked step references and multi-segment profiles with small steady-state error and acceptable overshoot. The Smith predictor and 2-DOF structure were important to reduce delay-induced degradation during relatively fast transients.
  • Switching between heating and cooling: the use of two inner controllers and a 0.5 °C hysteresis band prevented chattering at sign changes; bumpless transfer logic avoided actuator jumps at switch instants.
  • Actuator effort and accuracy: fine-tuning reduced both tracking errors and actuator effort, achieving low duty-cycle activity without sacrificing accuracy. For practical deployments where energy consumption is critical, the SIMC-derived tuning with minor refinements provided the best overall balance.
  • Robustness: final parameters were tested under variations in ambient temperature (from 5 to 25 °C), thermal load, and with several repeated runs; no instability or controller saturation issues were observed.

3.3. Test Results with Real Refrigerated-Truck Temperature Profiles

Two 36-day validation experiments were conducted to evaluate the chamber’s ability to reproduce realistic refrigerated-truck temperature profiles under closed-loop control and to quantify long-term tracking performance across multiple thermal transients. Each run followed a time-varying reference trajectory synthesized from real temperature traces recorded inside refrigerated trucks using an intelligent temperature tracker [62]. The ambient laboratory temperature during the test was ~20 °C. Both validation tests were conducted with thermal load inside the chamber, consisting of approximately 4 kg of cherry tomatoes.
A separate 24-h demonstration compares the unmodified (ZN-tuned) PID and the final optimized PID (with 2-DOF, anti-windup, Smith predictor, and hysteresis) on the same reference profile to illustrate practical improvements in transient behaviour and steady error.

3.3.1. Tracking Performance

The system reproduced complex, multi-modal temperature trajectories with high fidelity throughout both 36-day runs, exercising the chamber across a wide range of temperatures and frequent transitions (Figure 10, Figure 11, Figure 12 and Figure 13). Figure 10 and Figure 12 show the complete thermal tests, while Figure 11 and Figure 13 depict zoomed details.
  • The chamber air temperature tracked the reference closely (Figure 10a and Figure 12a). Global results show almost coincident traces for large fractions of the experiments covering a wide variety of operational regimes—prolonged holds, rapid ramps, frequent short transients.
  • Zoomed windows (Figure 11a–d and Figure 13a–d) reveal the chamber’s behaviour during rapid transitions. Settling times following aggressive ramps were short relative to the typical time scales of transport events (orders of minutes to an hour), with minimal overshoot in most transitions.
  • Even during very aggressive ramps or transients, settling was achieved with little or no overshoot, a direct consequence of: (i) the cascade control architecture; (ii) separate tuning for heating/cooling inner loops; and (iii) the Smith predictor alleviating delay effects.
  • The inner-module temperatures, determined by the duty cycle in the cascade control, achieved larger amplitude excursions than the chamber air (Figure 10b, Figure 11e–h, Figure 12b and Figure 13e–h), as expected from system-identification results (Section 3.1). The duty cycle was optimal and responded rapidly during transitions thanks to the properly tuned controllers, avoiding unnecessary saturation and bringing the cells to their ideal operating point to achieve the desired temperature inside the chamber, while minimizing the module effort.
  • Cumulative duty-cycle worked as an energy proxy: better tracking for extremely low values (near 0 °C) required higher duty activity. These sections show relatively larger deviations. For application contexts where energy is constrained, a slightly less aggressive tuning (increasing tolerance or applying explicit cost in tuning) would reduce energy at the cost of larger, but still acceptable, errors.
  • The control system used higher duty bursts only when required, avoided prolonged saturation, and switched heating/cooling branches smoothly—the 0.5 °C hysteresis and bumpless transfer prevented chattering. The Smith predictor reduced the effective impact of transport delays and improved transient damping, while anti-windup prevented integrator accumulation during saturation.

3.3.2. Regression and Residual Analysis of Chamber Temperature Tracking

Scatter plots of chamber versus reference temperatures (Figure 14a and Figure 15a) yield highly linear behaviour. Linear regression lines overlap closely with the identity line—slopes very close to 1, negligible intercepts, and R2 of 0.9981 and 0.9989—confirming that the mapping was nearly perfect over large periods.
Residual analysis using time series and boxplots (Figure 14b and Figure 15b) highlights a tight, roughly symmetric error distribution centred around a small negative bias—indicating the system tends to sit slightly colder on average—with the majority of errors within ±0.5 °C. These results demonstrate consistent performance and quantify how closely the chamber followed the target trajectories.
Greater deviations are concentrated around rapid transition instants or low-temperature segments. The thermal inertia of the modules plus heatsink assembly limits how fast the air node can reach the new setpoint despite aggressive duty bursts; the Smith predictor and cascaded inner loop reduce but cannot entirely eliminate the finite transport delay and thermal mass. This behaviour is visible in Figure 10, Figure 11, Figure 12 and Figure 13 and is consistent with the statistical shape of the residual distributions.
From an experimental design standpoint, the results are robust: identical controller logic and tuning strategy produced very similar, high-quality tracking across two independently recorded truck traces, demonstrating reproducibility. Overall, the visual and regression diagnostics demonstrate that the chamber provides faithful, repeatable reproduction of long cold-chain histories.

3.3.3. Thermal Behaviour of Peltier Cells and Chamber Air Temperature

Figure 16 and Figure 17 compare module-face temperature ( T c e l l ) and chamber-air temperature ( T i n ) for the trials. Figure 16a and Figure 17a include a time series showing both temperatures together, while Figure 16b and Figure 17b depict a scatter plot with identity and regression lines.
The regression slopes exceed unity (around 1.84 and 1.57), indicating that module faces swing with larger amplitude than the air node: 1 °C of chamber air change corresponds to roughly 1.6–1.8 °C change on the Peltier face in these experiments. This is a direct consequence of the thermal coupling—module small thermal mass and direct, concentrated heat—and the convective resistance between cell faces and air.
Practically, the steeper slope implies the inner loop must tolerate larger module excursions—without saturating or causing excessive thermal stress—while the outer loop experiences a smoother, lower-amplitude target. The cascade structure compensates for this separation of magnitudes.
Moreover, because the mapping from module-face to chamber-air temperatures is approximately linear and repeatable, the use of the cascade design was appropriate: the inner loop stabilizes the fast, high-amplitude actuator dynamics, and the outer loop focuses on the smoother air temperature. Larger deviations between these magnitudes occur at lower and near-ambient temperatures in the tests.
In addition, the system demonstrated robust thermal control under variable humidity conditions encountered during the long-duration tests. Periodic condensation on cold surfaces was effectively managed by the chamber’s purge and drainage system, with no disruption to closed-loop operation. Short humidity transients caused minor, localized increases in temperature ripple, but tracking performance remained stable and accurate. These results support the chamber’s suitability for experiments involving realistic moisture dynamics. However, fully coupled temperature-humidity control would require dedicated humidification/dehumidification hardware and reconfiguration of the control architecture.

3.3.4. Statistical Analysis and Evaluation Metrics

Table 9 reports the tracking metrics for the two 36-day trials, including individual and mean values. Both runs demonstrate consistently low errors and excellent agreement between chamber air temperature and the reference trace:
  • Mean absolute error (MAE) was 0.1903 °C, while average mean squared error and its square root (MSE and RMSE) values were 0.1089 °C2 and 0.3282 °C, respectively.
  • Median absolute errors (MedAE) were particularly small (0.1305 and 0.0700 °C), indicating that the bulk of the run was tracked with sub-tenth-to-few-tenths degree precision. MedAE being lower than MAE indicates a slightly skewed error distribution where a minority of larger deviations increases the mean, consistent with rare transients after aggressive ramps.
  • Biases were slightly negative in both trials (mean −0.1471 °C), showing a small systematic tendency for the chamber to finish slightly colder than the reference on average; these small negative values are consistent with the rest of the results.
  • The low standard deviation (SD) of the residuals (average 0.2921 °C) ensures that experiments requiring repeatable thermal histories will not be dominated by uncontrolled temperature variability.
  • Regression fits between chamber and reference temperatures returned extremely high coefficients of determination (average R 2 = 0.9985 ), confirming near-linear, near-ideal tracking over very large periods.
Evaluation metrics were calculated as presented in Equations (27)–(33):
MAE = 1 N k = 1 N T i n , k r e f T i n , k
MedAE = median T i n , 1 r e f T i n , 1 ,   ,   T i n , N r e f T i n , N
MSE = 1 N k = 1 N T i n , k r e f T i n , k 2
RMSE = MSE = 1 N k = 1 N T i n , k r e f T i n , k 2
Bias = 1 N k = 1 N T i n , k r e f T i n , k
SD = 1 N 1 k = 1 N T i n , k r e f T i n , k Bias 2
R 2 = 1 k = 1 N T i n , k r e f T i n , k 2 k = 1 N T i n , k r e f T ¯ i n r e f 2
where T i n , k r e f is the reference temperature, T i n , k the measured temperature, N the sample size, and T ¯ i n r e f = 1 N k = 1 N T i n , k r e f .

3.3.5. Controller Improvements Comparison

The 24-h controller comparison (Figure 18 and Figure 19; Table 10) shows the practical impact of the control improvements. The time-series plot shows that the baseline controller produced persistent overshoot and large steady-state offsets, while the optimized control tracked setpoints with substantially smaller ripple and faster recovery, avoiding overshoot.
Baseline PID produced large steady and transient errors ( MAE 2.74   ° C , RMSE 3.54   ° C , R 2 = 0.8971 ) and clear over/under-shooting, while optimized PID reduced MAE roughly fivefold to 0.54 °C, cut RMSE by more than half to 1.37 °C, and raised R 2 to 0.9804. Median absolute error fell from about 2.18 °C to 0.30 °C, demonstrating that the optimized controller maintains reference tracking, eliminating large, frequent deviations and greatly improving both steady-state and transient fidelity.
Transient steps were tracked with short settling times and minimal overshoot under the optimized controller. The Smith predictor and cascade arrangement were decisive in mitigating dead-time effects and preventing integrator windup during prolonged actuator saturation. The inner loop’s separate tuning for heating and cooling compensated for the thermoelectric asymmetry observed during identification and reduced chattering when the polarity was switched. Also, the 0.5 °C hysteresis plus bumpless transfer produced smooth transitions in the duty cycle and avoided sharp actuator steps.
In this short, rapid trial, it is easier to observe that the temperature ripple about the reference increased near ambient (~20 °C) and diminished at lower setpoints (Figure 18). This behaviour matched physical expectations: near ambient, the control authority of the modules interacted with very low net thermal gradients (walls conducted roughly at ambient), making fine adjustments more sensitive and increasing the relative contribution of convection to ripple. At low temperatures, the net heat flow was dominated by the cells, and the larger Δ T produced a more stable control action, since larger heat losses allowed for higher temperature smoothing.
Closed-loop control was robust, and the hysteresis-based switching between heating and cooling inner controllers avoided chattering during near-zero crossing segments. The validation tests demonstrate that the proposed hardware and control approach reproducibly emulate realistic cold-chain temperature histories with high accuracy over multi-week durations. The optimized controller delivers a dramatic improvement over a naive PID implementation, producing tracking quality suitable for controlled physical-twin experiments and for generating training datasets for digital-twin models.
The results demonstrate that the combination of cascade architecture, 2-DOF weighting, Smith predictor, anti-windup, and hysteresis is highly effective for thermoelectric actuation in the presence of thermal inertia and polarity switching. The 2-DOF structure decouples setpoint transients from disturbance rejection, allowing aggressive disturbance rejection without large setpoint overshoot. Anti-windup prevents integrator accumulation during saturation to ensure that recovery from long heating/cooling branches is much faster, and the Smith predictor neutralizes the effect of dead-times.
Finally, separating inner-loop controllers for heating and cooling matches the asymmetry in thermoelectric dynamics and avoids the suboptimal compromise of a single controller. In addition, the optimized controller also improved actuator behaviour: the duty-cycle traces (Figure 10b and Figure 12b) show that control action is concentrated into timely bursts rather than continuous saturation, reducing average actuator stress and likely improving energy efficiency and component longevity.
Recent studies have explored advanced control strategies for thermoelectric systems, including model predictive control [27,31], fuzzy logic [29,30], and adaptive sliding-mode approaches [25]. While these methods can offer strong performance in specific scenarios, they often require high computational resources or complex modelling. In contrast, our approach combines cascade PID control with modern enhancements (2-DOF, anti-windup, Smith predictor, hysteresis), achieving high accuracy with low computational overhead, making it suitable for embedded and low-cost platforms.

4. Conclusions

This paper presents a compact, portable climate chamber based on Peltier modules together with an identification-driven control strategy that reliably reproduces realistic cold-chain temperature histories. The primary novelty lies in the control design: a cascaded architecture combining two-degree-of-freedom PID controllers, Smith predictor’s dead-time compensation, anti-windup back-calculation, and hysteresis-based bumpless switching, plus separate inner-loop tuning for heating and cooling to address the asymmetric thermoelectric behaviour of Peltier cells. This practical combination delivers fast, stable tracking across frequent polarity changes and aggressive thermal transients while remaining computationally light and suitable for embedded hardware.
Experimentally, the system shows strong real-world performance. Two independent 36-day validation tests achieved consistently low long-run errors ( MAE 0.19   ° C , RMSE 0.33   ° C , R 2 = 0.9985 ), and a focused 24-h comparison demonstrated that the optimized controller improves performance, reducing settling times and overshoot. These results confirm that the chamber can serve as a reproducible physical twin for multi-week cold-chain experiments, producing high-quality, timestamped thermal traces that are suitable for training predictive shelf-life models and seeding digital-twin workflows.
Sensors embedded within the climate chamber play a critical role in achieving accurate and responsive thermal regulation. By providing high-resolution, real-time measurements of air temperature, module-face temperature, and relative humidity, they enable the control system to precisely replicate the dynamic thermal conditions experienced during refrigerated transport. This fidelity is essential to the chamber’s function as a physical twin, enabling reproducible experiments and generating reliable data to train predictive models. In turn, these models support decision-making in the cold chain, helping to anticipate spoilage and optimize logistics, thereby contributing to the reduction in perishable food waste.
Moreover, this work discusses an important operational trade-off: achieving faster transient response typically requires higher module currents that reduce instantaneous COP, while energy-efficient operation needs modest currents and small face Δ T . Recognizing this trade-off enables flexible operation modes (speed-optimized vs. energy-optimized) and points to practical extensions such as COP-aware control, multi-stage Peltier cells, or fan-speed modulation to tune convective coupling. The prototype also proved robust to realistic humidity transients: condensate was handled without interrupting closed-loop control, though precise humidity control would require additional actuators and retuning.
Our contribution combines a compact, reversible actuation platform with a tailored, robust control approach, high-fidelity sensor instrumentation, and extensive long-duration validation. The result is a practical, low-complexity tool for reproducible cold-chain emulation that lowers the barrier for experimental studies of perishable-food quality and supports the development of data-driven supply-chain optimizations aimed at reducing food waste.

Author Contributions

Conceptualization, J.M.G.-L., A.P.R.-G. and R.T.-S.; methodology, J.M.G.-L., A.P.R.-G., M.J.-B. and A.T.-M.; software, J.M.G.-L., M.J.-B. and A.T.-M.; validation, J.M.G.-L. and A.P.R.-G.; formal analysis, J.M.G.-L. and A.P.R.-G.; investigation, J.M.G.-L.; resources, R.T.-S.; data curation, J.M.G.-L.; writing—original draft preparation, J.M.G.-L.; writing—review and editing, J.M.G.-L., A.P.R.-G., M.J.-B., A.T.-M. and R.T.-S.; visualization, J.M.G.-L. and A.P.R.-G.; supervision, R.T.-S.; project administration, R.T.-S.; funding acquisition, R.T.-S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Ministry of Science, Innovation, and Universities (MICIU), with NextGenerationEU funds (PRTR-C17.I1) as part of the AGROALNEXT programme and through the FPU programme (grant number FPU23/00186). Also, it was funded by the Fundación Séneca, with funds from Comunidad Autónoma Región de Murcia (CARM) (https://fseneca.es/agroalnext/ (accessed on 20 September 2025)), and by the “Prueba de Concepto” programme, with code 22267PDC-23.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

The authors would like to thank the participants for their time and effort in completing this study.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
Acronyms
2-DOF PIDTwo-Degree-of-Freedom PID Controller
ABSAcrylonitrile Butadiene Styrene
ADCAnalogue-to-Digital Converter
AMIGOApproximate M-constrained Integral Gain Optimization
CCCohen–Coon
CHRChien–Hrones–Reswick
COPCoefficient of Performance
DCDirect Current
EPSExpanded Polystyrene
IAEIntegral Absolute Error
ISEIntegral Square Error
ITAEIntegral of Time-multiplied Absolute Error
MAEMean Absolute Error
MDPMMultiple Dominant Pole Method
MedAEMedian Absolute Error
MPCModel Predictive Control
MSEMean Squared Error
NTCNegative Temperature Coefficient
PIDProportional–Integral–Derivative controller
PLAPolylactic Acid
PWMPulse Width Modulation
RMSERoot Mean Square Error
SDStandard Deviation
SIMCSkogestad Internal Model Control
TVTotal Variation
ZNZiegler–Nichols
Symbols
A Internal surface area of the chamber ( m 2 )
C D , C D c , C D h Inner-loop PID controllers: general, cooling branch, heating branch
C p Specific heat of air ( J · k g 1 · K 1 )
C p c Specific heat of the module assembly ( J · k g 1 · K 1 )
C T Outer-loop PID controller for chamber air temperature
C O P c , C O P h Coefficient of performance for cooling and heating
D Duty cycle of the PWM control signal
D 0 Duty cycle operating point
G Geometrical factor (area/length) ( m )
G D Transfer function from duty cycle to module temperature
G T Transfer function from module temperature to chamber air temperature
I Electrical current ( A )
I c e l l Current through the thermoelectric module ( A )
I c e l l 0 Current through the module operating point ( A )
I m a x Maximum rated current of the module ( A )
K Thermal conductance of the module ( W K 1 )
K b Anti-windup back-calculation constant
K p Proportional gain of the PID controller
k θ Thermal conductivity ( W m 1 K 1 )
L , L Transport delay (dead time) in the thermal systems ( min )
m c Lumped mass of the module assembly ( kg )
N c Number of thermoelectric modules
N u Number of thermocouple pairs in a module
P e Electrical power input to the module ( W )
Q ˙ c Heat absorbed at the cold side of the module ( W )
q ˙ c e l l Heat produced or absorbed by a single module ( W )
Q ˙ h Heat rejected at the hot side of the module ( W )
Q ˙ P e l t i e r Ideal Peltier heat flow ( W )
S Seebeck coefficient ( V K 1 )
s α Elemental Seebeck coefficient ( V K 1 )
T Temperature ( K or ° C )
T c Cold face temperature of the module ( K )
T c e l l Temperature of the module face ( K )
T c e l l 0 Module temperature operating point ( K )
T d Derivative time of the PID controller ( min )
T h Hot face temperature of the module ( K )
T h 0 Reference module hot-side temperature from datasheet ( K )
T i Integral time of the PID controller ( min )
T i n Chamber air temperature ( K )
T i n 0 Chamber air temperature operating point ( K )
T External ambient temperature ( K )
U Overall heat-transfer coefficient of the chamber enclosure ( W m 2 K 1 )
V Internal volume of the chamber ( m 3 )
V C C Supply voltage rail for the module ( V )
V c e l l Voltage applied to the module ( V )
V e Electrical voltage ( V )
V m a x Maximum rated voltage of the module ( V )
R Electrical resistance of the module ( Ω )
R 2 Coefficient of determination
R θ Effective thermal resistance between modules and chamber air ( K W 1 )
Γ Gain of module-temperature to air-temperature transfer function ( ° C / ° C )
Δ T Temperature difference ( K )
Δ T m a x Maximum temperature difference across the module ( K )
η Derivative filter constant in the PID controller
λ ,   μ Setpoint weighting factors in 2-DOF PID controller
ν Low-pass filter constant in the Smith predictor
Π Peltier coefficient ( V )
ρ Air density ( kg · m 3 )
ρ e Electrical resistivity ( Ω m )
τ , τ Time constants of the thermal systems ( min )
Ω Gain of duty-cycle to module-temperature transfer function ( ° C )

References

  1. FAO; IFAD; UNICEF; WFP; WHO. The State of Food Security and Nutrition in the World 2024; FAO: Rome, Italy, 2024. [Google Scholar] [CrossRef]
  2. FAO; IFAD; UNICEF; WFP; WHO. The State of Food Security and Nutrition in the World 2023. Urbanization, Agrifood Systems Transformation and Healthy Diets Across the Rural–Urban Continuum; FAO: Rome, Italy, 2023; ISBN 9789251372265. [Google Scholar]
  3. UNEP; FAO. Sustainable Food Cold Chains: Opportunities, Challenges and the Way Forward; UNEP: Nairobi, Kenya; FAO: Rome, Italy, 2022. [Google Scholar] [CrossRef]
  4. De Venuto, D.; Mezzina, G. Spatio-Temporal Optimization of Perishable Goods’ Shelf Life by a Pro-Active WSN-Based Architecture. Sensors 2018, 18, 2126. [Google Scholar] [CrossRef]
  5. FAO; WHO. FAO/WHO Guidance to Governments on the Application of HACCP in Small and/or Less-Developed Food Businesses; FAO: Rome, Italy, 2007; ISBN 978-92-5-105596-0. [Google Scholar]
  6. Charpe, A.M.; Sedani, S.R.; Murumkar, R.P.; Bhad, R.G. Effect of Temperature on Microbial Growth in Food During Storage. Multilogic Sci. 2019, 8, 56–58. [Google Scholar]
  7. Blanco-Lizarazo, C.M.; Rodríguez Jaramillo, A.; López Rueda, K. Multivariate Shelf Life Model for Postharvest Agaricus Bisporus at Different Temperatures. Postharvest Biol. Technol. 2024, 217, 113106. [Google Scholar] [CrossRef]
  8. Choosuk, N.; Meesuk, P.; Renumarn, P.; Phungamngoen, C.; Jakkranuhwat, N. Kinetic Modeling of Quality Changes and Shelf Life Prediction of Dried Coconut Chips. Processes 2022, 10, 1392. [Google Scholar] [CrossRef]
  9. Derossi, A.; Mastrandrea, L.; Amodio, M.L.; De Chiara, M.L.V.; Colelli, G. Application of Multivariate Accelerated Test for the Shelf Life Estimation of Fresh-Cut Lettuce. J. Food Eng. 2016, 169, 122–130. [Google Scholar] [CrossRef]
  10. Atta, R.M.; Atta, R.M. Thermoelectric Cooling. In Bringing Thermoelectricity into Reality; IntechOpen: London, UK, 2018. [Google Scholar] [CrossRef]
  11. Poole, S.F.; Amin, O.J.; Solomon, A.; Barton, L.X.; Edmonds, R.P.C.K.W.; Wadley, P. Thermally Stable Peltier Controlled Vacuum Chamber for Electrical Transport Measurements. Rev. Sci. Instrum. 2024, 95, 035108. [Google Scholar] [CrossRef]
  12. Saini, A.; Watzman, S.J.; Bahk, J.-H. Cost-Performance Trade-off in Thermoelectric Air Conditioning System with Graded and Constant Material Properties. Energy Build. 2020, 240, 110931. [Google Scholar] [CrossRef]
  13. Mazhar, A.R.; Ubaid, A.; Shah, S.M.H.; Masood, S.; Alvi, M.Z. Investigation of the Simultaneous Cooling and Heating Using a Thermoelectric Peltier. Eng. Proc. 2023, 45, 13. [Google Scholar] [CrossRef]
  14. ASHRAE. ASHRAE Handbook—Refrigeration; ASHRAE: Peachtree Corners, Georgia, 2014; ISBN 978-1-936504-72-5. [Google Scholar]
  15. Rowe, D.M. Thermoelectrics Handbook: Macro to Nano; Taylor & Francis Group: Abingdon, UK, 2006; ISBN 978-0-8493-2264-8. [Google Scholar]
  16. Hussain, W.; Shahzad, H.; García-Salaberri, P.A.; Ashraf, H.; Shah, N.A. Comprehensive Review on Thermoelectric Materials Principles, Synthesis, Nanostructuring and Advance Applications. Int. Commun. Heat Mass Transf. 2025, 169, 109672. [Google Scholar] [CrossRef]
  17. Lee, H. Thermal Design: Heat Sinks, Thermoelectrics, Heat Pipes, Compact Heat Exchangers, and Solar Cells; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 2011; ISBN 978-0-470-49662-6. [Google Scholar]
  18. Vasilyev, G.; Kuzichkin, O.; Surzhik, D. Nonlinear Control of Thermoelectric Peltier Moduls for Climate Management Systems in Agro-Industrial Complex. Lect. Notes Electr. Eng. 2024, 1130, 148–155. [Google Scholar] [CrossRef]
  19. Montalvão, F.F.; de Almeida, I.C.; Pinto, V.P.; de Oliveira, B.P.; Yasuoka, F.M.M.; Neto, J.C. de C. Peltier-Based Temperature Regulation: A Method for Performance Optimization in Solid-State Lasers. MethodsX 2024, 13, 102873. [Google Scholar] [CrossRef]
  20. Yusuf, A.; Koç, T.; Arikuşu, Y.S.; Tiryaki, H.; Bayhan, N.; Ballikaya, S. Modeling of a Thermoelectric Cooler System, Design and Optimization of the System’s Controller. Sadhana-Acad. Proc. Eng. Sci. 2022, 47, 182. [Google Scholar] [CrossRef]
  21. Mironova, A.; Mercorelli, P.; Zedler, A. A Multi Input Sliding Mode Control for Peltier Cells Using a Cold–Hot Sliding Surface. J. Franklin Inst. 2018, 355, 9351–9373. [Google Scholar] [CrossRef]
  22. Mironova, A.; Mercorelli, P.; Zedler, A. Control of a Two-Thermoelectric-Cooler System for Ice-Clamping Application Using Lyapunov Based Approach. In Proceedings of the 2017 21st International Conference on Process Control (PC), Štrbské Pleso, Slovakia, 6–9 June 2017; IEEE: New York, NY, USA, 2017; pp. 24–29. [Google Scholar]
  23. Mironova, A.; Mercorelli, P.; Zedler, A. Robust Control Using Sliding Mode Approach for Ice-Clamping Device Activated by Thermoelectric Coolers. IFAC-Pap. 2016, 49, 470–475. [Google Scholar] [CrossRef]
  24. Masaki, M.S.; Zhang, L.; Xia, X. Fuzzy Logic Control of Plug-in Supercapacitor Storage for Thermoelectric Management of Batteries. Renew. Energy Focus 2022, 43, 59–73. [Google Scholar] [CrossRef]
  25. Rafatnia, S. Adaptive Fixed-Time Terminal Sliding Mode Control of a Peltier Cell Fused with a Fuzzy Fixed-Time Perturbation Estimator. J. Process Control 2025, 148, 103391. [Google Scholar] [CrossRef]
  26. Liu, K.; Li, K.; Zhang, C. Constrained Generalized Predictive Control of Battery Charging Process Based on a Coupled Thermoelectric Model. J. Power Sources 2017, 347, 145–158. [Google Scholar] [CrossRef]
  27. Liu, M.; Wu, H.; Liang, X.; Liu, J.; Zeng, X.; Hu, K. Model Predictive Control Based on LSTM Neural Network for Maglev Vehicle’ Suspension System. Acta Mech. Sin./Lixue Xuebao 2026, 42, 524572. [Google Scholar] [CrossRef]
  28. Behrooz, F.; Mariun, N.; Marhaban, M.H.; Radzi, M.A.M.; Ramli, A.R. Review of Control Techniques for HVAC Systems-Nonlinearity Approaches Based on Fuzzy Cognitive Maps. Energies 2018, 11, 495. [Google Scholar] [CrossRef]
  29. Yi, H.; Zhou, J.; Zhang, J.; Chen, E. Adaptive Thermal Comfort Control of Electric Vehicle Air Conditioning Using GWO-Optimized Fuzzy PID. Therm. Sci. Eng. Prog. 2025, 66, 104057. [Google Scholar] [CrossRef]
  30. Omidi Jezeh, H.; Moradi, H. Modeling and Optimal Hierarchical Control of Multi-Zone VAV Systems for Energy Efficiency and Occupant Comfort. Appl. Therm. Eng. 2025, 280, 128009. [Google Scholar] [CrossRef]
  31. Tomažič, S.; Škrjanc, I. Advanced Model Predictive Control Strategies for Energy-Efficient HVAC Systems in Pharmaceutical Facilities. Energy Build. 2025, 347, 116348. [Google Scholar] [CrossRef]
  32. So, G. DS Based 2-DOF PID Controller for Various Integrating Processes with Time Delay. ISA Trans. 2024, 153, 276–294. [Google Scholar] [CrossRef]
  33. De Azevedo, A.P.; Santos, T.L.M.; Normey-Rico, J.E. Optimal Analytical Cascade Control for FOPDT Systems. Eur. J. Control 2024, 75, 100934. [Google Scholar] [CrossRef]
  34. Balaguer, V.; González, A.; García, P.; Blanes, F. Enhanced 2-DOF PID Controller Tuning Based on an Uncertainty and Disturbance Estimator With Experimental Validation. IEEE Access 2021, 9, 99092–99102. [Google Scholar] [CrossRef]
  35. De Almeida Machareth, G.; Dos Santos, M.F.; Da Silva, J.L.; Franklin, L.R.; Mercorelli, P. Case Study: Optimization of PI Controller Gains with Anti-Windup Applied on a Level System. In Proceedings of the 2023 24th International Carpathian Control Conference, ICCC 2023, Szilvásvárad, Hungary, 12–14 June 2023; pp. 4–9. [Google Scholar] [CrossRef]
  36. Tavakoli, S. Enhanced Control of Double Integrating plus Time Delay Systems Using a Two-Degree-of-Freedom Smith Predictor. Electron. Lett. 2024, 60, e13309. [Google Scholar] [CrossRef]
  37. Jean Charles, A. Peltier Nouvelles Expériences Sur La Caloricité Des Courans Électriques. Ann. Chim. Phys. 1834, 56, 371–386. [Google Scholar]
  38. Kimura, Y.; Utsumi, K.; Tohmyoh, H. Experimental Relationship between the Seebeck and Peltier Effects in Thermoelectric Modules Based on Fe and Al Metals. Appl. Therm. Eng. 2024, 255, 124009. [Google Scholar] [CrossRef]
  39. Schilling, A.; Zhang, X.; Bossen, O. Heat Flowing from Cold to Hot without External Intervention by Using a “Thermal Inductor”. Sci. Adv. 2019, 5, eaat9953. [Google Scholar] [CrossRef]
  40. Chen, M.; Snyder, G.J. Analytical and Numerical Parameter Extraction for Compact Modeling of Thermoelectric Coolers. Int. J. Heat Mass Transf. 2013, 60, 689–699. [Google Scholar] [CrossRef]
  41. Zhang, H.Y.; Mui, Y.C.; Tarin, M. Analysis of Thermoelectric Cooler Performance for High Power Electronic Packages. Appl. Therm. Eng. 2010, 30, 561–568. [Google Scholar] [CrossRef]
  42. Martín-Gómez, C.; Zuazua-Ros, A.; Del Valle de Lersundi, K.; Sánchez Saiz-Ezquerra, B.; Ibáñez-Puy, M. Integration Development of a Ventilated Active Thermoelectric Envelope (VATE): Constructive Optimization and Thermal Performance. Energy Build. 2021, 231, 110593. [Google Scholar] [CrossRef]
  43. HB Electronic Components Thermoelectric Cooler TEC1-12708 Performance Specifications. Available online: https://www.hebeiltd.com.cn/peltier.datasheet/TEC1-12708.pdf (accessed on 7 March 2025).
  44. Espressif Systems ESP32 Series Datasheet. Available online: https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf (accessed on 28 November 2023).
  45. Sensirion SHTC3 Datasheet. Available online: https://sensirion.com/media/documents/643F9C8E/63A5A436/Datasheet_SHTC3.pdf (accessed on 7 March 2025).
  46. Dallas Semiconductor Corp. Programmable Resolution 1-Wire Digital Thermometer—DS18B20. Available online: https://cdn.sparkfun.com/datasheets/Sensors/Temp/DS18B20.pdf (accessed on 7 March 2025).
  47. Ogata, K. Modern Control Engineering; Prentice Hall: Hoboken, NJ, USA, 2010; ISBN 978-0-13-615673-4. [Google Scholar]
  48. Franklin, G.F.; Powell, J.D.; Emami-Naeini, A. Feedback Control of Dynamic Systems; Prentice Hall: Hoboken, NJ, USA, 2010; ISBN 978-0-13-601969-5. [Google Scholar]
  49. Khalil, H.K. Nonlinear Systems; Prentice Hall: Hoboken, NJ, USA, 1996; ISBN 0-13-228024-8. [Google Scholar]
  50. Kumar, M.; Patel, V. Two Degree of Freedom PID Controller For Speed Control of DC Motor. Am. Int. J. Res. Sci. Technol. Eng. Math. 2015, 39, 94–97. [Google Scholar]
  51. Utami, A.R.; Yuniar, R.J.; Giyantara, A.; Saputra, A.D. Cohen-Coon PID Tuning Method for Self-Balancing Robot. In Proceedings of the International Symposium on Electronics and Smart Devices (ISESD), Bandung, Indonesia, 8–9 November 2022; pp. 1–5. [Google Scholar] [CrossRef]
  52. Skogestad, S.; Grimholt, C. The SIMC Method for Smooth PID Controller Tuning. In PID Control in the Third Millennium. Advances in Industrial Control; Springer International Publishing: Berlin/Heidelberg, Germany, 2012; pp. 147–175. [Google Scholar]
  53. Silva, F.; Batista, J.; Souza, D.; Lima, A.; dos Reis, L.; Barbosa, A. Control and Identification of Parameters of a Joint of a Manipulator Based on PID, PID 2-DOF, and Least Squares. J. Braz. Soc. Mech. Sci. Eng. 2023, 45, 327. [Google Scholar] [CrossRef]
  54. Wang, L. PID Control System Design and Automatic Tuning Using MATLAB/Simulink. In PID Control System Design and Automatic Tuning Using MATLAB/Simulink; John Wiley & Sons: Hoboken, NJ, USA, 2020; pp. 1–344. [Google Scholar] [CrossRef]
  55. Åström, K.J.; Hägglund, T. Revisiting the Ziegler–Nichols Step Response Method for PID Control. J. Process Control 2004, 14, 635–650. [Google Scholar] [CrossRef]
  56. Viteckova, M.; Vitecek, A. 2DOF PI and PID Controllers Tuning. IFAC Proc. Vol. 2010, 43, 343–348. [Google Scholar] [CrossRef]
  57. Kumar, S.; Negi, R. A Comparative Study of PID Tuning Methods Using Anti-Windup Controller. In Proceedings of the ICPCES 2012—2012 2nd International Conference on Power, Control and Embedded Systems, Allahabad, India, 17–19 December 2012. [Google Scholar] [CrossRef]
  58. Alfaro, V.M.; Vilanova, R.; Arrieta, O. Considerations on Set-Point Weight Choice for 2-DoF PID Controllers. IFAC Proc. Vol. 2009, 42, 721–726. [Google Scholar] [CrossRef]
  59. Roca, L.; Guzman, J.L.; Normey-Rico, J.E.; Berenguel, M. Filtered Smith Predictor with Nonlinear Model Applied to a Solar Field. In Proceedings of the 2014 European Control Conference, ECC 2014, Strasbourg, France, 24–27 June 2014; pp. 773–777. [Google Scholar] [CrossRef]
  60. Skogestad, S. Simple Analytic Rules for Model Reduction and PID Controller Tuning. J. Process Control 2003, 13, 291–309. [Google Scholar] [CrossRef]
  61. Singh, S.; Singh, V.; Rani, A.; Yadav, J. Optimization of PID Controller Based on Various Tuning Methods. In Proceedings of the 2023 International Conference on Power, Instrumentation, Energy and Control, PIECON 2023, Aligarh, India, 10–12 February 2023. [Google Scholar] [CrossRef]
  62. Garrido-López, J.; Jiménez-Buendía, M.; Toledo-Moreo, A.; Giménez-Gallego, J.; Torres-Sánchez, R. Monitoring Perishable Commodities Using Cellular IoT: An Intelligent Real-Time Conditions Tracker Design. Appl. Sci. 2024, 14, 11050. [Google Scholar] [CrossRef]
Figure 1. Diagram of a basic thermocouple pair in a Peltier module. Here, T h : hot face temperature; T c : cold face temperature; Q ˙ h : hot-side rejected heat; and Q ˙ c : cold-side absorbed heat.
Figure 1. Diagram of a basic thermocouple pair in a Peltier module. Here, T h : hot face temperature; T c : cold face temperature; Q ˙ h : hot-side rejected heat; and Q ˙ c : cold-side absorbed heat.
Sensors 25 06689 g001
Figure 2. Representative Peltier cell curves. (a) C O P c , (b) Q ˙ c and (c) Q ˙ h versus current for various Δ T ; (d) C O P c , (e) Q ˙ c and (f) Q ˙ h versus Δ T for various currents.
Figure 2. Representative Peltier cell curves. (a) C O P c , (b) Q ˙ c and (c) Q ˙ h versus current for various Δ T ; (d) C O P c , (e) Q ˙ c and (f) Q ˙ h versus Δ T for various currents.
Sensors 25 06689 g002
Figure 3. System diagram of the designed climate chamber.
Figure 3. System diagram of the designed climate chamber.
Sensors 25 06689 g003
Figure 4. Prototype of the climate chamber: (a) detail of the interior and the porous medium; (b) detail of the heat exchangers with the fans.
Figure 4. Prototype of the climate chamber: (a) detail of the interior and the porous medium; (b) detail of the heat exchangers with the fans.
Sensors 25 06689 g004
Figure 5. H-bridge to control Peltier cells heating and cooling.
Figure 5. H-bridge to control Peltier cells heating and cooling.
Sensors 25 06689 g005
Figure 6. Full diagram of the measurement and control setup.
Figure 6. Full diagram of the measurement and control setup.
Sensors 25 06689 g006
Figure 7. Block diagram of the cascade control architecture.
Figure 7. Block diagram of the cascade control architecture.
Sensors 25 06689 g007
Figure 8. Representative step responses used for system identification: (a) heating (cool → heat); (b) cooling (heat → cool). Duty cycle was driven through its full range ( ± 100 % ).
Figure 8. Representative step responses used for system identification: (a) heating (cool → heat); (b) cooling (heat → cool). Duty cycle was driven through its full range ( ± 100 % ).
Sensors 25 06689 g008
Figure 9. Comparison of performance indicators for final tuned controllers: (a) IAE and TV; (b) ISE and ITAE.
Figure 9. Comparison of performance indicators for final tuned controllers: (a) IAE and TV; (b) ISE and ITAE.
Sensors 25 06689 g009
Figure 10. Test 1: full 36-day time series. (a) Reference and chamber ( T i n ) temperatures; (b) module temperature ( T c e l l ) and duty cycle ( D ).
Figure 10. Test 1: full 36-day time series. (a) Reference and chamber ( T i n ) temperatures; (b) module temperature ( T c e l l ) and duty cycle ( D ).
Sensors 25 06689 g010
Figure 11. Test 1: zoom panels for a detailed view. (ad) Reference and chamber ( T i n ) temperatures; (eh) module temperature ( T c e l l ) and duty cycle ( D ).
Figure 11. Test 1: zoom panels for a detailed view. (ad) Reference and chamber ( T i n ) temperatures; (eh) module temperature ( T c e l l ) and duty cycle ( D ).
Sensors 25 06689 g011
Figure 12. Test 2: full 36-day time series. (a) Reference and chamber ( T i n ) temperatures; (b) module temperature ( T c e l l ) and duty cycle ( D ).
Figure 12. Test 2: full 36-day time series. (a) Reference and chamber ( T i n ) temperatures; (b) module temperature ( T c e l l ) and duty cycle ( D ).
Sensors 25 06689 g012
Figure 13. Test 2: zoom panels for a detailed view. (ad) Reference and chamber ( T i n ) temperatures; (eh) module temperature ( T c e l l ) and duty cycle ( D ).
Figure 13. Test 2: zoom panels for a detailed view. (ad) Reference and chamber ( T i n ) temperatures; (eh) module temperature ( T c e l l ) and duty cycle ( D ).
Sensors 25 06689 g013
Figure 14. Test 1: (a) scatter plot of T i n versus reference with identity line and linear regression ( R 2 = 0.9981 ); (b) residual diagnostics with time series and boxplot of temperature error.
Figure 14. Test 1: (a) scatter plot of T i n versus reference with identity line and linear regression ( R 2 = 0.9981 ); (b) residual diagnostics with time series and boxplot of temperature error.
Sensors 25 06689 g014
Figure 15. Test 2: (a) scatter plot of T i n versus reference with identity line and linear regression ( R 2 = 0.9989 ); (b) residual diagnostics with time series and boxplot of temperature error.
Figure 15. Test 2: (a) scatter plot of T i n versus reference with identity line and linear regression ( R 2 = 0.9989 ); (b) residual diagnostics with time series and boxplot of temperature error.
Sensors 25 06689 g015
Figure 16. Test 1: thermal response of T i n and T c e l l , showing (a) time series and (b) scatter plot with identity line and linear regression.
Figure 16. Test 1: thermal response of T i n and T c e l l , showing (a) time series and (b) scatter plot with identity line and linear regression.
Sensors 25 06689 g016
Figure 17. Test 2: thermal response of T i n and T c e l l , showing (a) time series and (b) scatter plot with identity line and linear regression.
Figure 17. Test 2: thermal response of T i n and T c e l l , showing (a) time series and (b) scatter plot with identity line and linear regression.
Sensors 25 06689 g017
Figure 18. PID performance comparison under a 24-h test, showing unoptimized (ZN-tuned) PID and final optimized PID (2-DOF, anti-windup, Smith predictor, and hysteresis) on the same reference profile.
Figure 18. PID performance comparison under a 24-h test, showing unoptimized (ZN-tuned) PID and final optimized PID (2-DOF, anti-windup, Smith predictor, and hysteresis) on the same reference profile.
Sensors 25 06689 g018
Figure 19. Evaluation metrics for baseline PID versus final optimized PID, for the 24-h test.
Figure 19. Evaluation metrics for baseline PID versus final optimized PID, for the 24-h test.
Sensors 25 06689 g019
Table 1. Peltier cell extracted parameter values (TEC1-12708).
Table 1. Peltier cell extracted parameter values (TEC1-12708).
Peltier Cell ParameterValue
V m a x 15.4   V
I m a x 8.5   A
Δ T m a x 66   K
T h 0 298   K
R 1.41   Ω
K 0.772   W / K
S 0.0517   V / K
Table 2. Operating point values used for system linearization.
Table 2. Operating point values used for system linearization.
Operating PointHeat CaseCool Case
D 0 50 % 50 %
I c e l l 0 2.37   A 2.92   A
T c e l l 0 344.46   K 256.52   K
T i n 0 335.32   K 263.00   K
Table 3. Tuning methods for PID parameters.
Table 3. Tuning methods for PID parameters.
Method K p T i T d
Ziegler–Nichols 1.2 T κ θ 2 θ 0.5 θ
Cohen–Coon T κ θ 4 3 + θ 4 T 32 + 6 θ / T 13 + 8 θ / T θ 4 11 + 2 θ / T θ
Chien–Hrones–Reswick 0.6 T κ θ T 0.5 θ
AMIGO 1 κ 0.2 + 0.45 T θ 0.4 θ + 0.8 T θ + 0.1 T θ 0.5 T θ 0.3 θ + T
SIMC 2 T + θ 4 θ κ min T + θ 2 , 8 θ T θ 2 T + θ
Table 4. Multiple Dominant Pole Method for 2-DOF PID tuning.
Table 4. Multiple Dominant Pole Method for 2-DOF PID tuning.
ParameterValue
s 3 θ 1 2 T + 3 θ 2 + 1 4 T 2
K p 1 κ θ 2 T s 3 + θ 3 T + θ s 2 + θ s 1 e θ s
T i 2 · θ 2 T s 3 + θ 3 T + θ s 2 + θ s 1 θ s 3 θ T s + 2 T + θ
T d 1 2 · θ 2 T s 2 + θ 4 T + θ s + 2 θ + 2 T θ 2 T s 3 + θ 3 T + θ s 2 + θ s 1
λ min 2 T i s ,   1
μ min 1 T i T d s 2 ,   1
Table 5. Identified values of transfer-function constants from step tests.
Table 5. Identified values of transfer-function constants from step tests.
ParameterOperating ModeValue
Γ - 0.5441
τ - 26.85   min
L - 1.17   min
Ω Heating 144.93   ° C
Cooling 34.67   ° C
τ Heating 8.84   min
Cooling 18.17   min
L Heating 0.83   min
Cooling 1.00   min
Table 6. Initial PID settings for C T s , C D h s and C D c s derived from model-based tuning methods.
Table 6. Initial PID settings for C T s , C D h s and C D c s derived from model-based tuning methods.
MethodParameter C T s C D h s C D c s
ZN K p 50.610.090.63
T i 2.341.662.00
T d 0.590.420.50
λ 0.700.700.70
μ 0.000.000.00
CC K p 56.690.100.71
T i 2.831.972.41
T d 0.420.290.36
λ 0.700.700.70
μ 0.000.000.00
CHR K p 25.310.040.31
T i 26.858.8418.17
T d 0.590.420.50
λ 0.700.700.70
μ 0.000.000.00
AMIGO K p 19.350.030.24
T i 6.663.595.30
T d 0.580.410.49
λ 0.700.700.70
μ 0.000.000.00
SIMC K p 21.550.040.27
T i 9.366.648.00
T d 0.570.390.48
λ 0.700.700.70
μ 0.000.000.00
MDPM K p 32.720.060.41
T i 4.082.683.42
T d 0.300.210.26
λ 0.450.470.45
μ 0.660.700.67
All methods η 0.050.050.05
K b 0.901.321.06
ν 0.500.500.50
Table 7. Performance comparison of initial controller tunings based on standard error and control effort indicators.
Table 7. Performance comparison of initial controller tunings based on standard error and control effort indicators.
MethodISEIAEITAETV
ZN24,041.481215.3031,680.383462.21
CC23,895.091184.0629,363.433875.00
CHR28,697.201492.3137,997.72820.81
AMIGO23,484.531040.1117,875.051213.74
SIMC23,583.20979.8713,136.75851.85
MDPM23,983.111200.7931,059.626190.95
Table 8. Final tuned controller parameters and performance indicators.
Table 8. Final tuned controller parameters and performance indicators.
PIDPerformance Indicators
K p T i T d λ μ η K b ν ISEIAEITAETV
C T s 21.978.020.440.380.000.060.600.55
C D h s 0.056.810.360.730.090.041.300.5522,148.04921.3312,128.27314.52
C D c s 0.267.220.530.690.170.060.960.58
Table 9. Summary of tracking performance metrics for the two 36-day validation tests.
Table 9. Summary of tracking performance metrics for the two 36-day validation tests.
MetricTest 1Test 2Mean
MAE0.2217 °C0.1588 °C0.1903 °C
MedAE0.1305 °C0.0700 °C0.1002 °C
MSE0.1315 °C20.0864 °C20.1089 °C2
RMSE0.3626 °C0.2939 °C0.3282 °C
Bias−0.1918 °C−0.1024 °C−0.1471 °C
SD0.3082 °C0.2759 °C0.2921 °C
R 2 0.99810.99890.9985
Table 10. Performance comparison between baseline (ZN-tuned) and optimized PID controllers over a 24-h test.
Table 10. Performance comparison between baseline (ZN-tuned) and optimized PID controllers over a 24-h test.
MetricBaseline PIDOptimized PID
MAE2.7377 °C0.5438 °C
MedAE2.1808 °C0.3047 °C
RMSE3.5425 °C1.3659 °C
Bias−1.6395 °C−0.4111 °C
SD3.1425 °C1.3030 °C
R 2 0.89710.9804
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Garrido-López, J.M.; Ramallo-González, A.P.; Jiménez-Buendía, M.; Toledo-Moreo, A.; Torres-Sánchez, R. Reproducing Cold-Chain Conditions in Real Time Using a Controlled Peltier-Based Climate System. Sensors 2025, 25, 6689. https://doi.org/10.3390/s25216689

AMA Style

Garrido-López JM, Ramallo-González AP, Jiménez-Buendía M, Toledo-Moreo A, Torres-Sánchez R. Reproducing Cold-Chain Conditions in Real Time Using a Controlled Peltier-Based Climate System. Sensors. 2025; 25(21):6689. https://doi.org/10.3390/s25216689

Chicago/Turabian Style

Garrido-López, Javier M., Alfonso P. Ramallo-González, Manuel Jiménez-Buendía, Ana Toledo-Moreo, and Roque Torres-Sánchez. 2025. "Reproducing Cold-Chain Conditions in Real Time Using a Controlled Peltier-Based Climate System" Sensors 25, no. 21: 6689. https://doi.org/10.3390/s25216689

APA Style

Garrido-López, J. M., Ramallo-González, A. P., Jiménez-Buendía, M., Toledo-Moreo, A., & Torres-Sánchez, R. (2025). Reproducing Cold-Chain Conditions in Real Time Using a Controlled Peltier-Based Climate System. Sensors, 25(21), 6689. https://doi.org/10.3390/s25216689

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop