ESP-S3 Uart

Douglas-EDM
Posts: 12
Joined: Thu May 19, 2022 12:47 pm

ESP-S3 Uart

Postby Douglas-EDM » Tue May 31, 2022 1:25 pm

Hi,
I'm using the We are using a ESP32-S3-DEVKITC-1-N8 with the uart connected to a SIM7600E.
uart.png
uart.png (38.56 KiB) Viewed 6093 times
I can see the TX from the ESP on the RXD of the SIM7600, but we see a signal on the ESP RX as follow:
uart.png
uart.png (38.56 KiB) Viewed 6093 times
The min is 2.84V.
I'm using Arduino IDE 1.8.19 with the following code for sending an AT command:

Code: Select all

HardwareSerial Sender(2);  
void setup() {
Sender.begin(115200 , SERIAL_8N1, 44, 43); 
}
void loop() {
Sender.write("AT");
.
.
.}
I can see that the GSM module is on and working as the light is flashing as should, I believe the problem is tat something is keeping the RX to a minimum of 2.84V instead of pulling it to 0V.

Thank you in advance for any help.
Attachments
rx.jpeg
rx.jpeg (206.11 KiB) Viewed 6093 times

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP-S3 Uart

Postby ESP_Sprite » Tue May 31, 2022 3:36 pm

You have a voltage divider and level shifter in that schematic as if the ESP32-S3 were an 1.8V part. The ESP32-S3 is not an 1.8V part, so I'm scratching my head on why those components are there. Is the SIM7600 1.8V and you accidentally put the level shifting logic in backwards?

Douglas-EDM
Posts: 12
Joined: Thu May 19, 2022 12:47 pm

Re: ESP-S3 Uart

Postby Douglas-EDM » Wed Jun 01, 2022 9:33 am

Hi, I apologize for the unclear schematics. The IC on the right is the SIM7600.
The SIM7600's UART is 1.8V.
For the TX of the sim7600 to the RX of the ESP we used the voltage level shifter as per the SIM7600 datasheet:
lvl shift.png
lvl shift.png (25.38 KiB) Viewed 6045 times
The problem is that the low bits to the ESP only pulls down to 2.8V instead of 0V while the high bits are at 3.3V as it should.
We had a previous issue as well where GPIO0 didn't pull down to 0V but instead remained at 2.8V while setup as in input (we haven't resolved that yet as we could use another pin).

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP-S3 Uart

Postby ESP_Sprite » Thu Jun 02, 2022 5:12 am

What pins/GPIOs on the ESP32 are you using for Tx and Rx?

Douglas-EDM
Posts: 12
Joined: Thu May 19, 2022 12:47 pm

Re: ESP-S3 Uart

Postby Douglas-EDM » Thu Jun 02, 2022 6:27 am

We are using pin 43 and 44, the two marked for U0RXD and U0TXD. They are also marked TX and RX on the dev kit.

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP-S3 Uart

Postby ESP_Sprite » Fri Jun 03, 2022 2:27 am

Ah. The issue likely is that those pins are connected to the USB-serial converter on the devboard, and that is hard-pulling up your Rx line to 3.3V. Suggest you use different pins and a separate UART. The ESP series generally allow you to run an UART on any available GPIO pin: you can tell the Arduino driver which one you like by calling

Code: Select all

Serial2.begin(baud-rate, protocol, RX_pin, TX_pin);

Douglas-EDM
Posts: 12
Joined: Thu May 19, 2022 12:47 pm

Re: ESP-S3 Uart

Postby Douglas-EDM » Mon Jun 06, 2022 6:39 am

Thank you,

We have moved the pins and it worked, we just wondered why that specific pins didn't work as it should.

Who is online

Users browsing this forum: No registered users and 44 guests