Schematics - esphome-econet/esphome-econet GitHub Wiki
These schematics are based on https://github.com/syssi/esphome-solax-x1-mini#schematics and https://github.com/KlausLi/Esp-Soyosource-Controller/blob/main/BastelPlan3000_Soyosource_Controller_by_BavarianSuperGuy.png
Note: for ESP8266 you should wire pins GPIO4 and GPIO5 for TX and RX. All the configs in the repository are using these pins. Users have reported issues with other pins.
substitutions:
tx_pin: GPIO4
rx_pin: GPIO5
platform: esp8266
(This is for modules such as HW-0519)
RS485 UART
βββββββ βββββββββββββββ βββββββββββββββββββ
β β β GNDβ<--------->βGND β
β-β 3 β<-----B- ---->β RS485 RXDβ<--------->βRX ESP32/ β
| 4 β<---- A+ ---->β to TTL TXDβ<--------->βTX ESP8266 β
β-β 5 β<--- GND ---->β module VCCβ<--------->β3.3V VCCβ<--
β β β β β GNDβ<--
βββββββ βββββββββββββββ βββββββββββββββββββ
Note: for some RS485-TTL modules such as MAX13487 you need to connect the RX pin of the ESP board to the TX pin of the RS485-TTL module, and the TX pin to the RX pin, see wiring with photos here.
(This is for modules such as MAX485)
RS485 UART
βββββββ βββββββββββββββ βββββββββββββββββββ
β β β DIβ<--------->βTX β
β-β 3 β<-----B- ---->β RS485 DEβ<--β β ESP32/ β
| 4 β<---- A+ ---->β to TTL REβ<--β΄------>βGPIO0 ESP8266 β
β-β 5 β<--- GND ---->β module ROβ<--------->βRX β
β β β β β β
βββββββ β VCCβ<--------->β3.3V VCCβ<--
β GNDβ<--------->βGND GNDβ<--
βββββββββββββββ βββββββββββββββββββ
Please make sure to power the RS485 module with 3.3V because it affects the TTL (transistor-transistor logic) voltage between RS485 module and ESP.
If you have a module with a flow control pin you need to add the following in your yaml (you need to match the actual pin you used):
econet:
flow_control_pin: GPIO0