Raspberry Pi HLT/Boiler Controller

The Homebrew Forum

Help Support The Homebrew Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

Robbo100

Regular.
Joined
Dec 21, 2012
Messages
401
Reaction score
26
I have just finished making my Raspberry Pi Boiler Controller, and since my wife is bored with pretending she is impressed with it, I thought I would put it on the forum. Also, it might be useful for other people who want to make something similar.

I am using the device to control my DIY plastic Boiler/HLT, which is heated by two Tescos Extra Value Kettle elements (each powered from a different 13A plug). The device has made a massive difference to my brew-day, because it means I don’t have to keep monitoring the temperatures, starting stopwatches etc. It just sorts it all out for me!

The software is written in Python, which I coded onto the Pi remotely using WebIDE, which is an amazingly useful bit of software that allows you to connect to the Pi from another computer and program the Pi through your Chrome web browser.

The Python script runs automatically at boot, so there is no user intervention required, just power it on, wait 20 seconds for it to boot, and off you go!

Components Required:
- Raspberry Pi - £25
- SD Card - £4
- Slice of Pi/o V1.2 (used to easily interface digital i/o’s to the Pi) - £6
- Two push button switches - £2
- Wifi USB dongle - £5
- A dual 5V powered 240V 10A Relay board (for turning on the elements - £5
- Two “1 Wire” digital thermometers (you only need one, but I got carried away) - £3
- A 16x2 Liquid Crystal Display - £2
- A plastic project box - £6
- A small buzzer - £2
- Kettle plugs and sockets to connect the relay to the mains, and then onto the boiler - £10
- A couple of DIY bulkheads to get the thermometers in “contact" with the fluid (15 mm copper tank connectors) - £6
Total cost = 76 (Plus I had to buy a dremmel to cut holes in the project box, but that is more of an investment than a cost :) )

Functions:

- Welcome Screen at boot
- Two primary functions, HLT Mode and Boiler Mode
- HLT Mode:
- Display shows the target HLT temperature and current boiler temperature
- When target temperature is reached, the elements are switched off (and then one element is used intermittently to maintain temperature)
- Audio alarm is triggered when target temperature is reached
- Target temperature can be varied using Temperature UP and DOWN buttons (alarm function is reset if the target temperature is changed if the alarm has already gone off)
- Boiler Mode:
- System is commanded to Boiler Mode by pressing both temperature control buttons at the same time
- System turns both elements on
- When boil established (96 deg C), alarm is triggered (to prompt bitter hops) display then shows a countdown from 59:59 down to 00:00
- At 15:00 remaining, alarm is triggered again, for aroma hops prompt
- At 00:00 the alarm is sounded again and display prompts to go into cooling mode
- When Temperature Down button pressed, both elements turn off, and display shows the boiler temperature
- When 28 degrees is reached, the alarm is sounded again to alert the completion of the cooling cycle

Future Development Potential
- I would like to add a run-dry detection function to turn off the elements when the fluid levels go below a certain point (useful safety feature during the sparge)
- I will probably add a function to cycle one of the elements off during the boil to reduce the strength of the boil
- I might add a solenoid valve to open the cooling heat exchanger tap to fully automate the cooling cycle at the end of the boil phase
- I might make it post a message on Facebook when I complete my brew

I have just done a double brew-day using it for the first time in it’s completed state, and it rocks! :cheers:

Some photos below:

The innards:
B1A142C5-CE74-4086-806F-2E7B41E8F65B_zpstz7poqs5.jpg


In HLT Mode:
C789CA21-C4C7-49EF-9B80-CEA129DE6E24_zpsrd8qydj9.jpg


Connected to the boiler:
92E59AA7-9D64-4BE8-9544-E94B167C2B39_zpsvz6ftnqp.jpg


Boiler countdown:
E09C5F9D-728C-4527-AD97-0027EC18FD99_zpsibawltcv.jpg


Waiting for command to start cooling cycle:
235D5752-5EB1-42EF-8285-21DDF72021D9_zpsmxezk27k.jpg
 
P.S.

The same device could be used to control a fridge with internal heater for lagering with some tweaks to the software, so it is a versitile device! :party:
 
Been thinking about doing something like this :) Good form :D

Would you be happy to share the code ?
 
Sure, I can supply links to all the items I bought too if that is useful.

Clearly you will need to use the same pinouts, or adapt the code if you don't.
 
I should add, that I had one problem with the device, in that the display does not seem particularly tolerant to high current devices powered by the same ring main being switched on, causing it to displays garbage. I got round this by adding some code that reinitialises the display when the temperature up button is pressed. It is not elegant, but it works.
 
Very impressive, I've been meaning to find a good use for my pi now as it just gathers dust at present! Would love to try something like this :thumb:
 
I am struggling at the moment, because the forum makes my Mac crash when I write posts, hence the short reply!

I am happy to help, but for those who are interested in making something similar, you should start off by having a play with the Pi, with a Slice of Pi/o http://shop.ciseco.co.uk/k002-slice-of-pi-o/, and an electronics breadboard, with some LEDs with resistors.

I am happy to turn this into a tuition thread to help if needed.

Get this loaded on your SD card http://www.raspberrypi.org/archives/tag/webide, and play with writing some Python scripts to turn LEDs on etc.
 
I also have a Raspberry Pi gathering dust and might use it for something to do with brewing at some point. Have you thought of writing a how-to to put into the howto forum?
 
I would be tempted, but it wouldn't be a simple guide, would need circuit diagrams etc, so might take quite a long time.
 
+1 to a how-to :thumb: Will pick up a breadboard, few leds etc and have a play around!
 
Just wanted to give this a +1.

I new to homebrew and just finding my feet with kits at the minute, but I've already started reading up on my own brews - and given that I am a computer programmer by trade, with a Raspberry Pi lying about doing nothing, I'd say there is a fair chance of me revisiting this thread again as I get deeper into the hobby.
 
OK then chaps, you have convinced me.

Here is a wiring diagram.

RaspberryPiHLTBoilerController-Robbo100_zpsc7cd73c5.jpg


I will put the information together and then create a dedicated "How-To".

Is this wiring diagram clear enough?

Robbo100
 
Back
Top