Electric Brewing Supply 30A BCS Giveaway!


Home Brew Forums > Home Brewing Beer > Electric Brewing > PID Controller using microcontroller
Reply
 
LinkBack Thread Tools
Old 05-05-2012, 09:11 PM   #1
jbrewkeggin
Feedback Score: 0 reviews
Recipes 
 
Join Date: Mar 2012
Location: Baltimore, MD
Posts: 29
Liked 1 Times on 1 Posts

Default PID Controller using microcontroller

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

__________________
jbrewkeggin is offline
 
Reply With Quote Quick reply to this message
Old 05-05-2012, 09:52 PM   #2
matho
Feedback Score: 0 reviews
Recipes 
 
Join Date: Jan 2012
Location: hazelbrook, New South Wales
Posts: 42
Liked 16 Times on 13 Posts
Likes Given: 6

Default

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

__________________
matho is offline
 
Reply With Quote Quick reply to this message
Old 05-05-2012, 10:10 PM   #3
jbrewkeggin
Feedback Score: 0 reviews
Recipes 
 
Join Date: Mar 2012
Location: Baltimore, MD
Posts: 29
Liked 1 Times on 1 Posts

Default

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

__________________
jbrewkeggin is offline
 
Reply With Quote Quick reply to this message
Old 05-07-2012, 03:31 PM   #4
audger
Feedback Score: 0 reviews
Recipes 
 
Join Date: Apr 2011
Location: ., Connecticut
Posts: 1,497
Liked 40 Times on 40 Posts
Likes Given: 1

Default

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

__________________
audger is offline
 
Reply With Quote Quick reply to this message
Old 05-08-2012, 07:52 PM   #5
jbrewkeggin
Feedback Score: 0 reviews
Recipes 
 
Join Date: Mar 2012
Location: Baltimore, MD
Posts: 29
Liked 1 Times on 1 Posts

Default

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.

__________________
jbrewkeggin is offline
 
Reply With Quote Quick reply to this message
Old 05-08-2012, 08:12 PM   #6
Mb2658
Feedback Score: 1 reviews
Recipes 
 
Join Date: Nov 2011
Location: , NE
Posts: 411
Liked 36 Times on 26 Posts
Likes Given: 1

Default

Has anyone used the Propeller chip?

__________________
Mb2658 is offline
 
Reply With Quote Quick reply to this message
Old 08-30-2012, 04:22 AM   #7
chuckjaxfl
Feedback Score: 1 reviews
Recipes 
 
Join Date: Feb 2010
Location: Jacksonville, FL
Posts: 327
Liked 18 Times on 11 Posts
Likes Given: 23

Default

Possibly of interest to the OP:

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

__________________
chuckjaxfl 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
Suggestions for controller jsguitar Electric Brewing 225 05-23-2014 07:24 PM
dual use PID controller?? RiverRat280 Electric Brewing 2 01-03-2012 11:16 PM
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