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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Raspberry Pi Projects requires membership for participation - click to join
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: lawsonkeith
  • Date Created: 18 Jun 2019 2:21 PM Date Created
  • Views 4404 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 5 years ago in reply to jomoenginer +4
    Whoops!
  • lawsonkeith
    lawsonkeith over 5 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 5 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…
  • luislabmo
    luislabmo over 5 years ago in reply to genebren

    Perhaps you needed to work first on a Motion-Activated Water Gun Turret or on a non-lethal anti-squirrel gun sentinel with a Nerf gun image

     

    Luis

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • lawsonkeith
    lawsonkeith over 5 years ago in reply to genebren

    Hi

     

    I'd say if the temperature varies too much the yeast won't get going properly and it'll definitely impact on the taste, you'll end up getting off flavours as your fermentation will get stretched out.  Also you'll risk bottling before fermentation is complete and you can end up with exploding bottles.

     

    Just putting a down jacket round it will help since the fermentation is an exothermic reaction.  It'd need to be in a location with a fairly constant temperature range, my garage for example is all over the place I think probably 10 to 15 degrees variation in a day.  Since doing the temperature control I got a lot more consistent results and my fermentation is always done within a week.

     

    I'd say temp control and cleaning were the 2 biggest process improvements I've mode towards consistency.

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

    Perhaps the Homebrew system was working a bit too well?

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 5 years ago

    Keith,

     

    Well done! Years ago I received one of those simple brew kits that you mentionede (canned malt extract) as a gift.  I did a couple of batches of beer that turned out fairly good.  One batch was brewed during the winter months and the temperatures were running up and down in the vat.  My first impulse was to do something like you have done, and attempt to control the temperature.  In the end, I decided that the small batch beers with limited customization were not that much fun and I gave up on the kit.  A few years ago my wife bought a small kit for wine making, but the squirrels, birds and foxes teamed up and ate all of her grapes.  We have thought about repurposing the kit to brew some beers.  I will have to start thinking more about that after reading your blog.

     

    Good luck on the brew!

    Gene

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • lawsonkeith
    lawsonkeith over 5 years ago in reply to jomoenginer

    Whoops!

    • Cancel
    • Vote Up +4 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 © 2025 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