Real Time Online Fermentation Temperature Monitor for ~$60 - Page 2 - Home Brew Forums

Register Now!
Home Brew Forums > Home Brewing Beer > DIY Projects > Fermenters > Real Time Online Fermentation Temperature Monitor for ~$60

Reply
 
Thread Tools
Old 12-01-2012, 04:03 AM   #11
acefaser
Recipes 
 
Feb 2011
firestone, co
Posts: 347
Liked 19 Times on 13 Posts


Already built mine last year. Running same equipment above at feed:
https://cosm.com/feeds/70075

Here is my Arduino code:

// acefaser's beer code

#include <OneWire.h>
#include <DallasTemperature.h>
#include <SPI.h>
#include <Ethernet.h>

byte mac[] = { YOUR BITE MAC };
byte ip[] = { YOUR IP };

char server[] = "api.cosm.com"; // name address for Cosm API

EthernetClient client;

char strURL[150]; //define strURL
int t1,t2,t3; // variables for temps

// Data wire is plugged into pin 3 on the Arduino
#define ONE_WIRE_BUS 3
// cosm acct info
#define APIKEY "enter your key here" // replace your Cosm api key here
#define FEEDID 70075 // replace your feed ID
#define USERAGENT "Temp" // user agent is the project name

// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);

// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);

// Assign the addresses of your 1-Wire temp sensors.
// See the tutorial on how to obtain these addresses:
// http://www.hacktronics.com/Tutorials...ss-finder.html
DeviceAddress insideThermometer = { 0x28, 0x02, 0x3D, 0xAF, 0x03, 0x00, 0x00, 0xCF };
DeviceAddress outsideThermometer = { 0x28, 0x13, 0x35, 0xAF, 0x03, 0x00, 0x00, 0x9D };
DeviceAddress dogHouseThermometer = { 0x28, 0x07, 0x32, 0xAF, 0x03, 0x00, 0x00, 0x4B };


void setup() {
// start serial port:
Serial.begin(9600);
// give the ethernet module time to boot up:
delay(1000);
// start the Ethernet connection:
Ethernet.begin(mac, ip);


// Start up the library
sensors.begin();
// set the resolution to 10 bit (good enough?)
sensors.setResolution(1Thermometer, 10);
sensors.setResolution(2Thermometer, 10);
sensors.setResolution(3Thermometer, 10);
}

void printTemperature(DeviceAddress deviceAddress)
{
float tempC = sensors.getTempC(deviceAddress);
if (tempC == -127.00) {
Serial.print("Error getting temperature");
} else {

Serial.print(" F: ");
Serial.print(DallasTemperature::toFahrenheit(tempC ));

}
}


void loop()
{

sensors.requestTemperatures();

if (!client.connected()) {
Serial.begin(9600);
// give the ethernet module time to boot up:
delay(1000);
Ethernet.begin(mac, ip);
}

float tempC1 = sensors.getTempC(1Thermometer);
float tempF1 = (tempC1 * 9.0 / 5.0) + 32.0;
int t1 = tempF1;
Serial.print(tempF1);
Serial.print("\n");

float tempC2 = sensors.getTempC(2Thermometer);
float tempF2 = (tempC2 * 9.0 / 5.0) + 32.0;
int t2 = tempF2;
Serial.print(tempF2);
Serial.print("\n");

float tempC3 = sensors.getTempC(3Thermometer);
float tempF3 = (tempC3 * 9.0 / 5.0) + 32.0;
int t3 = tempF3;
Serial.print(tempF3);
Serial.print("\n");

// string the data together
String dataString = "1,";
dataString += t1;
dataString += "\n2,";
dataString += t2;
dataString += "\n3,";
dataString += t3;

sendData(dataString);
}


// this method makes a HTTP connection to the server:
void sendData(String thisData) {
// if there's a successful connection:
if (client.connect(server, 80)) {
Serial.println("connecting...");
// send the HTTP PUT request:
client.print("PUT /v2/feeds/");
client.print(FEEDID);
client.println(".csv HTTP/1.1");
client.println("Host: api.cosm.com");
client.print("X-ApiKey: ");
client.println(APIKEY);
client.print("User-Agent: ");
client.println(USERAGENT);
client.print("Content-Length: ");
client.println(thisData.length());

// last pieces of the HTTP PUT request:
client.println("Content-Type: text/csv");
client.println("Connection: close");
client.println();

// here's the actual content of the PUT request:
client.println(thisData);
Serial.println(thisData);
Serial.println("Temps Uploaded Successfully");

delay(30000);
}
else {
// if you couldn't make a connection:
Serial.println("connection failed");
Serial.println();
Serial.println("disconnecting.");
client.stop();
}
}

// end

 
Reply With Quote
Old 12-01-2012, 04:09 AM   #12
goodsuds
Recipes 
 
Apr 2012
St. Louis, MO
Posts: 194
Liked 5 Times on 3 Posts


Cool write up! Thanks for the info, I'm definitely interesting in doing this myself.

Are the temperature spikes at ambient just your thermostat kicking in your HVAC or do you have a fermentation chamber that is cycling off and on? Not that those are big swings, I just find it interesting how consistent they are.

 
Reply With Quote
Old 12-01-2012, 05:26 AM   #13
FuzzeWuzze
I Love DIY
HBT_SUPPORTER.png
 
FuzzeWuzze's Avatar
Recipes 
 
Jun 2012
Newberg, Oregon
Posts: 3,083
Liked 416 Times on 306 Posts


Quote:
Originally Posted by goodsuds View Post
Cool write up! Thanks for the info, I'm definitely interesting in doing this myself.

Are the temperature spikes at ambient just your thermostat kicking in your HVAC or do you have a fermentation chamber that is cycling off and on? Not that those are big swings, I just find it interesting how consistent they are.
that is my home heat turning on and off, it's just sitting on top of the bucket

 
Reply With Quote
Old 12-01-2012, 06:09 AM   #14
FuzzeWuzze
I Love DIY
HBT_SUPPORTER.png
 
FuzzeWuzze's Avatar
Recipes 
 
Jun 2012
Newberg, Oregon
Posts: 3,083
Liked 416 Times on 306 Posts


Updated the main post with the rest of the information.

Feel free to ask any questions or problems while setting it up ill be glad to help

 
Reply With Quote
Old 12-07-2012, 12:57 PM   #15
ChemE
Recipes 
 
Mar 2008
Columbia, SC
Posts: 596
Liked 17 Times on 10 Posts


This is awesome! Fantastic write up and very much appreciated. Am I correct in assuming that one could add on two SSR's, a peltier cooler (or similar), and a heat source and upgrade this into a fermentation controller?
__________________

My Super Efficient 5-Gallon Mash Lauter Tun Graduating Carboys Leaf Hop Absorption Measured
Primary - Bemused Bitter, Munich Saaz SMaSH
Secondary - Air
Bottled - Oatmeal Stout 2011, Apfelwein, Withdrawn Wheat, Bourbon Barrel Barleywine SMaSH, Christmas Ale 2010, Perplexed Pale Ale

 
Reply With Quote
Old 12-07-2012, 05:36 PM   #16
FuzzeWuzze
I Love DIY
HBT_SUPPORTER.png
 
FuzzeWuzze's Avatar
Recipes 
 
Jun 2012
Newberg, Oregon
Posts: 3,083
Liked 416 Times on 306 Posts


I dont see why not with the right SSR. It would be pretty straight forward to turn on/off an Arduino pin to control the SSR.
If you were to go that route you would probably need some sort of LCD Screen and Knob so you could set the temperature points.
The cheaper option is just to edit the variables and reprogram the Arduino every time you start a new brew and need new fermentation temperatures since that only takes 15 seconds.

 
Reply With Quote
Old 02-18-2013, 01:02 AM   #17
FuzzeWuzze
I Love DIY
HBT_SUPPORTER.png
 
FuzzeWuzze's Avatar
Recipes 
 
Jun 2012
Newberg, Oregon
Posts: 3,083
Liked 416 Times on 306 Posts


This wont let me update the main post anymore, but there has been some changes to the code and a few other things...its been posted on my blog! I realized i had this and many other topics to discuss in general, so why not be like everyone else and have a blog...

http://fuzzelogicbrewing.blogspot.co...mentation.html

 
Reply With Quote
Old 02-18-2013, 01:58 AM   #18
HefeHood
Recipes 
 
May 2011
Tucson, Arizona
Posts: 336
Liked 87 Times on 67 Posts


subscribed. looks like fun project for whatever u build. Fermentor in the planning stages. This will blow the brew friends away. Thanks for the posting.
__________________
Brewer of the 85710 brands of beer.

 
Reply With Quote
Old 02-19-2013, 01:53 AM   #19
FuzzeWuzze
I Love DIY
HBT_SUPPORTER.png
 
FuzzeWuzze's Avatar
Recipes 
 
Jun 2012
Newberg, Oregon
Posts: 3,083
Liked 416 Times on 306 Posts


Quote:
Originally Posted by HefeHood View Post
subscribed. looks like fun project for whatever u build. Fermentor in the planning stages. This will blow the brew friends away. Thanks for the posting.

Yea its pretty easy to put together once you have everything. Only takes an hour or two depending on how quick you are at soldering

 
Reply With Quote
Old 02-19-2013, 10:27 PM   #20
scottland
Recipes 
 
May 2010
Chandler, AZ
Posts: 2,116
Liked 155 Times on 113 Posts


Alright, I'm doing this. I wonder how long of a run I could get away with for the temp probes. I won't be using a thermowell, so ethernet will work fine for me. I'm curious if I can get away with 20-50ft before the resistance starts to mess with the temp readings.

To be continued. For now, I'm buying parts.
__________________
http://www.bertusbrewery.com/

 
Reply With Quote


Reply
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Temperature monitor brehuh Brewing Software 6 05-26-2011 03:03 PM
1-Wire Temperature Monitor Vinic Fermenters 12 01-12-2010 07:01 PM
Temperature Monitor N5629 Brew Stands 5 03-31-2009 04:54 PM
Real-Time Fermentation Monitor Yorbag Equipment/Sanitation 90 11-14-2008 04:19 PM


Forum Jump