Joining the Renewable Heating Hub forums is completely free and only takes a minute. By registering you’ll be able to ask questions, join discussions, follow topics you’re interested in, bookmark useful threads and receive notifications when someone replies. When choosing your username, please note that it cannot be changed later, so we recommend avoiding brand or product names. Before registering, please take a moment to read the Forum Rules & Terms of Use so we can keep the community helpful, respectful and informative for everyone. Thanks for joining!
DIY Heat Pump controller (driver)
Hi, all!
In the past few years, I have developed my own heat pumps and created a DIY heat pump controller.
This controller is open to the public and is distributed free of charge. The source code is open source, so the controller can be used as is or customized for any operating conditions.
Hope this will be helpful to someone in renewable energy installations.
Valden Heat Pump Controller
The Valden Heat Pump controller is an open source platform to precisely control heat pumps. This controller can be used for the automation of newly built Heat Pumps (HPs), as a repair controller for old systems or as control system for performing experiments on refrigeration equipment.
Specs
- 12V 0.5A DC power supply,
- 230V output,
- 4 16A relays: Compressor, Hot Circulating Pump (CP) or Air Fan, Cold CP or Air Fan, Crankcase Heater,
- 2 inputs: Hot and cold side refrigerant over/under pressure NC sensors,
- up to 12 temperature (T) sensors, -55..+125 °C range,
- Electronic Expansion Valve (EEV) supported, 6 pin EEV connection: 4 * coils + 2 * 12V,
- automatically turns on/of system when heating required,
- automatic power saving mode,
- built-in protections: cold start, overheat, short-term power loss, power overload, ground loop freeze, compressor protection against liquid and other,
- LED indication,
![]()
Refrigeration schemes supported
- Heat Pump (HP) with Electronic Expansion Valve (EEV),
- HP with capillary tube or TXV,
- EEV-only controller.
Further details, assembly, appendices, fine-tuning options, illustrations, abbreviations, and so on you can find in the permanent Valden Heat Pump Controller repository: https://github.com/openhp/HeatPumpController/
If you have any questions, please feel free to ask me.
Great job, really interesting to see what's involved in controlling a heat pump and good to know I have another option if my cheap Chinese ASHP electrics are kaput.
Thanks
Jon
Hi Gonzho!
I started building a heat pump (I'm still in the process of getting parts), I was very happy with your control project.
I tried to upload arduino ino files but it writes an error.
Unfortunately I don't understand Arduino, so I can't find the cause of the error 🙁
Can you help me with what could be wrong?
Thanks,
Tamas
Valden_ServiceDisplay.ino
Valden_HeatPumpController.ino
I need to work on my Hungarian, but some wild guesses that it could be either a problem with communication with the Arduino - perhaps the programming cable (too long?). Or it could be that you've configured the wrong device in the Arduino GUI. He's using the ATmega328P, I wonder if you might have a different part?
Unfortunately, I can't switch to English.
It gets stuck during the check, it doesn't even try to upload.
Service display:
Heat pump controller:
On Gonzho instruction screenshot Arduino IDE board setting: "Mini", but in BOM is "Pro Mini".
I tried both settings, but not good. I have Adruino Pro Mini 5V/16MHz board.
Hi,
I am not familiar with Ardruino programming, but it would appear that one of the calculations being performed is creating an Integer Overflow, which would mean that the system is not capable of coping with the size of the result.
@derek-m The integer overflows are just warnings, and I don't think they're the source of the problem. It seems to be saying is the program is too big for the available memory - when it builds it saying things like (guessing roughly) 'global variables 883 bytes, plus dynamic memory 1165 bytes. Maximum is 2048 bytes'. What I'm not clear about is whether this is at build or programming time, but I think build time. Which is why I query what kind of chip is being programmed. The Atmega328P (Arduino Mini/Pro Mini) has 32KiB of flash and 2KiB RAM, while the Atmega2560 (Arduino Mega 2560) has 256KiB flash and 8KiB RAM.
It seems the OP's screenshots show both chips, but because this is Hungarian I'm not clear if these are errors or simply informational messages. If I remember the Arduino tools print the memory size occupied by the program when it's successfully built - it might actually be OK, because on the Mini it's taking 97% of flash and 43% of RAM, leaving the rest for dynamic memory.
@tamkov If you try to program your board, does it then fail?
Ah, from googling around, the format is:
Sketch uses 3328 bytes (10%) of program storage space. Maximum is 32256 bytes. Global variables use 2016 bytes (98%) of dynamic memory, leaving 32 bytes for local variables. Maximum is 2048 bytes.
and that doesn't appear to be an error in this case. If it was it would say that.
Thanks.
I tried to upload.
Heat pump controller: uploaded with no errors, looks good, it also sends data via serial port. (bare arduino, controller pcb not yet assembled)
Service display: uploaded with no errors, but lcd is empty, only white background.
Arduino and LCD is new, not used. I tried another 2560 panel but the same.
Could there be no display as long as there is no rs485 connection to the controller?
There is a difference in LCD panel:
Then there is no problem with the translation warnings?
@derek-m
Yes, I did the same with google searches, but I don't know how to fix it.
I tried arduino programming many years ago, but only on an amateur level.
I still had a problem with numbers. (I don't understand a now either floating point number representation)
About 4 months ago I finished our diy GSHP. I think your controller is much more sophisticated than the one I made - our house is very well insulated, needing at most 1.6kW (0C outside 20C inside), and the heatpump I made is a tiny 2.4kW heat output and has simple capillary tube metering device rather than the more sophisticated EEV. Our controller really just monitors behaviour and efficiency, and would switch it off if something got too hot or cold, does a bit of pump over-run. All the 240V stuff I did is on a DIN rail - relays and power meter etc, so the "mbed" controller is low voltage only.
I used a trencher to dig up our garden, putting in 4 parallel 25mm pipes, 40m long each, so a total of 120m length. I filled it initially with straight water, it was ok for a month before it showed signs of icing up, so I added glycol (£200) which fixed it.
The heatpump is made from a 2nd hand R290 Danfoss compressor (ebay!), pair of stainless heat exchangers, copper tubing, and a few other bits. It's physically outside, but inside the EWI envelope of the house - I thought safer outside, but better to have a nice stable temperature. It sounds like a fridge when running, but with the EWI "door" correctly in place it is silent. Everything is bolted to an exterior plywood frame, see pic. If I refurb it sometime, I will upgrade to an extruded aluminium frame for a longer life.
It's been running since Dec 2021, so far 760kWh elec used by it in around 110days operation, we're off the gas 🙂
- 27 Forums
- 2,541 Topics
- 59.2 K Posts
- 660 Online
- 6,822 Members
Join Us!
Worth Watching
Latest Posts
-
RE: Solar Power Output – Let’s Compare Generation Figures
@toodles If I ever catch myself feeling hubristic I ...
By Papahuhu , 28 minutes ago
-
Why? Factor in 85% efficiency for that oil boiler and...
By Old_Scientist , 36 minutes ago
-
RE: Samsung Gen 7 16kW Integrated unit Modbus monitoring
I've been watching this with interest as I would like s...
By JohnnyB , 2 hours ago
-
RE: Aerotherm 12+12kw cascade huge power utilisation
What the hell. There is exactly one reason to use a h...
By bobflux , 2 hours ago
-
RE: If a heat pump can only heat DHW to 50C then what? Issue with 18KW Heliotherm heat pump
Thanks for such a comprehensive response!!! ...
By errmm , 3 hours ago
-
RE: Who's your electricity provider and what's your tariff?
@chandykris Thanks, that’s a fair point and I agree th...
By Eliuccio , 7 hours ago
-
Daikin high temperature heat pump
Hello, I have a DAIKIN ERSQ 016AAV1 16KW. I have a BRC2...
By gajolos , 13 hours ago
-
RE: Setback savings - fact or fiction?
I changed the pump power to the actual value to see if ...
By RobS , 14 hours ago
-
RE: NIBE Heat Pump Warranty: What's an Adequate Engineer Attendance Time?
Totally agree. However the manufacturers know that fe...
By JamesPa , 1 day ago
-
-
RE: The law of unintended consequences....
Oh Thank you Major, I was just beginning to wonder wher...
By Toodles , 1 day ago
-
RE: Forum updates, announcements & issues
I know that the notifications are being delivered now w...
By Mars , 1 day ago
-
RE: Advice needed after a successful "leftfield" experiment.....
@pauli I have sent a direct message with the financial ...
By ChandyKris , 1 day ago
-
RE: Octopus Cosy 12 Heat Pump Regret: Incredibly Loud, Poor Heating & Constant Hum - Help!
Does it disappear when the heat pump is off? What abou...
By JamesPa , 2 days ago
-
RE: Fitting heat pump plumbing and pipes in advance?
Great tips, thanks. The PEX/Al/PEX option sounds much m...
By Jonatan , 2 days ago
-
RE: Struggling to get CoP above 3 with 6 kw Ecodan ASHP
Those control valves on the UFH manifold could be an is...
By Travellingwave , 2 days ago
-
RE: Daikin Altherma 3 LT compressor longevity question
Up to a point yes. However every heat pump (and every ...
By JamesPa , 2 days ago
-
RE: New Build ASHP Defects - Looking for Advice, Support & Shared Experiences
Is that a single pair only? If so it may be part if th...
By JamesPa , 2 days ago
-
@batpred, you’re quite right; it does work well. I don’...
By Majordennisbloodnok , 2 days ago
-
RE: Ecodan Cylinder Possible Weeping Around Thermostat Port
Update: Mitsubishi sent an engineer around. It was li...
By Gruff2001 , 2 days ago
-
RE: A Smarter Smart Controller from Homely?
@benson Agreed. I believe the COP gains with homely, i...
By Papahuhu , 2 days ago
-
How to Find All Your Posts and Topics on the Forum – A Quick Guide
If you’ve ever posted something on the forum and then s...
By Mars , 3 days ago
-
RE: Say hello and introduce yourself
@pt151 welcome to the forums, and looking forward to he...
By Mars , 3 days ago
-
Samsung Gen 7 16kW Integrated unit Modbus monitoring
Looking for some assistance to get modbus monitoring wo...
By antonical , 3 days ago











