Skip to content

Commit

Permalink
Add esp32 wroom howto
Browse files Browse the repository at this point in the history
  • Loading branch information
Bettapro committed Sep 19, 2021
1 parent 68500e9 commit 6c1d4c8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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`
Expand All @@ -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.
Expand All @@ -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 ...).

Expand Down
Binary file added images/esp32_wroom_38_pin.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6c1d4c8

Please sign in to comment.