From 4274a11ed5870d2e7181de3a139ddc6aa653126f Mon Sep 17 00:00:00 2001 From: GrKoR Date: Sat, 11 Mar 2023 17:29:15 +0400 Subject: [PATCH] USB connection was described --- docs/HARDWARE-EN.md | 35 +++++++++++++++++++++++++++++------ docs/HARDWARE.md | 5 +++-- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/docs/HARDWARE-EN.md b/docs/HARDWARE-EN.md index 3b74dc0..f0397d3 100644 --- a/docs/HARDWARE-EN.md +++ b/docs/HARDWARE-EN.md @@ -8,17 +8,40 @@ I leave GPIO0 in air cause I don't see any reason to solder additional component ESP-12E before DC-DC and air conditioner connected: ![esp-12e minimal photo](https://github.com/GrKoR/esphome_aux_ac_component/blob/master/images/esp-12e.jpg?raw=true) -Air conditioner internal block has a 5-wire connection to the wifi-module. Connector is [JST SM](https://www.jst-mfg.com/product/pdf/eng/eSM.pdf). - -## Wires ## -1. Yellow: +14V DC. Measured +14.70V max and +13.70V min. Service manual declares up to +16V. +Air conditioner internal block has a 5-wire or a 4-wire (pseudo-USB) connection to the wifi-module. + +## 5-wire connection +It use [JST SM](https://www.jst-mfg.com/product/pdf/eng/eSM.pdf) connector for 5-wire connection. + +### Pinout ### +1. Yellow: +12V..+14V DC. Measured +14.70V max and +13.70V min. Service manual declares up to +16V. 2. Black: ground. 3. White: +5V DC (max: +5.63V; min: +4.43V) I have no idea what this is for. It goes directly to the air conditioner microcontroller through resistor 1kOhm and it does not affect the operation of the module. 4. Blue: TX of air conditioner. High is +5V. 5. Red: RX of air conditioner. High is +5V. - + +You should feed your ESP **from +12V..+14V line only**! It is prohibited to use +5V line for this purpose. ++5V line is digital signal line and directly goes to conditioner's controller. It can't provide enough power. In worst scenario you probably can burn down your air conditioner controller. + +## 4-wire connection (pseudo-USB) +For 4-wire connection it is used USB-like connector. It is only physical USB but its pinout is UART with +12V..+14V power line. + +**ATTENTION!** It is incompatible with normal USB devices! Ordinary USB device like USB flash drive will be damaged if it will be plugged in air conditioner USB connector. + +### Pinout ### + + +1. +12V..+14V DC. Service manual declares up to +16V. +2. RX of air conditioner. High level is +5V. +3. TX of air conditioner. High level is +5V. +4. GND - ground. + +Big thanks to [@diabl0](https://github.com/diabl0) for this pinout in [issue #70](https://github.com/GrKoR/esphome_aux_ac_component/issues/70). + +## Power supply + For power supply it is possible to use any kind of suitable modules. I use this: -![power module](https://github.com/GrKoR/esphome_aux_ac_component/blob/master/images/DD4012SA.jpg?raw=true). +![power module](https://github.com/GrKoR/esphome_aux_ac_component/blob/master/images/DD4012SA.jpg?raw=true). ## Connections ## Black wire of AC's connector goes to the middle pin of the power module and to the GND pin of esp-12e. diff --git a/docs/HARDWARE.md b/docs/HARDWARE.md index 91fc27f..7215e12 100644 --- a/docs/HARDWARE.md +++ b/docs/HARDWARE.md @@ -19,6 +19,8 @@ 4. Синий: TX кондиционера. Высокий уровень +5В. 5. Red: RX кондиционера. Высокий уровень +5В. +Питание ESP подключать **ТОЛЬКО** к линии +12В..+14В! Имеющийся в 5-проводном подключении контакт с +5В для питания ESP использоваться не должен. Он является сигнальным, подключен через резистор непосредственно на ногу контроллера на материнской плате кондиционера и способен выдавать мизерный ток. При плохом стечении обстоятельств повесив питание ESP на эту линию можно сжечь мозги кондиционеру. + ## 4-проводное подключение (псевдо-USB) Для 4-проводного подключения используется USB-коннектор. От настоящего USB здесь только коннектор. По пинам в этом разъеме UART и +12В..+14В питание. @@ -32,14 +34,13 @@ 3. TX кондиционера. Высокий уровень +5В. 4. земля. +Большое спасибо [@diabl0](https://github.com/diabl0) за эту распиновку ([issue #70](https://github.com/GrKoR/esphome_aux_ac_component/issues/70)). ## Питание Для питания ESP8266 можно использовать любой подходящий DC-DC преобразователь. Я использовал такой: ![power module](https://github.com/GrKoR/esphome_aux_ac_component/blob/master/images/DD4012SA.jpg?raw=true | width=200). -Питание ESP подключать **ТОЛЬКО** к линии +12В..+14В! Имеющийся в 5-проводном подключении контакт с +5В для питания ESP использоваться не должен. Он является сигнальным, подключен через резистор непосредственно на ногу контроллера на материнской плате кондиционера и способен выдавать мизерный ток. При плохом стечении обстоятельств повесив питание ESP на эту линию можно сжечь мозги кондиционеру. - ## Подключение ## Черный провод (земля) подключается к земле DC-DC преобразователя и к пину GND модуля ESP8266. Желтый провод подключается ко входу DC-DC преобразователя (в моём случае контакт Vin).