Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

MAX485 connection to ESP WROOM 32 #10

Open
salvq opened this issue Oct 10, 2019 · 1 comment
Open

MAX485 connection to ESP WROOM 32 #10

salvq opened this issue Oct 10, 2019 · 1 comment

Comments

@salvq
Copy link

salvq commented Oct 10, 2019

Hello, trying to understand MAX485 connection to ESP32 from your schema and sketch, please help me to understand.

I have ESP WROOM 32 pinnout
image

Your setup for SDM630 is "The ESP is connected to a max3485 with pins 17 (RX), 4 (TX) and 16 as RTS.".

Based on my pinnout, is it correct to be sketch changed to ?

  • PIN U2_RXD (GPIO16) to RO (receiver output)
  • U2_TXD (GPIO17) to DI (driver input)
  • D4 (GPIO4) to DE/RE (driver enable/receiver enable)

So your sentence for my setup would become "The ESP is connected to a max3485 with pins 16 (RX), 17 (TX) and 4 as RTS."

Thanks

@bertmelis
Copy link
Owner

I have no experience with your module. But you can see in the example you have to 'begin' the serial interface yourself. Here you can assign the pins yourself.

The RTS pin should be provided in the modbus object's constructor. This again can be any gpio pin.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants