3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Digital Thermostatic Beer Refreshment Regulator

Step 3The cracking the code!!!

The cracking the code!!!
This was definitely the most difficult part for me..... writing the code. There are a few similar projects out there that I originally borrowed some code from to get me started. Most of it was fairly easy to understand, but some I had no idea what it did or said. I'm an entry level Arduino programmer so I spent a lot of time banging my head against the wall trying to figure out everything. Software is not my strong point so I had a bit of help from the Arduino community to finally get something that works well and was still easy to understand.

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 StepDownload PDFView All StepsNext Step »
2 comments
Nov 22, 2011. 10:08 PMetscheid says:
For Fahrenheit, try changing:
temp = lm35_val;
to:
temp = (lm35_val*1.8)+32;

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
17
Followers
4
Author:silverHalo
Jack of all trades, master of none, Sigh...... how does one get good at something when there are so many things in this world to learn?