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

RS485-TTL module without flow control pin

(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.

RS485-TTL module with flow control pin

(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
⚠️ **GitHub.com Fallback** ⚠️