Freezer to Refrigerator Conversion: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
Line 21: Line 21:
=BOM=
=BOM=


*Sparkfun Pro Micro 3V - $19.95 [https://www.sparkfun.com/products/12587 sparkfun] [https://smile.amazon.com/SparkFun-Pro-Micro-3-3V-8MHz/dp/B01B26IJAS/ amazon] - [https://github.com/sparkfun/Arduino_Boards Install Instructions]
==sparkfun==
 
*Sparkfun Pro Micro 3V - $19.95 [https://www.sparkfun.com/products/12587 sparkfun] - [https://github.com/sparkfun/Arduino_Boards Install Instructions]
**or [https://www.adafruit.com/products/1500 adafruit Trinket] $6.95
**or [https://www.adafruit.com/products/1500 adafruit Trinket] $6.95
*24-280VAC Relay - $9.95[https://www.sparkfun.com/products/13015 sparkfun] [https://smile.amazon.com/BESSKY-White-Solid-Controller-24-380V/dp/B00HIU8TSK/ amazon]
*24-280VAC Relay - $9.95[https://www.sparkfun.com/products/13015 sparkfun]  
**or [http://www.sainsmart.com/sainsmart-2-channel-5v-relay-module-for-arduino-raspberry-pi.html SainSmart Relay Module] $3.99 - Requires 5V Board
**or [http://www.sainsmart.com/sainsmart-2-channel-5v-relay-module-for-arduino-raspberry-pi.html SainSmart Relay Module] $3.99 - Requires 5V Board
*[https://www.sparkfun.com/products/250 Thermister] $0.75
*[https://www.sparkfun.com/products/250 Thermister] $0.75
**[https://smile.amazon.com/VISHAY-BC-COMPONENTS-NTCLE100E3103JB0-THERMISTOR/dp/B00DKYMIAS/ amazon] $4.32
*[https://www.sparkfun.com/products/11508 10k Resistor] $0.95
*[https://www.sparkfun.com/products/11508 10k Resistor] $0.95
*[https://www.sparkfun.com/products/11456 USB 5V Charger] $3.95
*[https://www.sparkfun.com/products/11456 USB 5V Charger] $3.95
Line 34: Line 35:
*Extension Cord - Ace Hardware
*Extension Cord - Ace Hardware
*2 Conductor Speaker Wire - Ace Hardware
*2 Conductor Speaker Wire - Ace Hardware
==amazon==
*Sparkfun Pro Micro 3V [https://smile.amazon.com/SparkFun-Pro-Micro-3-3V-8MHz/dp/B01B26IJAS/ amazon]
*Relay [https://smile.amazon.com/BESSKY-White-Solid-Controller-24-380V/dp/B00HIU8TSK/ amazon]
*Themister [https://smile.amazon.com/VISHAY-BC-COMPONENTS-NTCLE100E3103JB0-THERMISTOR/dp/B00DKYMIAS/ amazon] $4.32
*10K resistor [https://smile.amazon.com/Projects-100EP51210K0-10k-Resistors-Pack/dp/B0185FIOTA/ref=sr_1_3?s=industrial&ie=UTF8&qid=1518288817&sr=1-3&keywords=Resistor+10K+Ohm amazon]


=Arduino Code=
=Arduino Code=

Revision as of 18:57, 10 February 2018

Introduction

Convert a freezer to a refrigerator, and reduce energy consumption 12x so that your refrigerator uses 8 Watts of average power.

Nearly every household on Earth has a verticaldoor fridge that wastes not only food, but also about 1 kWh of energy each day (~365 kWh a year). Some vertical-door fridges waste as much as 3kWh each day. In a country of a few million households, replacing vertical door refrigerators with chestfridges can save enough energy to allow closing down at least one large power station. Alternatively, construction of a new power station to meet the increasing energy demand could be avoided or delayed. http://mtbest.net/chest_fridge.html

Original Work

This work is based on the Mt_Best_Freezer_to_Refrigerator_Conversion. Important point: reduce power usage to 8 watts for refrigerator.

edit

Wiring Diagram

OSE Fridge Conversion Wiring.png

google doc

BOM

sparkfun

amazon

Arduino Code


//A1 read voltage
//D3 sensor power
//D7 relay (+)


  volatile int sensorvalue = 328; //define the variable
  int triggeron = 328;         //number that will trigger fridge on
  int triggeroff = 304;        //number that will trigger fridge off


// the setup function only runs once every time the chip is reset
void setup() {
  digitalWrite(3, HIGH); //for powering thermister  
  digitalWrite(7, LOW);  //for switching relay
  pinMode(3, OUTPUT);    //begin operating pin
  pinMode(7, OUTPUT);    //begin operating pin
  delay(20000);          // wait for thermister to get a good initial reading
}

// the loop function runs over and over again forever
void loop() {
  sensorvalue = analogRead(A1);   //read sensor
if (sensorvalue > triggeron){     //if sensor reads over triggeron, turn on
  digitalWrite(7, HIGH);       //turn on relay
  delay(8000);                 //wait 8 seconds
}
if (triggeroff > sensorvalue){   //if sensor reads below triggeroff, turn off
  digitalWrite(7, LOW);         //turn off relay
  delay(8000);                  //wait 8 seconds
}
}

 

Other Options

Further Reading