EcoRenovator  

Go Back   EcoRenovator > Improvements > Geothermal & Heat Pumps
Advanced Search
 


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


Reply
 
Thread Tools Display Modes
Old 02-17-15, 07:55 PM   #21
buffalobillpatrick
Master EcoRenovator
 
Join Date: Mar 2014
Location: Florissant, Colorado
Posts: 599
Thanks: 814
Thanked 59 Times in 55 Posts
Default

Mike, Is this a good EEV?

http://www.emersonclimate.com/Docume...d-Electric.pdf

PID with PWM for 6sec. for the above EEV looks pretty easy.

Use a SSR that can withstand millions of cycles.

I also stole this code:

Code:
/********************************************************
 * Arduino PID Relay Output Example
 * The output is going to digital pin 6 which is controlling
 * a relay.
 * The current temperature, PSI etc............ is read via pin A0
 * 
 * The pid Library is designed to only output an analog value,
 * but the relay can only be On/Off.
 *
 * To connect them together we use "time proportioning control"  
 * It's a really a long duration version of Pulse Width Modulation (PWM).
 * First we decide on a window size (6000mS say.) 6 seconds
 * We then set the pid to adjust its output between 0 and that window size.  
 * Lastly, we add some logic that translates the PID
 * output into "Relay On Time" with the remainder of the 
 * window being "Relay Off Time"
 ********************************************************/



#include <PID_v1.h>
#define RelayPin 6    //D6
#define T_pin   A0    //A0

//Define Variables we'll be connecting to
double Setpoint, Input, Output;

//Define the Tuning Parameters
double Kp=2, Ki=5, Kd=1;

//Specify the PID links
PID myPID(&Input, &Output, &Setpoint, Kp, Ki, Kd, DIRECT);

int WindowSize = 6000;          //6 sec

unsigned long windowStartTime;


void setup()
{
  windowStartTime = millis();    //get current time

  Setpoint = 100;                //Desired Temperature, PSI, etc................

  //tell the PID to range between 0 and the full window size
  myPID.SetOutputLimits(0, WindowSize);

  //turn the PID on
  myPID.SetMode(AUTOMATIC);
}
 
void loop()
{
  Input = analogRead(T_pin);  //Pass current temperature as Input to PID
  
  myPID.Compute();

  unsigned long now = millis();  //get now time
  
  if(now - windowStartTime > WindowSize)
  { //time to shift the Relay Window
    windowStartTime += WindowSize;
  }
  if(Output > now - windowStartTime) digitalWrite(RelayPin,HIGH);   //ON
  else digitalWrite(RelayPin,LOW);                                  //OFF

}

buffalobillpatrick is offline   Reply With Quote
Old 02-17-15, 08:24 PM   #22
Mikesolar
Master EcoRenovator
 
Mikesolar's Avatar
 
Join Date: Aug 2012
Location: Toronto
Posts: 958
Thanks: 40
Thanked 158 Times in 150 Posts
Default

This is the one I have with me now, the SER-B.

I was looking into using some chinese ones like BradC was but haven't gotten around to it yet.
Attached Files
File Type: pdf Sporlan EEV 100-20.pdf (2.83 MB, 477 views)
Mikesolar is offline   Reply With Quote
Old 02-17-15, 08:29 PM   #23
Mikesolar
Master EcoRenovator
 
Mikesolar's Avatar
 
Join Date: Aug 2012
Location: Toronto
Posts: 958
Thanks: 40
Thanked 158 Times in 150 Posts
Default

Quote:
Originally Posted by buffalobillpatrick View Post
I'm not sure that it is a good valve for this purpose. I have a Danfoss equiv (that came with a controller) that is used for liquid injection for cooling the pot if the head pressure gets too high but i didn't think it was suitable for use as an EEV. EEVs are usually stepper motors, not solenoid valves, AFAIK.
Mikesolar is offline   Reply With Quote
Old 02-18-15, 11:48 AM   #24
AC_Hacker
Supreme EcoRenovator
 
AC_Hacker's Avatar
 
Join Date: Mar 2009
Location: Portland, OR
Posts: 4,004
Thanks: 303
Thanked 723 Times in 534 Posts
Default

Quote:
Originally Posted by Mikesolar View Post
I'm not sure that it is a good valve for this purpose. I have a Danfoss equiv (that came with a controller) that is used for liquid injection for cooling the pot if the head pressure gets too high but i didn't think it was suitable for use as an EEV. EEVs are usually stepper motors, not solenoid valves, AFAIK.
Yep, EEV for HVAC must be stepper (or servo, which would be too expensive, with no added benefit).

Tell me more about what you have in mind for the EEV?

-AC
__________________
I'm not an HVAC technician. In fact, I'm barely even a hacker...
AC_Hacker is offline   Reply With Quote
Old 02-18-15, 11:58 AM   #25
buffalobillpatrick
Master EcoRenovator
 
Join Date: Mar 2014
Location: Florissant, Colorado
Posts: 599
Thanks: 814
Thanked 59 Times in 55 Posts
Default

"The Emerson EX2 pulse modulated electric valve is an electrically driven expansion valve that provides precise temperature control. It is designed for use with R-12, R-22,
R-134a, R-404A, R-407C and R-502 refrigerants. - See more at: http://www.emersonclimate.com/en-US/products/valves/expansion_valves/Pages/electronic_expansion_valve.aspx#sthash.AodE1Cgy.dp uf"

Did anyone read the link in post #21 ?
buffalobillpatrick is offline   Reply With Quote
Old 02-18-15, 12:05 PM   #26
AC_Hacker
Supreme EcoRenovator
 
AC_Hacker's Avatar
 
Join Date: Mar 2009
Location: Portland, OR
Posts: 4,004
Thanks: 303
Thanked 723 Times in 534 Posts
Default

Quote:
Originally Posted by buffalobillpatrick View Post
...I've built the R290 PT Chart into the software, ...
Did you do a look-up table?

-AC
__________________
I'm not an HVAC technician. In fact, I'm barely even a hacker...
AC_Hacker is offline   Reply With Quote
The Following User Says Thank You to AC_Hacker For This Useful Post:
buffalobillpatrick (02-18-15)
Old 02-18-15, 12:25 PM   #27
AC_Hacker
Supreme EcoRenovator
 
AC_Hacker's Avatar
 
Join Date: Mar 2009
Location: Portland, OR
Posts: 4,004
Thanks: 303
Thanked 723 Times in 534 Posts
Default

BBP,

Thanks for the thanks, but I am asking you if you did a look-up table?

Reason is that I crafted a single formula that will generate the R-290 P-T table, precisely, no need to interpolate.

One line of code, no table.

-AC
__________________
I'm not an HVAC technician. In fact, I'm barely even a hacker...
AC_Hacker is offline   Reply With Quote
Old 02-18-15, 12:28 PM   #28
buffalobillpatrick
Master EcoRenovator
 
Join Date: Mar 2014
Location: Florissant, Colorado
Posts: 599
Thanks: 814
Thanked 59 Times in 55 Posts
Default

Please share that line of code!

Yes Look-up table sort-of

I looked at the table: HC-290 (PROPANE) PRESSURE - TEMPERATURE CHART

and entered the table data into the array in function:
float calc_R290_Saturated_Temp(float PSI, int Which_sensor)

Code:
//Array element [0]  contains Saturation_Temp *F for 30PSI,
//Array element [1]  contains Saturation_Temp *F for 40PSI,...................>
//Array element [27] contains Saturation_Temp *F for 300PSI,
//Array element [28] contains Saturation_Temp *F for 310PSI

float R290_Saturation_Temp[] = 
     {7.93, 18.80, 28.42, 36.91, 44.59, 51.63, 58.13, 64.21, 69.90, 75.27, 
      80.35, 85.18, 89.78, 94.19, 98.41, 102.50, 106.40, 110.20, 113.80, 
      117.30, 120.80, 124.10, 127.30, 130.40, 133.50, 136.50, 139.40, 142.20, 
      145.00};
buffalobillpatrick is offline   Reply With Quote
Old 02-18-15, 12:32 PM   #29
AC_Hacker
Supreme EcoRenovator
 
AC_Hacker's Avatar
 
Join Date: Mar 2009
Location: Portland, OR
Posts: 4,004
Thanks: 303
Thanked 723 Times in 534 Posts
Default

OK, if you need to economize on code or get more precise, let me know.

In other words, what happens to 31psi, 32psi, 33psi, 34psi, 35psi, 36psi, (and all the fractional pressures in between), etc.

-AC
__________________
I'm not an HVAC technician. In fact, I'm barely even a hacker...
AC_Hacker is offline   Reply With Quote
Old 02-18-15, 12:41 PM   #30
AC_Hacker
Supreme EcoRenovator
 
AC_Hacker's Avatar
 
Join Date: Mar 2009
Location: Portland, OR
Posts: 4,004
Thanks: 303
Thanked 723 Times in 534 Posts
Default

Quote:
Originally Posted by buffalobillpatrick View Post
Please share that line of code!
OK, I will.

It won't take too long, but I need to do some mandolin practice right now, got a gig coming up and I need to do some preparation.

I'll have the formula for you sometime later in the day (I need to re-create it).

Best,

-AC

__________________
I'm not an HVAC technician. In fact, I'm barely even a hacker...
AC_Hacker is offline   Reply With Quote
The Following User Says Thank You to AC_Hacker For This Useful Post:
buffalobillpatrick (02-18-15)
Reply


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 04:33 PM.


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