Chest Freezer To Refrigerator Conversion: Difference between revisions
Jump to navigation
Jump to search
(→BOM) |
|||
| Line 4: | Line 4: | ||
*[https://www.arduino.cc/en/Main/ArduinoGemma Arduino Gemma] $9.95 | *[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.adafruit.com/products/1500 adafruit Trinket] $6.95 | ||
**or [https://www.sparkfun.com/products/12587 sparkfun Pro Micro] $19.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 | *[https://www.sparkfun.com/products/13015 24-280VAC Relay] $9.95 | ||
*[https://www.sparkfun.com/products/250 Thermister] $0.75 | *[https://www.sparkfun.com/products/250 Thermister] $0.75 | ||
Revision as of 00:33, 9 November 2016
BOM
- Arduino Gemma $9.95
- or adafruit Trinket $6.95
- or sparkfun Pro Micro $19.95 - Install Instructions
- 24-280VAC Relay $9.95
- Thermister $0.75
- 10k Resistor $0.95
- USB 5V Charger $3.95
- USB Micro Cable $1.95
- Junction Box $7.23
Arduino Code
//A1 read voltage
//D3 sensor power
//D5 relay low
//D7 relay high
volatile int sensorvalue = 330;
int triggeron = 330;
int triggeroff = 300;
void setup() {
digitalWrite(3, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(7, LOW); // initialize in OFF setting
digitalWrite(5, LOW); // set pin 5 low
pinMode(3, OUTPUT);
pinMode(7, OUTPUT);
delay(20000);
}
// the loop function runs over and over again forever
void loop() {
sensorvalue = analogRead(A1); // turn the LED on (HIGH is the voltage level)
if (sensorvalue > triggeron){
digitalWrite(7, HIGH);
delay(8000);
}
if (triggeroff > sensorvalue){
digitalWrite(7, LOW);
delay(8000);
}
}
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/