element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi Projects
  • Products
  • Raspberry Pi
  • Raspberry Pi Projects
  • More
  • Cancel
Raspberry Pi Projects
Blog Raspberry Pi Homebrew controller with Node Red UI
  • Blog
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: lawsonkeith
  • Date Created: 18 Jun 2019 2:21 PM Date Created
  • Views 5178 views
  • Likes 10 likes
  • Comments 10 comments
  • rpiintermediate
  • remotemonitoringcontrolch
  • pibasic
  • raspberry_pi_projects
Related
Recommended

Raspberry Pi Homebrew controller with Node Red UI

lawsonkeith
lawsonkeith
18 Jun 2019

Introduction

For this project I'm going to upgrade my trusty home-brew temperature controller.

 

image

I'm using a fish tank temperature controller at the moment to control a heater belt with a relay which is kind of ok apart from I need to go into the garage to check what it's doing and the temperature sensor which is just a cheap thermistor just gets bungee'd to the outside of the mash tub so I'm not sure how accurate it is, especially since the temperature sensor ends up being close to the heater.

 

Also the buttons seem to be getting harder to use on my mega cheap control unit so it's quite hard to change the set temperature at the moment when I'm going between standard and 'fancy' beers.

 

Upgrade

So I'm going to use my raspberry Pi to upgrade this to use Node Red so I can check what my beer is doing without leaving my arm chair.  I'm also going to use an industrial PT100 probe so I get a better temperature reading.  The first thing to do is a quick drawing of how this is going to be wired up, I'll use an Analog Hat (PiIO_ADIO) for the Pi to do all the interfacing so I just need to add a power supply and mains relay to my enclosure, since the interface PCB has a step down supply for the Pi I can just use a single 0.63A 24V PSU to power everything.  I'll mount everything on DIN rail then just use gands to seal the box (ignore irrigation references that's another project).

 

 

image

So the next task is get the tools out and get this up and running.  First off with an enclosure it's worth checking everything is going to fit, here I've mounted the DIN rail and can now check the box is big enough.  You can see my relay,power supply, PT100 sensor and Pi with IO board.

image

Glands can be marked with marker then cut out using a hole cutter, remember to bake sure there's enough room round the back for the securing nut.  The PT100 sensor was mounted in the fermentor lid using the same approach.

imageimage

So that get us to a point where we can now wire up the box to our schematic, this just involves mounting things on DIN rail and connecting the wires.

image

  Here you see the control box and orange brew belt used for heating the beer,I usually put a jacket around this to improve efficiency when I'm brewing.  You can see also the PT100 sensor probe is much better located for sensing the beer temperature.

image

Software

So now we can do the software, I plan to use node red to do the user interface but do the control from a python program.  I'll us a MQTT server called mosquitto to enable the 2 to talk via MQTT messages.  SO the user interface will be visible on any browser, the architecture looks like this:

image

So I the flows for this in Node red end up just wiring MQTT message nodes to user interface components.

image

And in the python program we use the low level drivers that come with our IO board and then talk to the UI using MQTT. For the temperature control we just average the PT100 sensor reading then apply a deadband to stop the heater continually turning on / off..

image

 

 

So this gives us the following mobile phone view:

 

image

And another view to control the process, which is just an enable and a setpoint.  The UI is visible on a mobile or and PC with a browser.  The cool thing is you don't need to pre install any software.

image

 

You can see we can accurately control the beer temperature and use node reds charts to see what the controller is doing over time.  Perfect for bewing that specialty Lager!

 

Source code can be viewed here.

https://github.com/lawsonkeith/PiIO/blob/master/examples/hydro_ADIO.py

  • Sign in to reply

Top Comments

  • lawsonkeith
    lawsonkeith over 6 years ago in reply to jomoenginer +4
    Whoops!
  • lawsonkeith
    lawsonkeith over 6 years ago in reply to DAB +3
    Hi I've put a code snippet up now, I've put it at +/- 0.5. I'll see haw it goes when I brew my first beer maybe I can get this down a bit. The cool thin is I can now see how the heater is used over time…
  • lawsonkeith
    lawsonkeith over 6 years ago in reply to dubbie +3
    If you just want to use the kits it's pretty easy I think you just get 2 cans of malt extract and mix them with hot water and throw some dry yeast on the top. I'd say you can get beer as as good as mid…
  • jomoenginer
    jomoenginer over 6 years ago

    Very nice implementation of MQTT and Node-RED.  

     

    I was a bit curious if the "Rode Red" in the title was intentional or not though.

     

    Well done!

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • lawsonkeith
    lawsonkeith over 6 years ago in reply to dubbie

    If you just want to use the kits it's pretty easy I think you just get 2 cans of malt extract and mix them with hot water and throw some dry yeast on the top.  I'd say you can get beer as as good as mid range cans?  It doesn't work too well for some styles like lager or highly hopped beers though.  You can buy a kit online for about 70 quid.  If the fermenter is going somewhere where the temperature is constant (say your living room in summer) you don't need the heater,

     

    If you want to progress to doing your own mashing (all grain brewing) then it's possible to mimic draft beers fairly easily.  Again some styles like lager are much harder but if you're just after an ale it's not too difficult.  You do need a lot more equipment for all grain brewing though. - but you are free to do your own recipes.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 6 years ago

    This looks fun. My wife and I tried wine making when we were younger (much younger) and frankly all you could say about it was that you could drink it if you tried hard. A friend also made some cider once and it was the most filthy disgusting liquid on the face of the earth. Strangely, after 'aging' for a year as he didn't have the heart to throw it away, it turned out really nice.

     

    Dubbie

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • lawsonkeith
    lawsonkeith over 6 years ago in reply to DAB

    Hi

     

    I've put a code snippet up now, I've put it at +/- 0.5.  I'll see haw it goes when I brew my first beer maybe I can get this down a bit.  The cool thin is I can now see how the heater is used over time which before I had no idea about.

     

    Keith

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 6 years ago

    Nice update.

     

    How closely are you monitoring the temperature. + or - one degree?

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube