EcoRenovator  

Go Back   EcoRenovator > Improvements > Appliances & Gadgets
Advanced Search
 


Blog 60+ Home Energy Saving Tips Recent Posts Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Display Modes
Old 03-29-11, 10:54 PM   #1
Daox
Administrator
 
Daox's Avatar
 
Join Date: Aug 2008
Location: Germantown, WI
Posts: 5,525
Thanks: 1,162
Thanked 374 Times in 305 Posts
Default Daox's diy arduino thermal differential controller

We have a great thread that contains lots of info on thermal differential controllers here. However, I wanted to start a thread dedicated to my own development of a thermal differential controller that I'll be using for my attic heat reclamation project.

Tonight I setup a simple circuit that tested the operation of the differential controller and it worked great. Its very simple and adding features later on won't be a big deal at all. I am using the arduino since I know how to use it, its cheap, and it can do everything I'd ever want to be able to do with a thermal differential controller. The temperature sensors are LM35 sensors. They cost a bit more than the thermistors ($1.70 vs $.20) I had planned on using on the controller before, but they are much easier to use while programming and will probably give a better signal over long wire runs. The 120V relay I'm planning on using is a solid state relay (SSR) that the arduino can power directly. The 5V power supply is an old cell phone charger.

As for the operation of the controller, for now its a very simple setup. When the temperature of the attic gets 3C/5.4F higher than the house, the relay kicks on whatever is connected to it. In my case right now, that is two bathroom vent fans. Once the temperature of the attic drops down below the temperature of the house, the relay powers down the fans. There is also a 30 second minimum on time just in case to prevent any odd start/stop situations.

I'm also thinking about adding a LED that indicates that the fans are on, but I'm not sure if that'll be needed as you'll probably hear the air rushing out of the vent.


*** CURRENT BUILD INFO ***

Schematic:




Parts List:

Here is a parts list of what you'll need. I've linked to a few places where I've bought things from before.


The total for these items comes to ~$40 plus shipping which shouldn't be too bad. It can definitely be done cheaper if you go with a cheaper arduino or find parts to use.


Arduino program code

Code:
/* Thermal Differential Controller

  The program monitors two temperature sensors and
  activates a relay when one sensor is warmer than
  the other.
*/

int SsensorPin = 4;  // the pin to input attic temperature
int TsensorPin = 5;  // the pin to input kitchen temperature
int RelayPin = 2;  // the pin to operate the relay
int ledPin = 13;  // led pin (verify fan on condition)

int Ssensor = 0;  // variable to store the value of the attic temperature
int SensorDiff = 0;  // variable to store the Ssensor value plus differential (Diff)
int Tsensor = 0;  // variable to store the value of the kitchen temperature
int Diff = 3.0;  // temperature difference that must exist between attic and kitchen before relay enables (degrees C)


void setup() {
  pinMode(SsensorPin, INPUT);
  pinMode(TsensorPin, INPUT);
  pinMode(RelayPin, OUTPUT);
  pinMode(ledPin, OUTPUT);
  
  // Serial.begin(9600);
  
  digitalWrite(RelayPin, LOW);
  
}

void loop() {
  
  // read sensor inputs and assign to variables
  Ssensor = analogRead(SsensorPin) / 2;
  Tsensor = analogRead(TsensorPin) / 2;
  
  // add temperature difference to Ssensor value
  SensorDiff = Ssensor - Diff;

  // send temperature signals back to computer
  /*
  Serial.print(Ssensor);
  Serial.print(", ");
  Serial.print(Tsensor);
  Serial.print(", ");
  Serial.println(SensorDiff);
  delay(1000);
  */

  // if attic is warmer than kitchen sensor, enable relay
  if (SensorDiff > Tsensor  && Tsensor < 27) {
      digitalWrite(RelayPin, HIGH);
      digitalWrite(ledPin, HIGH);
      delay(1000);
    }
  
  // if attic sensor is cooler than kitchen sensor, disable relay
  if (Ssensor < Tsensor || Tsensor > 27 ) {
    digitalWrite(RelayPin, LOW);
    digitalWrite(ledPin, LOW);
    delay(1000);
  }
}

Attached Thumbnails
Click image for larger version

Name:	schematic.jpg
Views:	6563
Size:	21.3 KB
ID:	1384  
__________________
Current project -
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
&
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Last edited by Daox; 04-23-14 at 03:08 PM..
Daox is offline   Reply With Quote
The Following User Says Thank You to Daox For This Useful Post:
jeff5may (03-11-21)
Old 03-30-11, 09:12 AM   #2
Daox
Administrator
 
Daox's Avatar
 
Join Date: Aug 2008
Location: Germantown, WI
Posts: 5,525
Thanks: 1,162
Thanked 374 Times in 305 Posts
Default

One feature I am thinking of adding is a way to keep track of how long the fans are on. This will allow me to see how well it is working, and get an idea of what kind of weather it takes to get heat out of the attic. Ideally, this would be from an LCD, but I don't know how to program one yet.

Perhaps for now, I'll just keep the laptop connected to it for the first couple days and it can log the on time directly with the serial connection.
__________________
Current project -
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
&
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Daox is offline   Reply With Quote
Old 03-30-11, 03:45 PM   #3
AC_Hacker
Supreme EcoRenovator
 
AC_Hacker's Avatar
 
Join Date: Mar 2009
Location: Portland, OR
Posts: 4,004
Thanks: 303
Thanked 724 Times in 534 Posts
Default

Quote:
Originally Posted by Daox View Post
One feature I am thinking of adding is a way to keep track of how long the fans are on.
How about this?


-AC_Hacker
Attached Thumbnails
Click image for larger version

Name:	counter.jpg
Views:	5492
Size:	26.7 KB
ID:	1387  
__________________
I'm not an HVAC technician. In fact, I'm barely even a hacker...
AC_Hacker is offline   Reply With Quote
Old 03-30-11, 11:33 PM   #4
Daox
Administrator
 
Daox's Avatar
 
Join Date: Aug 2008
Location: Germantown, WI
Posts: 5,525
Thanks: 1,162
Thanked 374 Times in 305 Posts
Default

Yes, that is exactly the type of thing I was thinking about. Perhaps I'll pick one up. I searched on the electronics sites I go to and all their time meters were much more expensive.

Edit: And now I see why its so cheap, item located in China. Not sure I want to wait that long.

A friend of mine suggested I use a few LEDs and output the time (perhaps in 1/2 hr segments) in binary. Doable, and easy enough, but not so easy to read at a glance, haha. I do have a couple LCD screens laying around. Perhaps its time to learn to use them.
__________________
Current project -
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
&
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Last edited by Daox; 03-30-11 at 11:37 PM..
Daox is offline   Reply With Quote
Old 03-31-11, 09:15 AM   #5
Daox
Administrator
 
Daox's Avatar
 
Join Date: Aug 2008
Location: Germantown, WI
Posts: 5,525
Thanks: 1,162
Thanked 374 Times in 305 Posts
Default

Last night I picked up the next thing I need for the controller, wire! It seems simple enough. I needed something with 3 conductors (wires) for the temperature sensor at least 25 ft long to make the run from the attic to the kitchen, and I wasn't exactly sure what I was going to use when a friend suggested network cable. That had way more wires than needed, so I found myself a 50ft length of telephone wire with 4 conductors. I even found it in a color that'll somewhat match the color of the chimney brick.
__________________
Current project -
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
&
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Daox is offline   Reply With Quote
Old 03-31-11, 09:57 AM   #6
strider3700
Master EcoRenovator
 
Join Date: Dec 2008
Location: Vancouver Island BC
Posts: 745
Thanks: 23
Thanked 37 Times in 30 Posts
Default

that's what I used for all of my wire runs. 25' should be no problem.
strider3700 is offline   Reply With Quote
Old 04-02-11, 10:48 AM   #7
Daox
Administrator
 
Daox's Avatar
 
Join Date: Aug 2008
Location: Germantown, WI
Posts: 5,525
Thanks: 1,162
Thanked 374 Times in 305 Posts
Default

Here is a bit of an updated schematic specific to the attic heat project.




In addition to this, I'm considering adding an outdoor temperature sensor. This will allow me to program logic that will see the outdoor temperature, and if its warmer than the kitchen to not kick in the fans. At some point I'll want to stop heating the kitchen, and it would be nice if it was automatic to squeeze a bit more heat out of things when the temperatures are swinging to and fro.
Attached Thumbnails
Click image for larger version

Name:	schematic.jpg
Views:	8886
Size:	22.8 KB
ID:	1396  
__________________
Current project -
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
&
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Last edited by Daox; 04-02-11 at 10:50 AM..
Daox is offline   Reply With Quote
Old 04-02-11, 02:32 PM   #8
Piwoslaw
Super Moderator
 
Piwoslaw's Avatar
 
Join Date: May 2009
Location: Warsaw, Poland
Posts: 964
Thanks: 189
Thanked 111 Times in 87 Posts
Default

An outdoor temp sensor is a good idea. It will let you program the Arduino to pull warm air from the kitchen in the summer when it starts to cool in the evening. Can the fans work in reverse, or maybe they can be seasonally turned around?
__________________
Ecorenovation - the bottomless piggy bank that tries to tame the energy hog.

Last edited by Piwoslaw; 04-02-11 at 02:35 PM..
Piwoslaw is offline   Reply With Quote
Old 04-02-11, 02:56 PM   #9
Daox
Administrator
 
Daox's Avatar
 
Join Date: Aug 2008
Location: Germantown, WI
Posts: 5,525
Thanks: 1,162
Thanked 374 Times in 305 Posts
Default

That would be a great idea. However, I would have to find a way to reverse the fans. They only blow in one direction.
__________________
Current project -
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
&
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Daox is offline   Reply With Quote
Old 04-02-11, 03:38 PM   #10
Piwoslaw
Super Moderator
 
Piwoslaw's Avatar
 
Join Date: May 2009
Location: Warsaw, Poland
Posts: 964
Thanks: 189
Thanked 111 Times in 87 Posts
Default

Quote:
Originally Posted by Daox View Post
That would be a great idea. However, I would have to find a way to reverse the fans. They only blow in one direction.
I think you could conjure up some summertime adaptors for the ductwork. Something that will allow the fans to be laid on their sides, pulling air from (instead of pushing it into) the chimney.

__________________
Ecorenovation - the bottomless piggy bank that tries to tame the energy hog.
Piwoslaw is offline   Reply With Quote
Reply


Tags
arduino, controller, differential, thermal

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Ad Management by RedTyger
Inactive Reminders By Icora Web Design