diff --git a/README.md b/README.md index 48baa06..41576ce 100644 --- a/README.md +++ b/README.md @@ -66,9 +66,9 @@ Follow links to get them. Refer to [Sw_getting_started.md](docs/Sw_getting_started.md) -Some details about some specific implementations: +Some details: - ESP8266 + MAX485 + EPEVER Solar Tracer [HOW TO](docs/Esp8266_max485_epever_rj45.md) -- ESP32 D1 MINI + MAX485 + EPEVER Solar Tracer [HOW TO](docs/Esp32_d1_mini_max485_epever_rj45.md) +- ESP32 + MAX485 + EPEVER Solar Tracer [HOW TO](docs/Esp32_max485_epever_rj45.md) ## Reference diff --git a/docs/Esp32_d1_mini_max485_epever_rj45.md b/docs/Esp32_max485_epever_rj45.md similarity index 58% rename from docs/Esp32_d1_mini_max485_epever_rj45.md rename to docs/Esp32_max485_epever_rj45.md index 3824e8d..5b8b18c 100644 --- a/docs/Esp32_d1_mini_max485_epever_rj45.md +++ b/docs/Esp32_max485_epever_rj45.md @@ -1,19 +1,22 @@ -# Connect ESP32 D1 MINI to EPEVER A/B Series ( + MAX485) +# Connect ESP32 to EPEVER A/B Series ( + MAX485) Here the material involved: -* [ESP32 D1 MINI](https://www.aliexpress.com/premium/esp32-d1-mini.html?d=y&origin=y&catId=0&initiative_id=SB_20210919083440&SearchText=esp32%20d1%20mini) +* ESP 32 MODULE, below the modules tested: + * [ESP32 D1 MINI](https://www.aliexpress.com/premium/esp32-d1-mini.html?d=y&origin=y&catId=0&initiative_id=SB_20210919083440&SearchText=esp32%20d1%20mini) + * [ESP32 WROOM DEV MODULE](https://it.aliexpress.com/wholesale?catId=0&initiative_id=SB_20210919092741&isPremium=y&SearchText=esp+wroom-32+38+pin+devkit) + * or any esp32 module you like * [EPSolar/EPEver Tracer A/B-Series](https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20170114172728&SearchText=tracer+mppt+rs485) * [MAX 485 UART Module](https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20210919083609&isPremium=y&SearchText=max485+module) * An old ethernet cable with RJ45 connector you are happy to cut open -## ESP32 D1 MINI <-> MAX485 module +## ESP32 <-> MAX485 module ![This one worked for me](../images/max485_module.jpg) It's powered from `+5V` from ESP32 module, and wired as following: - +### ESP32 D1 MINI - `DI` -> `IO17` / `GPIO17` / `TX2` - `RO` -> `IO16` / `GPIO16` / `RX2` - `DE` and `RE` are interconnected with a jumper and then connected to pin `TCK` / `GPIO13` @@ -22,6 +25,14 @@ It's powered from `+5V` from ESP32 module, and wired as following: ![ESP32 D1 MINI](../images/esp32_d1_mini_pins.png) +### ESP32 WRROOM 38 PIN +- `DI` -> `28` / `GPIO17` / `TX2` +- `RO` -> `27` / `GPIO16` / `RX2` +- `DE` and `RE` are interconnected with a jumper and then connected to pin `15` / `GPIO13` +- `VCC` to `+3.3V` / `3.3v` on ESP32 + +![ESP32 WRROOM 38 PIN](../images/esp32_wroom_38_pin.jpg) + ## MAX485 module <-> EPEVER CONTROLLER (RJ45) Cut open your ethernet cable and split out pin 3, 5, 7 (B, A, GND). Refer to [Tracer Modbus PDF](../docs/1733_modbus_protocol.pdf) for additional info. @@ -38,14 +49,16 @@ Connect cables as follows: ## BASE SW CONFIGURATION Edits required on *src/config.h*: -- `#define BOARD_ST_SERIAL_PIN_MAPPING_RX 16` -- `#define BOARD_ST_SERIAL_PIN_MAPPING_TX 17` +- `#define BOARD_ST_SERIAL_STREAM Serial2` [default] - Uncomment `#define USE_SERIAL_MAX485` - `#define MAX485_DE 13` - `#define MAX485_RE_NEG 13` Edit on *platformio.ini* (Platformio only): -- `platformio.default_envs = wemos_d1_mini32` (usb/serial fw flash) or `platformio.default_envs = wemos_d1_mini32_ota` (ota fw flash) +- **ESP32 MINI D1 - only** + - `platformio.default_envs = wemos_d1_mini32` (usb/serial fw flash) or `platformio.default_envs = wemos_d1_mini32_ota` (ota fw flash) +- **ESP32 DEV MODULE - only** + - `platformio.default_envs = esp32dev` (usb/serial fw flash) or `platformio.default_envs = esp32dev_ota` (ota fw flash) You may need to make more changes according to your needs (ntp syn/led status/ data to monitor ...). diff --git a/images/esp32_wroom_38_pin.jpg b/images/esp32_wroom_38_pin.jpg new file mode 100644 index 0000000..0bb43f2 Binary files /dev/null and b/images/esp32_wroom_38_pin.jpg differ