Beer fridge controller 0.1
On the weekend I picked up a 220 liter beer fridge for $20. Its in really good condition (ignoring some minor rust in the freezer section), and the only real problem with it is that the thermostat doesn't work leaving the compressor on the whole time. Doug suggested that instead of just buying a new thermostat, we should build an arduino fridge controller. I'm not really a hardware guy, but once Doug had pointed me at the Dallas 1820 1-Wire temperature sensor, and lent me some resistors, it was pretty easy to pull the software side together. Note that this version doesn't actually do any of the compressor control -- it simulates that by turning a LED on. The compressor stuff has been delegated to Doug and will be mentioned later. You can see that the circuit is in fact really simple. There is a LED to simulate the compressor (with a resistor), and then the 1-Wire temperature sensor (with another resistor). The code is pretty simple too. Here's my latest fancy version: #include <OneWire.h> #include <DallasTemperature.h> #define COMPRESSOR 13 #define ONEWIRE 2 #define HIGHTEMP 4 #define LOWTEMP 3 #define SLEEP_SEC 10 // 220L Kelvinator is 85 watts #define COMPRESSOR_WATTAGE…