I have two ESP32 that are communicating via USART (TTL) on the Serial2.
The TX2 pin of ESP_Alice is connected with the RX2 pin of ESP_bob.
The RX2 pin of ESP_Alice is connected with the TX2 pin of ESP_bob.
(left on the image)
It works, but it's a noisy channel and I need to increase cable length. I bought two MAX3232-based boards and I connected them as in the right scheme on the image:
TX2 RX2 between ESP and MAX3232 boards are connected directly (on the TTL SIDE), the TX and RX pin of the two boards (on the RS232 side) are crossed.
Boards are powered with 3.3 V and GND pin connected to ESP_Alice
It does not communicate at all (same program that works correctly when the two boards are connected directly with the TTL USART).
Connections of RS232 to TTL boards
What am I doing wrong here?
-
1On the right side, 3.3v and GND, and GND on the second board, are connected to the wrong pins.dda– dda2024年04月19日 13:39:32 +00:00Commented Apr 19, 2024 at 13:39
-
try to esp tx <--> rx max3232 And esp rx <--> tx max3232Edan Lee– Edan Lee2024年10月25日 06:21:52 +00:00Commented Oct 25, 2024 at 6:21
-
@EdanLee Look at the arrows on the PCB: TXD of the MAX3232 boards is an input, so connecting ESP's TX here is correct.the busybee– the busybee2024年10月25日 06:30:36 +00:00Commented Oct 25, 2024 at 6:30
1 Answer 1
You seem to have the polarity of the supply to the RS232-TTL boards reversed.
There is a +
symbol next to the pads that you have the GND connected to.
It should be like this:
-
Sorry, I messed up with the second image that I meant to use as an 'enlargement' of the first one. The wiring is already connected as you suggest in your image. I'll try to update my question with your imageCarlo Tavian– Carlo Tavian2024年04月22日 08:58:27 +00:00Commented Apr 22, 2024 at 8:58
Explore related questions
See similar questions with these tags.