Source Code Sharing for Raspberry, Beaglebone, and Arduino? - Page 4 - Home Brew Forums

Register Now!
Home Brew Forums > Home Brewing Beer > Automated Brewing Forum > Source Code Sharing for Raspberry, Beaglebone, and Arduino?

Reply
 
Thread Tools
Old 12-30-2013, 09:45 PM   #31
jasper9
Recipes 
 
Dec 2008
Boulder, CO
Posts: 118
Liked 2 Times on 2 Posts


Has anyone here written (or do you know where to find) a pid library in Python than can easily be repurposed into new projects? I'm hacking up the raspibrew code I found for my own needs because I haven't tried to figure out how pull just the pid library out.

 
Reply With Quote
Old 12-31-2013, 01:38 AM   #32
vortexau
Recipes 
 
Oct 2013
Posts: 5

Does this fit the bill?

http://code.activestate.com/recipes/...id-controller/

 
Reply With Quote
Old 12-31-2013, 02:12 AM   #33
jasper9
Recipes 
 
Dec 2008
Boulder, CO
Posts: 118
Liked 2 Times on 2 Posts


oh sweet, my googlefu didn't find this one, thanks!

 
Reply With Quote
Old 12-31-2013, 08:58 AM   #34
tob77
Recipes 
 
Sep 2012
Napa, CA
Posts: 71
Liked 12 Times on 6 Posts


I wrote one based on the equation that I found in Rockwell Software's ControlLogix PLC documentation. It uses the velocity PID equation with independent gains.
https://github.com/tob77/BrewNpi/blob/master/pid.py

I'll try and post a little more info about the rest of my python project in the forum sometime tomorrow.

 
Reply With Quote
Old 03-20-2014, 04:40 PM   #35
seiniku
Recipes 
 
Jan 2013
Posts: 7

I've been writing a electric brewery control system for awhile now. It's not pretty, but it does have a web interface and logs to a remote graphite server for nice graphs.
The code is up on github if anyone needs some ideas.
https://github.com/seiniku/drunken-control

 
Reply With Quote
Old 03-22-2014, 06:59 PM   #36
jimmayhugh
Turgid Member
HBT_LIFETIMESUPPORTER.png
 
jimmayhugh's Avatar
Recipes 
 
Feb 2011
Las Vegas, NV
Posts: 794
Liked 112 Times on 84 Posts


All of my code for my TeensyPi and TeensyNet projects are available on my github site, as well as a few other projects.
__________________
TeensyNet Networked Controller
ButtCrack Brewery
And This Is Why We Drink...
Cogito, ergo bibere cervisia sum

 
Reply With Quote
Old 04-21-2014, 08:25 PM   #37
snccoulter
 
snccoulter's Avatar
Recipes 
 
Mar 2010
Nooksack, Washington (WA)
Posts: 1,046
Liked 52 Times on 37 Posts


I have had a PI for a couple of weeks and am in the process of figuring out how to make it work. I have a temp gauge and some servos working now to get a led display working and tie them together into one program to read temps turn on a cooler or turn on heat belt and I will be happy for now.
__________________
Quote:
Originally Posted by CthulhuDreaming View Post
As a parent, hearing nuggets of parenting wisdom from someone who's never had kids is a bit like hearing sex advice from a virgin.
“Fairy tales don't tell children that dragons exist; children already know that dragons exist. Fairy tales tell children that dragons can be killed.”
― G.K. Chesterton
http://whatalesyou.webs.com/

 
Reply With Quote
Old 05-03-2014, 04:56 AM   #38
hightechlofi
Recipes 
 
Jan 2010
Tomball, TX
Posts: 86
Liked 2 Times on 2 Posts


I am currently working on a beaglebone black to control my system. Eventually, I plant to add automation functionality, but that is down the line. My setup uses 12v pumps on the hlt, mlt, and rims tube, and a march 120v on the bk for whirlpool and chilling. I have four DS18B20 temp probes which let me monitor the temps (hlt, mlt, rims, and bk). All the pumps have flowmeters coupled to them so I can (eventually, still programming) see flowrates and set totalizers to track transfer volumes. I have ported the arduino pid library to javascript, as I am using bonescript/node.js to run everything. I plan to port the arduino auto tune library at some point too. I use the pid library to run my rims element for maintaining my mash temps, and will use it to let me set specific flowrates for my 12v pumps (for sparging, recirculating, etc). The system has a web front end so I can control everything from a computer or ipad.

Eventually I am going to opensource the code, but am waiting until I have it a little more complete, so it is not laughable.

Right now, this is my web interface (mocked up):
Click image for larger version

Name:	ImageUploadedByHome Brew1399092841.991280.jpg
Views:	304
Size:	46.5 KB
ID:	197133

At some point I will be starting a thread for the system and will be posting updates as I progress, probably once I have the code up on github.


Btw, if anybody from TI is reading this, I would love to talk


Sent from my iPad using Home Brew
__________________
Blue Hole Road Brewing

HDIr0n Likes This 
Reply With Quote
Old 06-29-2014, 02:46 PM   #39
HDIr0n
 
HDIr0n's Avatar
Recipes 
 
Oct 2010
Missouri City, Texas
Posts: 547
Liked 29 Times on 26 Posts


Quote:
Originally Posted by hightechlofi View Post
I am currently working on a beaglebone black to control my system. Eventually, I plant to add automation functionality, but that is down the line. My setup uses 12v pumps on the hlt, mlt, and rims tube, and a march 120v on the bk for whirlpool and chilling. I have four DS18B20 temp probes which let me monitor the temps (hlt, mlt, rims, and bk). All the pumps have flowmeters coupled to them so I can (eventually, still programming) see flowrates and set totalizers to track transfer volumes. I have ported the arduino pid library to javascript, as I am using bonescript/node.js to run everything. I plan to port the arduino auto tune library at some point too. I use the pid library to run my rims element for maintaining my mash temps, and will use it to let me set specific flowrates for my 12v pumps (for sparging, recirculating, etc). The system has a web front end so I can control everything from a computer or ipad.

Eventually I am going to opensource the code, but am waiting until I have it a little more complete, so it is not laughable.

Right now, this is my web interface (mocked up):
Attachment 197133

At some point I will be starting a thread for the system and will be posting updates as I progress, probably once I have the code up on github.


Btw, if anybody from TI is reading this, I would love to talk


Sent from my iPad using Home Brew
Man I would love some more pics/info on your system!

-G
__________________
My Brutus 20 build

My Brutus/1550 Failed build

“Fermentation may have been a greater discovery than fire."

– David Wallace

 
Reply With Quote
Old 06-29-2014, 03:23 PM   #40
truvr
Recipes 
 
Jan 2013
Posts: 179
Liked 30 Times on 25 Posts


Quote:
Originally Posted by RickH View Post
I love sharing what I make. I turned a $13 propane burner into a natural gas one a few days ago, This unit will control it soon enough.
Would you be willing to share more details on this. I've been looking into economic options for getting a NG burner going but it is not exactly straightforward on how to do it, which parts to use, etc. I'd love to know more about how you plan to automate it too.

 
Reply With Quote
Reply
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can it even be done? Measuring Specific Gravity using Arduino or Raspberry Pi remthewanderer Automated Brewing Forum 97 09-02-2015 12:56 PM
Raspberry Pi or Arduino (for layperson) jbaysurfer Automated Brewing Forum 10 07-15-2013 10:48 PM
Help me decide: Arduino or Raspberry Pi for brewing and smoking applications jfenton78 Automated Brewing Forum 20 04-11-2013 03:57 PM
New Open Source Arduino Based PID Controller Released bendiy Brew Stands 9 02-11-2013 09:33 AM
Priming Sugar Calculator (source code in C) mikegarri Brewing Software 1 07-22-2010 03:40 PM


Forum Jump