Skip to content
/ HeatPump Public
forked from unreality/HeatPump

Arduino library to control Mitsubishi Heat Pumps via connector cn105

Notifications You must be signed in to change notification settings

kayno/HeatPump

 
 

Repository files navigation

HeatPump

Arduino library to control Mitsubishi Heat Pumps via connector cn105

Quick start

Controlling the heat pump

HeatPump hp;
hp.connect(&Serial);

heatpumpSettings settings = {
    "ON",  /* ON/OFF */
    "FAN", /* HEAT/COOL/FAN/DRY/AUTO */
    26,    /* Between 16 and 31 */
    "4",   /* Fan speed: 1-4, AUTO, or QUIET */
    "3",   /* Air direction (vertical): 1-5, SWING, or AUTO */
    "|"    /* Air direction (horizontal): <<, <, |, >, >>, <>, or SWING */
}; 

hp.setSettings(settings);
// OR individual settings
// hp.setModeSetting("COOL");

hp.update();

See heatPump_test.ino

Getting updates from the heat pump

void setup() {
  HeatPump hp;
  hp.connect(&Serial);
}

void loop() {
  hp.sync();

  /* get settings from heatpump, including room temperature in settings.roomTemperature */
  heatpumpSettings settings = hp.getSettings();
}

Contents

  • sources
  • sample usage code
  • Demo circuit using ESP-01

Installation

  • PULL or download zip.
  • Move contents into Arduino library directory
  • Restart IDE, samples should be avaliable

Notes

  • Tested with ESP8266
  • Tested with Arduino Micro Pro / Arduino Nano
  • Tested with Mitsubishi HeatPump MSZ-FH/GE(wall units) and SEZ-KD (ducted units) complete list

Demo Circuit

Parts required to make a CN105 female connector

========================================
Special thanks to Hadley in New Zealand

GNU Lesser General Public License

https://www.gnu.org/licenses/lgpl.html

About

Arduino library to control Mitsubishi Heat Pumps via connector cn105

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 79.5%
  • Python 20.5%