Step 3The cracking the code!!!
Just open up the text file with the code, copy it into the Sketch software and upload it to your Arduino!
I made a lot of comments in the code for me to understand what is doing what, feel free to mod it to make it better if you can.... I dare you!! (then send me the code.. hehe!)
You might want to adjust the turning ON/OFF lines depending on how warm or cold you would like your beer to be. I have it set between 1 and 4 Celsius... which is between 35 and 40 degrees Fahrenheit, because the beer inside the keg is about 5 degrees Far. warmer than the fridge.
If you are adventurous and good with C than you could write a neat Celsius to Fahrenheit conversion for me since my formula is not the greatest.
- I plan to rewrite the temperature reading section to take an average of readings over a few second range to get a more accurate temperature output, but for now it works fine.
| « Previous Step | Download PDFView All Steps | Next Step » |








































temp = lm35_val;
to:
temp = (lm35_val*1.8)+32;
I recently pulled out this project and started rewriting the code for better temp sampling and stability. I started home brewing recently and have need to have my beer fermenting at precise temperatures....I hope to have the updated code posted soon.