Code Monkey home page Code Monkey logo

mitsuac's Introduction

##Arduino/ESP8266 library for Mitsubishi Aircon/HVAC/Heatpump via serial connector CN105 #####Working but under development!

Check out the wiki (https://github.com/jarrod180/mitsuAc/wiki)

The library provides an encode/decode class for protocol actions and also a controller class for simplified interaction from the user code.

It was designed for use with (most/some?) recent mitsubishi heat pump/air con/hvac units and possibly others. The unit requires the CN105 connector which exposes a UART, 5v and 12v.

I used an Adafruit Huzzah Feather ESP8266, which is a 3v chip but the feather has an onboard regulator and the RX has a 5v level shifter. TX line from the feather only supplies 3v but the air con is happy with that. I put 10k pull up resistors between TX and RX lines to 5v.

Might work with other Arduino boards but you may need voltage regulators or adjust some of the library.

Made possible by a good write up by Hadley Rich (https://nicegear.co.nz/blog/hacking-a-mitsubishi-heat-pump-air-conditioner/)

It's designed to be as simple to use as possible, there are only 4 methods:

MitsuAc ac(&Serial);
ac.connect(); // send an init data packet  
ac.monitor(); // service the control loop of the library 
int putSettingsJson(const char* jsonSettings, size_t len); //send one or more parameters to the unit 
void getSettingsJson(char* settings, size_t len); //get the last known settings from the unit

One might receive a string such as:

{"power":"on","mode":"auto","fan":"auto","vane":"3","widevane":"center","temp":22,"roomTemp":22}

And control the unit with:

{"power":"on"}

or

{"power":"on","mode":"auto","fan":"1","vane":"3"}

Credits: Raspberry Pi script and protocol originally reverse engineered by Hadley Rich (@hadleyrich) (http://nice.net.nz)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.