Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About UART RS485 Echo Example using MAX485 (IDFGH-6475) #8132

Closed
nopnop2002 opened this issue Dec 22, 2021 · 1 comment
Closed

About UART RS485 Echo Example using MAX485 (IDFGH-6475) #8132

nopnop2002 opened this issue Dec 22, 2021 · 1 comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@nopnop2002
Copy link

nopnop2002 commented Dec 22, 2021

Here is an example of the UART RS485 Echo Example.

Readme has the following schematic:

         VCC ---------------+                               +--------------- VCC
                            |                               |
                    +-------x-------+               +-------x-------+
         RXD <------| RO            |               |             RO|-----> RXD
                    |              B|---------------|B              |
         TXD ------>| DI  MAX485    |    \  /       |    MAX485   DI|<----- TXD
ESP dev kit         |               |   RS-485 side |               |  SERIAL ADAPTER SIDE
         RTS --+--->| DE            |    /  \       |             DE|---+
               |    |              A|---------------|A              |   |
               +----| /RE           |               |            /RE|---+-- RTS
                    +-------x-------+               +-------x-------+
                            |                               |
                           ---                             ---

MAX485 is a single 5V power supply.
MAX485 data sheet has the following description:

Receiver Output Voltage max=Vcc+0.5[v]

Therefore, I think that 5V is input to the RXD of ESP32.

ESP32 does not support 5V input.

MAX3485 is a single 3.3V power supply.
Shouldn't we use MAX3845 instead of MAX485?

@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 22, 2021
@github-actions github-actions bot changed the title About UART RS485 Echo Example using MAX385 About UART RS485 Echo Example using MAX385 (IDFGH-6475) Dec 22, 2021
@nopnop2002 nopnop2002 changed the title About UART RS485 Echo Example using MAX385 (IDFGH-6475) About UART RS485 Echo Example using MAX485 (IDFGH-6475) Dec 22, 2021
@alisitsyn
Copy link
Collaborator

@nopnop2002,

Thank you for your issue. The MAX485 is able to work normally either at VCC=3.3V or at 5V and it is provided as an example of a very commonly used line driver. I agree, the standard operating voltage of MAX485 as per its datasheet is 5V. With 3.3V it can work normally but the differential output voltage may be lower which will affect the operation with longer cables. So, it is better to change the recommended driver in the example to MAX3845 or ADM483, (MAX483) as appears in the documentation.
I can confirm this issue as minor and this misleading information has to be corrected in the example. Let me know if you have any other comments.

@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally and removed Status: Opened Issue is new labels Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants