element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum Do you have a question on Embedded electronics and controls? Ask our Expert, Paul Clarke
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 126 replies
  • Subscribers 508 subscribers
  • Views 10571 views
  • Users 0 members are here
  • skills
  • c
  • hvac
  • digital
  • engineer
  • expert
  • microprocessor
  • answer
  • control
  • thermal_management
  • embedded_system
  • embedded
  • thermal
  • electronics
  • paul_clarke
  • assembly
  • solutions
  • rac
  • software
  • develop
  • question
Related

Do you have a question on Embedded electronics and controls? Ask our Expert, Paul Clarke

pjclarke
pjclarke over 14 years ago

This thread has been closed to new questions.

However, we welcome you to Post Your Question about Embedded in the element14 Community Embedded group. You'll find many fellow members and experts who have just the answer you're looking to find! 

 

Thank You, Your Friends at element14 Community

image

Paul Clarke

Paul has 20+ years of working as a digital electronics engineer and has strong software skills in assembly and C for embedded systems. Currently developing embedded electronics for thermal management control solutions for the air movement industry (HVAC & RAC).




  • Sign in to reply
  • Cancel
Parents
  • e14 Contributor
    e14 Contributor over 14 years ago

    Mr. Clarke,

     

    I have a relay and A/D board controlling my HVAC system at my house.  I have the software up an running, and it works fairly well, but I am having some trouble when the system needs to switch from heating to cooling or back.  There is a sensor in each one of 8 rooms, and if the temperature in any room is out of bounds, the system turns on the air handlers.  I have a database which sets the parameters for each room.  In addition to the sensor ID and a pair of time control parameters, there are four numbers associated with each sensor.  The first is a Boolean which determines whether the room is occupied or unoccupied.  The other three are temperature limits.  The first is the target temperature for the room when occupied.  When in heating mode, if the temperature in the room is lower than this, and the room is occupied, the room makes a call to the air handler.  In cooling mode the call is made if the temperature is higher than the target value.  The second number is the unoccupied minimum.  If the room is unoccupied, the system is in heating mode, and the temperature in the room is below this limit, the room makes a call.  The last number is the unoccupied maximum.  If the system is in cooling mode, the room is unoccupied, and the room temp is above the maximum, the call is made.  The problem manifests when the system has to decide to change from cooling mode to heating mode, or vice versa.  I've tried several approaches, and the best one so far is this:  There is a daytime and a night-time outside temperature target.  The daytime target is lower than the night target by three degrees, because the sun tends to heat the house, making it several more degrees warmer than ambient during the day.  Currently I have these set for 62F and 65F.  I then measure and record the outside temperature over the last 90 minutes.  I take the 15 minute average of temperatures 90 minutes ago, add the average tempertaure over the entire 90 minutes, and divide by two, allowing for a rapidly dropping temperature to have more weight than a slowly dropping one while still acounting for the fact there is a time lag in inside temperature trends due to the thermal mass of the interior of the house.  I then subtract the target temperature from the actual temprature in every occupied room and take the average, igoring any unoccupied rooms.  I take this number - which of course may be positive or negative, and add it to the weighted outside average.  If the resultant number is lower than the outside temperature target, then the system is switched to heating mode.

     

    Do you have a suggestion for a better way to switch the system from heating to cooling or vice-versa?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • pjclarke
    pjclarke over 14 years ago in reply to e14 Contributor
    Hi Irhorer,
     
    First off your project sounds great and nice to see people trying to do this at home.!
     
    Sounds like you have it working of sorts so far. Building controls are great fun and data is your friend here. While your solution sounds a little clunky it may actually be just as you need it. I like the sound of different limits for when someone is in the room. So I have some questions for you...
     
    I assume then the warm or cold air coming from the main air con unit goes to every room? Without dampers? I’m interested to know what happen if two rooms are asking for different things?
     
    Back to data – I’d be interested to see a log of temperatures and decisions, also a block diagram. Would help me understand it better before suggesting things to try.
     
    Hope that’s ok.
     
    Thanks
    Paul
     
    PS: I'm on Holiday for Christmas now, so apploigies in advance for slow answers to updates.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to pjclarke

    Actually, no, there are two air handlers, each servicing four rooms.  (There are actually more than 8 rooms, but these are the ony ones that are monitored.)  Each room makes the call to a specific air handler, but there is only one variable which controlls heating and cooling.  It's not very wise to run the heat on one and the AC on the other, as the heat from one set of rooms tends to leak generously into the others.  I also have dampers and booster fans in the system, but their operation is not relevant to the question of when to cool and when to heat.  They simply turn on or off as appropriate during the conditioning cycle, and that code is working perfectly well, as is the code which makes the calls for each room.  It is the decision point for cooling vs. heatig that is not working well.  When  the sun has gone down and the house is cooling, depending on the exact numbers I deploy into the working constants, the system may either switch to heating too soon, leaving some rooms overly warm (the heater does not come on, of course, but then neither does the AC because the system has switched to heating mode), or else the cooling cycle goes too long and some of the rooms get too cool, albeit passively.  The reverse is true when the temperature transitions from cool to hot outside.

     

    It may help you to take a look at the ststus screen from the thermostat programming utility.  You can view this at http://fletchergeek.homelinux.net.  You cannot see or manipulate the controls from your site (I haven't implemented logins, yet, and security is enabled), but it may give you an idea.  Ther is a little bug in the passive reporting that I need to stamp out. Your view does not show the correct occupied status.

     

    Here is the live schedule matrix:

     

    01 08 16 45 01 75 86 55
    02 07 00 00 00 75 86 55
    03 08 02 30 00 76 83 55
    04 07 02 00 01 75 85 55
    05 07 00 00 00 74 85 55
    06 08 12 30 00 78 83 55
    07 08 02 30 00 77 85 55
    08 07 00 00 00 77 85 55

     

    The fields are: Sensor number, Schedule area ( Sun, Mon, Tue,...Sat, Weekdays, Daily, Now), Hour, Minute, Occupied (1=yes), Target, Maximum, Minimum.  This data is fed from a master schedule which determines when the temperatures change and when the rooms become unoccupied.

     

    I understand perfectly well about the holidays.  I am in the same boat myself, so don't be surprised if it takes several days for me to respond.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to e14 Contributor

    Hi Paul,

     

    Was my question beneath you or something?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • pjclarke
    pjclarke over 14 years ago in reply to e14 Contributor

    As you had a answer or sorts then I guessed you were moving forward.

     

    To be totaly honest I would not have gone about this at all. However I'm a embeded electroincs engineer so have little transmsstion experiance - and these distances count as that.

     

    I would have put it over RS485 which can handel the SNR at this distance, but maybe not the data rate. Optics is another option but costly, What about over a network, VPN or even RF? but how would you get the DC voltages there?

     

    Your question is not beneath me, just not maybe my expert area I'm not one to just cast option on things I'm not 100% on.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to pjclarke

    If I may be so bold, it happens I am a qualified expert on transmission systems, so I hope I am not out of line if I interject something.  If this is a commercial or industrial application, fiber is really not that expensive.  If this is for a personal project, it's a little different matter, but even then it is not all that far beyond the pale.  Non-plenum duplex fiber cable can be purchsed retail in lengths of 5000ft or longer for about $0.30 a foot.  Of course that means one will have to splice up to 5 reals together.  At this rate, 25Kft will cost about $7500.  Of course this is more expensive than coax, but not hideously so.  I would not attempt to supply power to the end terminmation remotely.  Rather, I would obtain a local source of power, even if it has to be solar.  Ethernet media converters can be had foir under $200 each, and there are standard devices available to convert from analog to digital signals and back.  For more in-depth analysis, I would need more details of the exact nature of the signals.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to pjclarke

    If I may be so bold, it happens I am a qualified expert on transmission systems, so I hope I am not out of line if I interject something.  If this is a commercial or industrial application, fiber is really not that expensive.  If this is for a personal project, it's a little different matter, but even then it is not all that far beyond the pale.  Non-plenum duplex fiber cable can be purchsed retail in lengths of 5000ft or longer for about $0.30 a foot.  Of course that means one will have to splice up to 5 reals together.  At this rate, 25Kft will cost about $7500.  Of course this is more expensive than coax, but not hideously so.  I would not attempt to supply power to the end terminmation remotely.  Rather, I would obtain a local source of power, even if it has to be solar.  Ethernet media converters can be had foir under $200 each, and there are standard devices available to convert from analog to digital signals and back.  For more in-depth analysis, I would need more details of the exact nature of the signals.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube