DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • How To Validate HTTP Post Request Body - Restful Web Services With Spring Framework | Spring Boot
  • Choosing a Library to Build a REST API in Java
  • RESTful Web Services With Spring Boot: Reading HTTP POST Request Body
  • GraphQL vs REST API: Which Is Better for Your Project in 2025?

Trending

  • Part 4: Multi-Agent Orchestration — Pairing Goose With Quarkus Flow State Machines
  • Stop Writing Database Migration Scripts: Declarative Schema Sync for Java
  • How to Migrate From C/C++ to Rust: A Practical Guide for Embedded IoT Systems
  • Solving Comprehension Debt in AI-Generated Codebases

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Data Engineering
  3. AI/ML
  4. Building a Mock HVAC for Smart Thermostat Demos

Building a Mock HVAC for Smart Thermostat Demos

Here's a handy tutorial that shows you step-by-step how to set up and wire a mock HVAC system for shows on the road.

By 
James Ward
·
Aug. 04, 16 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
4.8K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

Recently, I needed to create a mock HVAC system so that I could have a portable smart thermostat for various demos. I searched around but couldn't find any such thing. So, with some sleuthing and the help of my friend Bruce Eckel, I was able to build a simple system that powers a smart thermostat and simulates a heating system. This post will document how to do this in case anyone else ever needs such a thing.

Modern HVAC systems typically provide 24-volt AC power to thermostats, so the first thing you will need is a 120-VAC-(wall power)-to-24-VAC transformer. I used this one.

Then, you'll need something that can simulate a single-stage heating system. A smart thermostat uses 24-volt AC to flip on and off a relay (the electronic component that uses one power current to toggle another, usually stronger, current). I could have used an actual relay for this, but decided to go with something easier, a red LED light that runs on 24-volt AC.

For my smart thermostat, I used an ecobee3 (due to their REST APIs), but a Nest should work as well.

Now, to wire it together, pick a terminal on the transformer to be the "common" and run two wires, one to the LED and one to the "C" terminal on the smart thermostat. Then, run a wire from the other side of the LED to the "W1" terminal on the smart thermostat. And finally, connect the other terminal on the transformer to the "Rh" terminal on the smart thermostat. Like this:

Ecobee3_Demo_Wiring


Here is what it looks like wired together:
wiring


Once the smart thermostat is powered on and set up, the LED should turn on when the "heater" is on:
on


And turn off when the heater is off:
off


I hope that helps someone out. Let me know if you have any questions!

terminal LEd Autonomic computing NEST (software) Document REST POST (HTTP) Build (game engine) Web Protocols

Published at DZone with permission of James Ward. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • How To Validate HTTP Post Request Body - Restful Web Services With Spring Framework | Spring Boot
  • Choosing a Library to Build a REST API in Java
  • RESTful Web Services With Spring Boot: Reading HTTP POST Request Body
  • GraphQL vs REST API: Which Is Better for Your Project in 2025?

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook