PID Controller using microcontroller - Home Brew Forums

Register Now!
Home Brew Forums > Home Brewing Beer > Electric Brewing > PID Controller using microcontroller

Reply
 
Thread Tools
Old 05-05-2012, 09:11 PM   #1
jbrewkeggin
Recipes 
 
Mar 2012
Baltimore, MD
Posts: 29
Liked 1 Times on 1 Posts



Does anyone have any guidance for implementing a PID controller using a microcontroller or just a computer program? I'd like to do try one of these two implementations, but I need some PID code to start with.

-Jbrew

 
Reply With Quote
Old 05-05-2012, 09:52 PM   #2
matho
Recipes 
 
Jan 2012
hazelbrook, New South Wales
Posts: 42
Liked 16 Times on 13 Posts


A bit of an open ended question there. What microcontroller are you going to use and what language do you want to use?

If you want a Microcontroller that all the basic hardware stuff has been done like crystal speed and power supply then I would go with Arduino board http://www.arduino.cc/. It's fairly easy to learn and they have a lot of libraries to use including a PID library and its based on c++.
If you want to build one from the ground up then there is a lot of microcontroller but I would say the most popular one would be Microchip's PIC, it had a free IDE with a c complier in it, there is a huge range of PIC's as well for really basic 8bit one's to 32 bit one's. Here is some code for a PIC PID controlled heater http://www.microchipc.com/sourcecode...er_project.zip

cheers steve

 
Reply With Quote
Old 05-05-2012, 10:10 PM   #3
jbrewkeggin
Recipes 
 
Mar 2012
Baltimore, MD
Posts: 29
Liked 1 Times on 1 Posts


Great suggestions, thank you! I've actually been looking at that code you suggested already. I currently have a Basic Atom which is build around the 16F876 PICmicro MCU, and I was exploring using that. I could possibly go with the arduino too. Thanks again.

-Jbrew

 
Reply With Quote
Old 05-07-2012, 03:31 PM   #4
audger
Recipes 
 
Apr 2011
., Connecticut
Posts: 1,497
Liked 43 Times on 42 Posts


if you go arduino- there are already some PID examples available...
http://www.arduino.cc/cgi-bin/yabb2/...num=1226431507

 
Reply With Quote
Old 05-08-2012, 07:52 PM   #5
jbrewkeggin
Recipes 
 
Mar 2012
Baltimore, MD
Posts: 29
Liked 1 Times on 1 Posts


I went with the arduino because my PIC board isn't directly supported in linux. I tried using wine(not sure if you're familiar) and got some strange results when trying to compile BASIC code in the IDE.

 
Reply With Quote
Old 05-08-2012, 08:12 PM   #6
Mb2658
Recipes 
 
Nov 2011
, NE
Posts: 419
Liked 36 Times on 26 Posts


Has anyone used the Propeller chip?

 
Reply With Quote
Old 08-30-2012, 04:22 AM   #7
chuckjaxfl
Recipes 
 
Feb 2010
Jacksonville, FL
Posts: 327
Liked 22 Times on 14 Posts


Possibly of interest to the OP:

http://www.homebrewtalk.com/f235/yet...9/#post4372987

 
Reply With Quote
Reply
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestions for controller jsguitar Electric Brewing 226 02-01-2015 12:32 AM
dual use PID controller?? RiverRat280 Electric Brewing 2 01-04-2012 12:16 AM
Would this PWM controller work with SSR? MonkeyWrench Electric Brewing 4 10-27-2011 01:53 AM
Controller Question for P-J O'Haggerty Electric Brewing 20 09-24-2011 11:20 PM
PID temp controller? rod734 Electric Brewing 13 04-29-2011 06:08 PM


Forum Jump