Brian Dempsey
In part one of this series, I discussed a TI reference design used for predictive maintenance with respect to filter changes. One of the most obvious questions that comes to mind is, “How can this design be implemented on any system and still give accurate results?” The most logical way (no pun intended) is to implement a software-based algorithm that is directly responsible for defining the typical operating conditions of a heating, ventilation, and air conditioning (HVAC) system.
In order to develop this algorithm, let’s first define the environmental variables that will play a part in system-input changes:
There are countless other variables I could include in this list, but for the sake of simplicity, let’s use these as the primary variables of the system and build up the first part of the logic, as shown in Figure 1.
Once the system is running and the user presses the reset button on the board, the first thing the system will do is begin taking analog-to-digital converter (ADC)readings from the sensors: in this case, two piezoelectric vibration sensors and a single analog output temperature sensor. I’ve also included a counter for averaging purposes down the road in the design. The first decision the algorithm makes is based on the temperature. Because the lack of airflow through a dirty filter can ultimately cause the evaporator to freeze up, you have to address that issue first. You want to make sure that the temperature stays above freezing, or, if the system is frozen, that it cannot run again until it reaches a suitable thaw temperature. I’ve added a thaw mode in the event of a frozen coil – the worst-case scenario. Figure 2 shows the updated algorithm.
Now, let’s compare the ADC value to an absolute threshold based on freezing conditions. This can be a static threshold because, in any system, freezing is freezing. As stated earlier, if this worst-case situation occurs, the system will automatically go into a thaw mode where the user can release the condenser contactor power, thus disallowing additional freezing in the system. The temperature sensor value is what’s important at this point, so the sensor polling is now only focused on that. The thaw temperature is a quasi-static variable that can be set based on how long the user wants the system to remain disabled after an evaporator freeze. Now that I’ve addressed the possibility of a frozen coil, I can add the rest of the logic for the airflow sensors. Figure 3 shows the final flow for this simplified calibration algorithm.
This final iteration adds a conditional statement for the internal counter, along with the respective action for each case. This is where the heart of system calibration occurs. Assuming that there are no freeze conditions in the system, the ADC values for each sensor are pushed into local software variables. If the counter limit is not reached, the value read for each sensor is added to the previous variable value and averaged. For the temperature, the variable is only modified when the sensor reads a lower temperature value than the current one.
As far as the counter’s maximum variable, it is up to the user how many samples to take during the calibration period. A longer sample period can provide more accurate conditions than a short sample period.
Once the counter limit is reached, the obtained values are pushed to variable values for comparison against future cycle values. Once the threshold is crossed – say for a minimum differential, as in the HVAC Coil Airflow Sensor Reference Design for Predictive Maintenance in Air Filter Replacement, the system alerts the homeowner of an airflow issue. This simplified calibration can be used in conjunction with more complex main algorithms to increase maintenance prediction accuracy.
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATASHEETS), DESIGN RESOURCES (INCLUDING REFERENCE DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS” AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable standards, and any other safety, security, or other requirements. These resources are subject to change without notice. TI grants you permission to use these resources only for development of an application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these resources.
TI’s products are provided subject to TI’s Terms of Sale (www.ti.com/legal/termsofsale.html) or other applicable terms available either on ti.com or provided in conjunction with such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for TI products.
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2023, Texas Instruments Incorporated