albetaCOM / esp-haier

ESP8266 code to connect to Haier Air Conditioner ((firmware version R_1.0.00/e_2.5.14) with wifi module support
53 stars 9 forks source link

Wrong RX/TX wiring? #7

Open wildy opened 3 years ago

wildy commented 3 years ago

Hi.

I noticed that the wiring in the README looks like this:

Red: +5V Black: GND White: TX (ESP -> aircon) Green: RX (aircon -> ESP).

However it didn't work after the first try and I had to swap RX/TX to get it working. Looks like you have to swap it around in the README?

This is the original Wi-Fi dongle as taken from here: https://blog.instalator.ru/archives/433 image

And this is the standard USB-A pinout (courtesy Google Images, just for reference):

image

Also, please add a warning to the README that the supply voltage on this plug is 5V (while logic levels are still the usual 3V3). Lost one poor ESP8266 that way -- another lesson for me to stop being stupid and get some sleep before tinkering with stuff :).

OwlBawl commented 2 years ago

The wiring depends by the side.

On the AC plate we have: RED - 5V Black - Gnd White - RX Green - TX

On the dongle RX/TX are crossed: RED - 5V Black - Gnd White - TX Green - RX

So it depends what are soldering and which side.