Electric Brewing Supply 30A BCS Giveaway!


Home Brew Forums > Home Brewing Beer > Automated Brewing Forum > Standalone, Plug and Play Raspberry Pi Headless Brewstand Controller-Server
Reply
 
LinkBack Thread Tools
Old 11-29-2012, 10:58 PM   #51
helibrewer
HBT_SUPPORTER.png
Feedback Score: 1 reviews
 
helibrewer's Avatar
Recipes 
 
Join Date: Nov 2011
Location: Santa Rosa, CA
Posts: 3,367
Liked 227 Times on 199 Posts
Likes Given: 57

Default

So it appears one needs to choose between the native w1 kernel module or OWFS. From the reading I have done, the GPIO cannot present itself as a physical bus connection required for OWFS. W1 kernel and OWFS are not compatible.

The OWFS direction seems more practical for I2C since I2C is a serial implementation and that's what OWFS likes.

I have been using the DS18x20's on GPIO4 using the native w1 kernel implementation.

OWFS should work with a USB 1-wire adapter since the USB device can act as the physical bus master for OWFS...if you just want to run the sensors to GPIO4 then the kernel implementation works great.

__________________
Something is always fermenting....
"It's Bahl Hornin'"

Primary:
Brite Tank/Lagering:
Kegged: Hefeweizen, Chocolate Hazelnut Porter, Kumquat Saison, Tart Cherry Cider, Belgian Tripel, Maibock Bock, Ommegang Abbey Ale Clone, Belgian Golden Strong, German Pils (WLP830)
Bottled: Belgian Quad (Grand Reserve), Derangement (Belgian Dark Strong)
On Deck:
My Site: www.restlesscellars.com
helibrewer is offline
 
Reply With Quote Quick reply to this message
Old 11-29-2012, 11:01 PM   #52
brewman !
Feedback Score: 0 reviews
Recipes 
 
Join Date: Nov 2006
Posts: 1,227
Liked 14 Times on 13 Posts
Likes Given: 16

Default

Quote:
Originally Posted by helibrewer View Post
So it appears one needs to choose between the native w1 kernel module or OWFS. From the reading I have done, the GPIO cannot present itself as a physical bus connection required for OWFS. W1 kernel and OWFS are not compatible.

The OWFS direction seems more practical for I2C since I2C is a serial implementation and that's what OWFS likes.

I have been using the DS18x20's on GPIO4 using the native w1 kernel implementation.

OWFS should work with a USB 1-wire adapter since the USB device can act as the physical bus master for OWFS...if you just want to run the sensors to GPIO4 then the kernel implementation works great.
a) Thanks for looking into this and reporting it. The "gotyas" are what make these projects difficult.

b) I'll take your word for your decision(s) until I get a chance to dig in. Others are welcome to joint the fray.

c) Initial impression, I like the thought of doing OWFS with the USB adapter. I think I'll prefer the USB adapter to doing it with the kernel.

Carry on !
__________________

Getting back into brewing...

brewman ! is offline
 
Reply With Quote Quick reply to this message
Old 12-01-2012, 05:30 PM   #53
BoxBrewer
Feedback Score: 0 reviews
Recipes 
 
Join Date: Feb 2012
Location: Golden, CO
Posts: 148
Liked 2 Times on 2 Posts
Likes Given: 8

Default

This might be a good link for good info on some Linux stuff for people searching this thread.
__________________
BoxBrewer is offline
 
Reply With Quote Quick reply to this message
Old 12-02-2012, 10:56 PM   #54
helibrewer
HBT_SUPPORTER.png
Feedback Score: 1 reviews
 
helibrewer's Avatar
Recipes 
 
Join Date: Nov 2011
Location: Santa Rosa, CA
Posts: 3,367
Liked 227 Times on 199 Posts
Likes Given: 57

Default

My latest dilemma is getting data from the GPIO displayed on javascript gauges. Javascript executes on the client side, I use python to pull GPIO data. Python runs on the server...connecting the two is the the challenge....assuming you want to serve your temperature readings real time over a webpage.

I found a promising little app called pico (not the text editor) which acts as a very simple RPC between JS and python. You can basically call a python script through a javascript in your html page.

I'm no js expert so if anyone knows a better way to pull the data, process it, possibly store it, then serve it up on a webpage, I'm all ears. It looks like the data needs to be pulled with a loop, or possibly through edge triggering to reduce cpu load on the Raspi.

__________________
Something is always fermenting....
"It's Bahl Hornin'"

Primary:
Brite Tank/Lagering:
Kegged: Hefeweizen, Chocolate Hazelnut Porter, Kumquat Saison, Tart Cherry Cider, Belgian Tripel, Maibock Bock, Ommegang Abbey Ale Clone, Belgian Golden Strong, German Pils (WLP830)
Bottled: Belgian Quad (Grand Reserve), Derangement (Belgian Dark Strong)
On Deck:
My Site: www.restlesscellars.com
helibrewer is offline
 
Reply With Quote Quick reply to this message
Old 12-03-2012, 12:05 AM   #55
brewman !
Feedback Score: 0 reviews
Recipes 
 
Join Date: Nov 2006
Posts: 1,227
Liked 14 Times on 13 Posts
Likes Given: 16

Default

I have not looked at this in any detail at all. I can't make a meaningful comment until I do.

__________________

Getting back into brewing...

brewman ! is offline
 
Reply With Quote Quick reply to this message
Old 12-03-2012, 04:16 AM   #56
tob77
Feedback Score: 0 reviews
Recipes 
 
Join Date: Sep 2012
Location: Napa, CA
Posts: 62
Liked 6 Times on 4 Posts
Likes Given: 23

Default

I hacked the hmiPhpExampleData data widget from JMWidgets (http://www.jmwidgets.com/index.php/d...hpexampledata/) It works pretty good. I can read and send data to the python server by using any of the JMWidgets embedded in html. It could be cleaned up a lot as I am no js expert. I am willing to share my efforts if anyone is interested. Does anyone know of a good way that we could share code with each other?

__________________
tob77 is offline
 
Reply With Quote Quick reply to this message
Old 12-03-2012, 04:57 AM   #57
helibrewer
HBT_SUPPORTER.png
Feedback Score: 1 reviews
 
helibrewer's Avatar
Recipes 
 
Join Date: Nov 2011
Location: Santa Rosa, CA
Posts: 3,367
Liked 227 Times on 199 Posts
Likes Given: 57

Default

Quote:
Originally Posted by tob77
I hacked the hmiPhpExampleData data widget from JMWidgets (http://www.jmwidgets.com/index.php/d...hpexampledata/) It works pretty good. I can read and send data to the python server by using any of the JMWidgets embedded in html. It could be cleaned up a lot as I am no js expert. I am willing to share my efforts if anyone is interested. Does anyone know of a good way that we could share code with each other?
Nice, more reading to do This seems more elegant than what I found.
__________________
Something is always fermenting....
"It's Bahl Hornin'"

Primary:
Brite Tank/Lagering:
Kegged: Hefeweizen, Chocolate Hazelnut Porter, Kumquat Saison, Tart Cherry Cider, Belgian Tripel, Maibock Bock, Ommegang Abbey Ale Clone, Belgian Golden Strong, German Pils (WLP830)
Bottled: Belgian Quad (Grand Reserve), Derangement (Belgian Dark Strong)
On Deck:
My Site: www.restlesscellars.com
helibrewer is offline
 
Reply With Quote Quick reply to this message
Old 12-03-2012, 05:35 PM   #58
brewman !
Feedback Score: 0 reviews
Recipes 
 
Join Date: Nov 2006
Posts: 1,227
Liked 14 Times on 13 Posts
Likes Given: 16

Default

I love the contributions I see in this thread. Everyone does things differently. More ideas = better outcome.

I'm working on my stand itself today. I'll join the fray when I get a chance.

__________________

Getting back into brewing...

brewman ! is offline
 
Reply With Quote Quick reply to this message
Old 12-06-2012, 07:21 PM   #59
wdevauld
Feedback Score: 0 reviews
Recipes 
 
Join Date: Jun 2012
Location: Calgary, Alberta
Posts: 29
Liked 4 Times on 4 Posts
Likes Given: 3

Default

Sorry I'm late to the party.

I'd like to help out around here, as I'm in the same boat. Assembling a new rig, and planning on using a pi to keep things in check. Here are a couple of thoughts I had when ripping through the pages:

- There is a One-Wire patch for the rPi, as helibrewer pointed out. This will allow you to use the GPIO pins on the board to poll the bus, as well as freeing up a USB port. It is too late for Brewman !, but it could save future readers $17 for the USB adapter. Furthermore because it is exposed at the kernel level as a file handle you can use epoll/select type programming to watch levels without having to busy wait your CPU or riddle it with sleep(1) s

- I rolled my own temperature sensors. I picked up some DS18B20s and some 'protection tubes' from http://www.brewershardware.com/Straight-Tubes/. I then used some binary thermal adhesive from Arctic Silver (http://www.arcticsilver.com/arctic_s...l_adhesive.htm) to seat the sensors in the end. Testing against a Spectrum industrial sensor I was 0.2 degrees off at 70 Celsius. Considering that is the error tolerance for the 'industrial' sensor at that point, it was good enough for me.

- Those Canvas Steel gauges are sexy. Thanks jimmayhugh, I will be using those in the future. Yes, I think that visualizing data can be sexy.

- I agree with Yorg, use python. It's a bloody elegant language, and most of the libraries are written in python themselves, so no problems porting to the ARM processors on the rPi

- I agree with Brewman ! that a full LAMP stack is way overkill for this purpose. I do like pyWeb, although there seems to be more web servers these days than there are homebrewers. I personally like making the clients do most of the heavy lifting which means that all you provide is static HTML/JS/CSS and then serve up data on demand. I'm not even sure you need to venture outside of Python; you could use the built in SimpleHTTPServer to watch port 80, serve up static files and data and then use the built in pickle as a super simplistic 'database' of historical information. If you can keep your external requirement to just Python, it keeps installation (and customization) very easy.

Let's keep the ideas rolling.

__________________
wdevauld is offline
Bigdaddyale Likes This 
Reply With Quote Quick reply to this message
Old 12-06-2012, 07:38 PM   #60
brewman !
Feedback Score: 0 reviews
Recipes 
 
Join Date: Nov 2006
Posts: 1,227
Liked 14 Times on 13 Posts
Likes Given: 16

Default

Welcome to the party. wdevauld.

I love where this is going.

I disagree with the one wire kernel driver versus the USB one wire adapter, but I haven't played with either of them yet, nor am I set on either one. So we'll see where this goes.

Here is a one wire open collector (drains) driver (DS2408) that could be use to drive typical brewstand relays, among other things.

http://www.digikey.com/product-detai...%2B-ND/1197414

This device would be handy for people using the One Wire interface for temperature measurement and wanting to drive more relays than the GPIO port on the RPi board will allow directly.

__________________

Getting back into brewing...

brewman ! 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
Plug and Play Rims Parts??? ardyexfor Automated Brewing Forum 10 11-10-2012 04:20 AM
plug and play fermenter temp control? Pondside DIY Projects 8 10-18-2012 10:36 PM
Cheap options for a small Linux server/controller gclay DIY Projects 20 09-06-2012 11:13 PM
I'm interested in buying a plug-n-play electric brewery limulus Electric Brewing 7 11-28-2011 09:48 PM
Anyone use this Auber Plug-N-Play Temp Control? limulus All Grain & Partial Mash Brewing 5 11-17-2009 11:22 AM