Spike Brewing 12.5 Conical Fermenter Giveaway - Enter Now!

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

Reply
 
LinkBack Thread Tools
Old 12-01-2012, 03:03 AM   #11
acefaser
Feedback Score: 0 reviews
Recipes 
 
Join Date: Feb 2011
Location: firestone, co
Posts: 350
Liked 17 Times on 11 Posts
Likes Given: 2

Default

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/arduino-1-wire-address-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

__________________
acefaser is offline
 
Reply With Quote Quick reply to this message
Old 12-01-2012, 03:09 AM   #12
goodsuds
Feedback Score: 0 reviews
Recipes 
 
Join Date: Apr 2012
Location: St. Louis, MO
Posts: 178
Liked 2 Times on 2 Posts
Likes Given: 9

Default

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.

__________________
goodsuds is offline
 
Reply With Quote Quick reply to this message
Old 12-01-2012, 04:26 AM   #13
FuzzeWuzze
HBT_SUPPORTER.png
Feedback Score: 0 reviews
 
FuzzeWuzze's Avatar
Recipes 
 
Join Date: Jun 2012
Location: Hillsboro, OR
Posts: 2,096
Liked 220 Times on 168 Posts
Likes Given: 16

Default

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
FuzzeWuzze is offline
 
Reply With Quote Quick reply to this message
Old 12-01-2012, 05:09 AM   #14
FuzzeWuzze
HBT_SUPPORTER.png
Feedback Score: 0 reviews
 
FuzzeWuzze's Avatar
Recipes 
 
Join Date: Jun 2012
Location: Hillsboro, OR
Posts: 2,096
Liked 220 Times on 168 Posts
Likes Given: 16

Default

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

FuzzeWuzze is offline
 
Reply With Quote Quick reply to this message
Old 12-07-2012, 11:57 AM   #15
ChemE
Feedback Score: 0 reviews
Recipes 
 
Join Date: Mar 2008
Location: Columbia, SC
Posts: 603
Liked 17 Times on 10 Posts
Likes Given: 4

Default

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 TunGraduating CarboysLeaf 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
ChemE is offline
 
Reply With Quote Quick reply to this message
Old 12-07-2012, 04:36 PM   #16
FuzzeWuzze
HBT_SUPPORTER.png
Feedback Score: 0 reviews
 
FuzzeWuzze's Avatar
Recipes 
 
Join Date: Jun 2012
Location: Hillsboro, OR
Posts: 2,096
Liked 220 Times on 168 Posts
Likes Given: 16

Default

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.

__________________
HOWTO - Build a BrewPi Fermentation Chamber Cheap

View Current Brew via my BrewPi setup!
FuzzeWuzze is offline
 
Reply With Quote Quick reply to this message
Old 02-18-2013, 12:02 AM   #17
FuzzeWuzze
HBT_SUPPORTER.png
Feedback Score: 0 reviews
 
FuzzeWuzze's Avatar
Recipes 
 
Join Date: Jun 2012
Location: Hillsboro, OR
Posts: 2,096
Liked 220 Times on 168 Posts
Likes Given: 16

Default

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.com/2013/02/arduino-real-time-fermentation.html

__________________
HOWTO - Build a BrewPi Fermentation Chamber Cheap

View Current Brew via my BrewPi setup!
FuzzeWuzze is offline
 
Reply With Quote Quick reply to this message
Old 02-18-2013, 12:58 AM   #18
HefeHood
Partial Extract Brewer - looking to grow
HBT_SUPPORTER.png
Feedback Score: 0 reviews
Recipes 
 
Join Date: May 2011
Location: Tucson, Arizona
Posts: 355
Liked 87 Times on 67 Posts
Likes Given: 275

Default

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.

HefeHood is offline
 
Reply With Quote Quick reply to this message
Old 02-19-2013, 12:53 AM   #19
FuzzeWuzze
HBT_SUPPORTER.png
Feedback Score: 0 reviews
 
FuzzeWuzze's Avatar
Recipes 
 
Join Date: Jun 2012
Location: Hillsboro, OR
Posts: 2,096
Liked 220 Times on 168 Posts
Likes Given: 16

Default

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
__________________
HOWTO - Build a BrewPi Fermentation Chamber Cheap

View Current Brew via my BrewPi setup!
FuzzeWuzze is offline
 
Reply With Quote Quick reply to this message
Old 02-19-2013, 09:27 PM   #20
scottland
Feedback Score: 0 reviews
Recipes 
 
Join Date: May 2010
Location: Chandler, AZ
Posts: 2,117
Liked 134 Times on 104 Posts
Likes Given: 12

Default

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/
scottland is offline
 
Reply With Quote Quick reply to this message
Reply


Quick Reply
Message:
Options
Thread Tools


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