Chest Freezer To Refrigerator Conversion: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Wiring Diagram=
#Redirect [[Freezer to Refrigerator Conversion]]
 
[[Image:OSE Fridge Conversion Wiring.png]]
 
[https://docs.google.com/drawings/d/1FXAXcH2EOA3pu4B6rSqdkHVKjNGiTh5V1kPcPV8Wmj4/edit?usp=sharing google doc]
 
=BOM=
 
*[https://www.arduino.cc/en/Main/ArduinoGemma Arduino Gemma] $9.95
**or [https://www.adafruit.com/products/1500 adafruit Trinket] $6.95
**or [https://www.sparkfun.com/products/12587 sparkfun Pro Micro] $19.95 - [https://github.com/sparkfun/Arduino_Boards Install Instructions]
*[https://www.sparkfun.com/products/13015 24-280VAC Relay] $9.95
**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/11508 10k Resistor] $0.95
*[https://www.sparkfun.com/products/11456 USB 5V Charger] $3.95
*[https://www.sparkfun.com/products/13244 USB Micro Cable] $1.95
*[http://www.homedepot.com/p/4-in-x-4-in-x-2-in-PVC-Junction-Box-E989NNJ-CAR/100404097 Junction Box] $7.23
 
=Arduino Code=
 
<nowiki>
 
//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
}
}
 
</nowiki>
 
=Other Options=
 
*http://mikeysklar.blogspot.com/p/yatc.html
*https://www.amazon.com/gp/product/B0002EAL58
*https://johnlvs2run.wordpress.com/2009/10/08/chest-fridge-conversion/
 
=Further Reading=
 
*[[Refrigeration]]
*[[Open_Source_Peltier_Refrigerator]]

Latest revision as of 23:13, 28 January 2017