170
Views
0
CrossRef citations to date
0
Altmetric
Research Articles

Code generation for embedded predictive control of gas water heaters

ORCID Icon, ORCID Icon, ORCID Icon & ORCID Icon
Pages 73-86 | Received 19 Apr 2023, Accepted 07 Nov 2023, Published online: 14 Dec 2023
 

Abstract

Conventional control strategies usually employed in tankless gas water heaters present difficulty in controlling the hot water temperature when subjected to sudden changes in water flow rate. Inadequate control leads to temperature overshoots and undershoots with long settling times that severely affect the user comfort, increasing water and energy wastage and associated gas emissions. A strategy based on model predictive control is presented to reduce the impact of changes in hot water demand. A semi-empirical model, parameterized with experimental data and compatible with real-time simulation, is used for the heat cell. A tailored state observer is proposed, considering time-varying delays characterizing this thermal process. An automatic code generation software tool was developed for the embedded implementation of gas water heater predictive controllers. Numerical simulations and hardware-in-the-loop experiments were established to evaluate conventional and predictive control strategies. It was demonstrated that embedded model predictive control could be successfully implemented on computationally limited microcontrollers, even for thermal systems with extensive varying time delays. Predictive control has shown significant performance improvements, with decreased temperature fluctuations, a gain in comfort index from 36% to 75% and a reduction of up to 32 s in the settling time.

Disclosure statement

The authors report there are no competing interests to declare.

Additional information

Funding

This work was supported by European Regional Development Fund, CENTRO-01-0145-FEDER-022083 and POCI-01-0247-FEDER-007678; Fundação para a Ciência e a Tecnologia, UIDB/00481/2020, UIDP/00481/2020, and SFRH/BD/145713/2019.

Log in via your institution

Log in to Taylor & Francis Online

PDF download + Online access

  • 48 hours access to article PDF & online version
  • Article PDF can be downloaded
  • Article PDF can be printed
USD 61.00 Add to cart

Issue Purchase

  • 30 days online access to complete issue
  • Article PDFs can be downloaded
  • Article PDFs can be printed
USD 78.00 Add to cart

* Local tax will be added as applicable

Related Research

People also read lists articles that other readers of this article have read.

Recommended articles lists articles that we recommend and is powered by our AI driven recommendation engine.

Cited by lists all citing articles based on Crossref citations.
Articles with the Crossref icon will open in a new tab.