MAX485 RS-485 module with ESP32

Supply 5 V Bus GPIO
ROREDEDIVCCBAGND

Pins and ESP32 wiring

PinRoleESP32 pinNotes
ROOutput (the part drives it)D25Receiver out, 5 V when powered from 5 V: use a divider before the ESP32 RX pin
REInput (the ESP32 drives it)D26Receiver enable, active LOW. Usually tied to DE and driven by one GPIO
DEInput (the ESP32 drives it)D27Driver enable, HIGH to transmit
DIInput (the ESP32 drives it)D32Driver in. Connect to an ESP32 TX pin (3.3 V is a valid HIGH)
VCCPowerVINNeeds 5 V: use VIN
BNot wired to the ESP32—RS-485 line B. To the bus, never to the ESP32
ANot wired to the ESP32—RS-485 line A. To the bus, never to the ESP32
GNDGroundGND

Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.

This module is sold for 5 V. Its outputs may be 5 V: use a level shifter or a voltage divider on ESP32 inputs.

Sources

Try it in 3D in BoardPilot

BoardPilot Part data (JSON)

Related parts

Part data: CC BY 4.0, free to reuse with credit to BoardPilot.