HVAC Performance Monitor

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
User avatar
ThomasB
Normal user
Posts: 1362
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HVAC Performance Monitor

#51 Post by ThomasB » 27 Jun 2024, 00:06

Nice. I wonder what your signals look like using an o-scope.

I see what you're doing. You are attempting to shame me into using I2C. Challenge accepted, I think.

For your sake, I hope the I2C gods are friendly to my long cables.

Be forewarned. I will hold you accountable if it goes badly.

- Thomas

TD-er
Core team member
Posts: 9884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HVAC Performance Monitor

#52 Post by TD-er » 27 Jun 2024, 00:09

You know where my house lives and you're more than welcome for a good cup of coffee to discuss it when needed :)

TD-er
Core team member
Posts: 9884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HVAC Performance Monitor

#53 Post by TD-er » 27 Jun 2024, 00:17

Screenshot 2024-06-27 001619.png
Screenshot 2024-06-27 001619.png (331.03 KiB) Viewed 14502 times
Top is the digital signal and bottom the analog

TD-er
Core team member
Posts: 9884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HVAC Performance Monitor

#54 Post by TD-er » 27 Jun 2024, 00:21

100 kHz I2C
100 kHz I2C
Screenshot 2024-06-27 001858.png (519.83 KiB) Viewed 14500 times
50 kHz I2C
50 kHz I2C
Screenshot 2024-06-27 002056.png (290.19 KiB) Viewed 14500 times

User avatar
ThomasB
Normal user
Posts: 1362
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HVAC Performance Monitor

#55 Post by ThomasB » 27 Jun 2024, 00:26

Thanks for the invite. I like my coffee with milk foam.

Oh boy. Those 400KHz analog shark fins can be improved. I recommend reducing the I2C pullup resistor values. The sensor board probably has 10K ohms installed, which is not ideal for long cables. I suggest trying 2.2K.

BTW, I'm still waiting for the parts from AliExpress.

- Thomas

User avatar
Ath
Normal user
Posts: 4330
Joined: 10 Jun 2018, 12:06
Location: NL

Re: HVAC Performance Monitor

#56 Post by Ath » 29 Jun 2024, 16:11

Ath wrote: 22 Jun 2024, 22:32
ThomasB wrote: 22 Jun 2024, 22:22
If the brightness and size of that panel is of your liking, then just use that.
Mine is only 2.4". AliExpress has IPS HD 3.5 inch SPI (ILI9488) panels for under $9 USD. So I put one in my cart for a future order.
The ILI9488 displays are a real PITA, software-wise, so better get an ILI9341/ILI9481/ILI9486 (P095) or ST77xx (P116) display unit.
I've fixed the ILI9488 support in this PR #5079, and am working on the ILI9486 support, as that's not actually tested over here, (just implemented the matching initialization :?) A build is available for testing from this GH Actions run (didn't include the Collection-fix of the other PR... so best use the ESP32 Display build or an ESP32 MAX build for 8MB/16MB ESP32's for testing)
/Ton (PayPal.me)

User avatar
ThomasB
Normal user
Posts: 1362
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HVAC Performance Monitor

#57 Post by ThomasB » 29 Jun 2024, 17:50

Thanks. Because of your warning about the 9488, I ordered a 9486 display. I haven't received it yet.

- Thomas

User avatar
Ath
Normal user
Posts: 4330
Joined: 10 Jun 2018, 12:06
Location: NL

Re: HVAC Performance Monitor

#58 Post by Ath » 01 Jul 2024, 21:33

ThomasB wrote: 22 Jun 2024, 20:38 Any chance there is a SPI based BMP3xx plugin in the wild? Even if experimental. SPI (instead of I2C) would simplify my hardware.

- Thomas
Despite the fact that TD-er has already proven that 2m I2C wiring shouldn't be problematic with these BMP3xx sensors, I've added the SPI version of the BMP3xx plugin (and renamed P154 to show it's the I2C version).
[P172] Environment - BMP3xx (SPI) PR is here #5080, and an Actions run is baking over here, waiting for you to test and compare reliability ;)
/Ton (PayPal.me)

TD-er
Core team member
Posts: 9884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HVAC Performance Monitor

#59 Post by TD-er » 01 Jul 2024, 22:46

I am also quite interested to see which one is more stable...
Especially since the SPI bus requires both clock and data (and CS) to remain in sync at higher frequencies.
And you can't easily split these via some multiplexer like on I2C, so you will see some capacitance effects or maybe even reflections on the signal lines.
Maybe you need to add some resistor in series with clock/data/CS lines to prevent ringing.

User avatar
ThomasB
Normal user
Posts: 1362
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HVAC Performance Monitor

#60 Post by ThomasB » 02 Jul 2024, 00:01

I will try out the SPI version and report back. Started working on another project, so please be patient.

- Thomas

User avatar
ThomasB
Normal user
Posts: 1362
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HVAC Performance Monitor

#61 Post by ThomasB » 16 Jul 2024, 16:26

Feedback for @Ath: The SPI plugin is working fine. Both pressure and temperature are accurate. If you have any specific tests for me to run then just let me know.

I expect to start construction of the HVAC monitor after I finish a couple other projects. Thanks for adding SPI to the BMP390.

- Thomas

User avatar
Ath
Normal user
Posts: 4330
Joined: 10 Jun 2018, 12:06
Location: NL

Re: HVAC Performance Monitor

#62 Post by Ath » 16 Jul 2024, 17:06

ThomasB wrote: 16 Jul 2024, 16:26 Feedback for @Ath: The SPI plugin is working fine. Both pressure and temperature are accurate. If you have any specific tests for me to run then just let me know.

I expect to start construction of the HVAC monitor after I finish a couple other projects. Thanks for adding SPI to the BMP390.
Thanks for your confirmation.
While you where busy I have ordered and received a BMP388 and a BMP390L, and both are working fine, when using SPI as well as via I2C connection.
/Ton (PayPal.me)

User avatar
ThomasB
Normal user
Posts: 1362
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HVAC Performance Monitor

#63 Post by ThomasB » 04 Feb 2025, 21:31

Meantime, five months later ...

The HVAC Performance Monitor system was finished and installed a few days ago. And it is working great. So I thought I would share the ending to this story.

One of the reasons for the late completion is because I didn't want to hack my HVAC system until the 2-year installation warranty expired. It's a new home, built during the C19 pandemic. And the build quality of everything in this house is sub-par, because of labor and supply chain issues. The reason for developing the HVAC performance monitor was because my system didn't work to my satisfaction, a complaint many of my neighbors had with their new homes.

Keep in mind that I live in the USA on the west coast. HVAC system installation methods and their technology vary throughout this country. In my location the most commonly installed system is a "package" unit that contains a natural gas fired furnace for heating, ventilation blower for conditioned air distribution, and refrigerant evaporator (A-coil) for summer cooling.

In my area these get tightly crammed into the attic, along with a lot of big flexible ductwork that connects the system to ceiling mounted air returns and supply registers.

HVAC System in the attic
HVAC System in the attic
Furnace_Layout1.jpg (218.9 KiB) Viewed 7753 times

Hardware construction was uneventful. Simple point-to-point wiring on a perfboard. The case and sensor probe (wand) housings were 3D printed.

Performance Monitor System
Performance Monitor System
Full_System1.jpg (323.47 KiB) Viewed 7753 times

Unfortunately SPI communication to the three BMP390 sensors refused to work with the long cables. The SPI problem (and solution) was discussed here:
viewtopic.php?t=10607


The BMP390 Sensors measure air pressure and temperature. These are mounted at the end of long "wands" that probe deep into air passage cavities at useful locations: Air Return, Heat Exchanger, and Air Supply. This required drilling several holes into the sheet metal cabinet. Photo below shows two of the sensors.

Sensors mounted on sheet metal cabinet
Sensors mounted on sheet metal cabinet
Sensor_Installation2.jpg (210.54 KiB) Viewed 7753 times

The three wands (BMP390 sensor probes) are permanently mounted inside the HVAC system with the sensor facing away from the air direction. This trick, along with the placement location, avoids air turbulence from affecting the measurements. The heatshrink covering the BMP390 sensors was cut away to allow airflow to easily reach the sensor chip.

BMP390, Tip of the measuring wand.
BMP390, Tip of the measuring wand.
BMP390_1.jpg (92.88 KiB) Viewed 7753 times


More to follow ...

User avatar
ThomasB
Normal user
Posts: 1362
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HVAC Performance Monitor

#64 Post by ThomasB » 04 Feb 2025, 21:43

A 3-channel optoisolator board is used to monitor the HVAC system's three operational modes (Heat,Cool,Fan Circulation).

OptoIsolator Board.
OptoIsolator Board.
OptoBoard3b.png (222.66 KiB) Viewed 7749 times

There's also a Dallas DS18B20 temperature sensor mounted on the controller's 3D printed enclosure for measuring attic temperature. A NEOPixel (addressable RGB LED) on the front of the enclosure shows system mode (Heat, Cool, Fan). An external WiFi antenna was used on the ESP32 for increased RF signal. Everything is powered from the 24VAC transformer that is inside the factory installed furnace control board.

User avatar
ThomasB
Normal user
Posts: 1362
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HVAC Performance Monitor

#65 Post by ThomasB » 04 Feb 2025, 21:56

Using ESPEasy to run the show, this system can report several measurements in real-time. As follows:

1. External Static Pressure at three places (Heat Exchanger, A-Coil, Full System end-to-end).
2. Delta-T (Temperature differential) during Heat and Cool cycles.
3. Air Flow CFM (cubic feet per minute).
4. Cycle Run Times.

This data helps me in a couple ways. It initially showed me what I already knew: It's not a great system. But in the future I will be able to monitor the data to determine if the disposable air filters, heat exchanger, and cooling A-Coil are dirty. And perhaps detect if the system is failing.

TL;DR Guy builds HVAC monitor that is similar to what expensive commercial systems have. He Likes it. Goes online and thanks ESPEasy Devs for making it all possible.

- Thomas

TD-er
Core team member
Posts: 9884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HVAC Performance Monitor

#66 Post by TD-er » 04 Feb 2025, 22:02

Great writeup :)

Good to hear it is now working well.

User avatar
ThomasB
Normal user
Posts: 1362
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HVAC Performance Monitor

#67 Post by ThomasB » 04 Feb 2025, 22:30

Thanks. I'm happy (and surprised) that there was a happy ending to the SPI problem.

One interesting thing I learned in this project is that I could accurately calculate system air flow volume without the usual measuring methods. Because the furnace people are absolute geniuses.

The gas furnace's heat exchanger is a calibrated chamber with known air flow characteristics. The manufacture supplies a data table (in the installation manual) that provides the air flow value, measured in CFM, when blower motor speed and external static pressure are known.

Motor speed is found by checking the jumper wire speed settings on the unit's controller board and static pressure is provided by the BMP390 sensors. Think of external static pressure as a "resistance" to air flow.

I initially thought I would need to use a lookup table, or create a quadratic formula, for emulating the manufacturer's data table values. But this was solved with simplified linear equations that are only 2% error, worst case. There's a different formula for the three blower motor speeds. BTW, I used Microsoft Copilot to improve the equations, which initially had 5% error. AI is both evil and helpful. :)

Regardless of the cycle mode (heat,cool, circulation), the blower forces all air through the heat exchanger. ESPEasy calculates the CFM value during each of these cycles and reports them. Like magic.

- Thomas

User avatar
ThomasB
Normal user
Posts: 1362
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HVAC Performance Monitor

#68 Post by ThomasB » 23 Feb 2025, 19:16

Thanks to Chromo23's EasyFetch GUI, a useful furnace interface has been created. The data presentation is concise and pleasant looking.

EasyFetch GUI
EasyFetch GUI
EasyFetch_GUI1.jpg (64.89 KiB) Viewed 2371 times

The HVAC monitor has been working perfectly. By observing the data, I've determined the static pressure thresholds that indicate when the disposable air filters need to be changed.

So far only the heating and Fan (air circulation) modes have been monitored. In a few months it will be hot enough to test out the cooling system.

- Thomas

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests