GithubHelp home page GithubHelp logo

mitsuremote's Introduction

Introduction

This is a small ESP8266 and ESP32 compatible program to make your Mitsubishi HVAC speak Modbus.

For additional resources, consult the following resources

I'm personally using dev version of ESP8266, which can power using 5V directly. No issues so far.

For dummies, this the connection:

  • HVAC DC 12V (unconnected)
  • HVAC DC 5V <-> ESP 5V
  • HVAC GND <-> ESP GND
  • HVAC TX <-> ESP RX
  • HVAC RX <-> ESP TX

The CN105 cable I bought from usastore.revolectrix.com.

Getting started

  1. Rename secrets.h.example to secrets.h. Replace with Wifi credentials
  2. Check constants.h and modify settings accordingly
  3. Upload SPIFFS / File System Image
  4. Upload code

Remote upload works as well, uncomment relevant lines in platformio.ini.

Operation

The programs kicks off a Modbus TCP server. In addition, it acts as Modbus client, writing the data to predefined Modbus server every ~1s. In my experience, at least with ESP 8266 the Modbus client is more reliable method of integration. You can enable/disable Modbus features in constants.h. Currently client is necessary to control the heatpump via Modbus.

The ON/OFF command is read from the remote Modbus server, and heatpump is commanded accordingly.

Please find the definition of Modbus data in main.cpp comments.

The ESP logs its operatoin via UDP. You can use wireshark or tcpdump to listen for the data. Example: tcpdump -nnASs 1514 src 192.168.1.167 and port 514

The program also opens up a simple web server for controlling the heatpump. With ESP8266 this is quite unreliable in practice.

mitsuremote's People

Contributors

ssalonen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.