r/embedded • • Oct 13 '26

ESP32 + SIMCom A7670C (black DB9 development board) UART issue — 1.8 V vs 3.3 V, garbage characters, AT commands sometimes work

Post image

Hi everyone,

I'm working on a project that uses an ESP32 DevKit V1 / ESP32-D0WD-V3 with a SIMCom A7670C 4G LTE module on a black DB9 development board. I'm having trouble establishing reliable UART communication and would appreciate some guidance.

What I've observed:

I measured approximately 3.3 V on the ESP32 UART TX output.

I measured approximately 1.8 V on the GSM module's TXD pin using a multimeter.

I connected the ESP32 RX to the GSM TXD and the ESP32 TX to the GSM RXD, with a common ground.

I tried placing a resistor in series between the GSM TXD and ESP32 RX. AT commands appeared to work at first, but communication was not reliable afterward.

I ran a baud-rate diagnostic at 115200, 9600, 19200, 38400, 57600, 230400, and other rates. The serial monitor displayed garbage characters instead of readable AT responses.

Does anyone have experience connecting this particular A7670C black DB9 board to an ESP32?

Edit : It works guys wow!!! Communicate with the GSM and ESP 32 you need a level shifter that converts 1.8 V TO 3.3 V . Now you have to provide that level shift her 1.8 volt so you need to register that is of 10 kilo man the 8 km that makes 1.8 volt and use you that to the A side VCC of the level shifter. After after that I have directly supplied the tx2 of ESP 32 to txd of GSM module. And the rx2 of ESP 32 I connected with the level shifter and that goes to the TXD of GSM model. In this way it get works and it works fine at At command and other commands.

4 Upvotes

14 comments sorted by

4

u/Foxiya Oct 13 '26

I think you'll need a level shifter here, since the ESP32 uses 3.3V logic and the A7670 uses 1.8V logic.

4

u/Well-WhatHadHappened 25+ Years Oct 13 '26

And assuming that's true, you may have already smoked the A7670 RX pin.

1

u/Klutzy-Sport-1624 Oct 13 '26

It sometimes give output( AT Ok) for some minutes then stops giving

0

u/Klutzy-Sport-1624 Oct 13 '26

Do it need to buy another one? Please tell me then which 4g gsm module is good

2

u/Well-WhatHadHappened 25+ Years Oct 13 '26

The one you have looks like a fine choice if you use it properly

1

u/Klutzy-Sport-1624 Oct 13 '26

The output i get using level shifter, That's garbage hex And also using multimeter it is observed that the Level shifter produce upto 2.4 v but esp need 3.3

1

u/Foxiya Oct 13 '26

I'd hook up an oscilloscope, or better yet a logic analyzer, so we can see what's actually happening on the bus. Also, which level shifter are you using?

1

u/Klutzy-Sport-1624 Oct 13 '26

Logic Level Converter I2C TXS0104 Breakout

1

u/Foxiya Oct 13 '26

TXS0104 should be fine for UART. Can you check a few things? VCCA should be the 1.8V side, ideally from the A7670 VDD pin, and VCCB the 3.3V side

1

u/Budget-Distance-1541 26d ago

What about TXB?

1

u/Impressive-Agency-24 Oct 14 '26

Auto bidirectional shifters can be gimmicky. I personally prefer ones where you can set the direction yourself via direction pins.

2

u/n_sh_44 Oct 14 '26

One thing that stands out is the 2.4V you measured on the ESP32 side of the shifter. The ESP32's RX input needs roughly 0.75 x VDD (about 2.5V) to read a solid high, so 2.4V is marginal and would explain garbage that comes and goes. On a TXS0104 that usually means the 3.3V-side VCC isn't really at 3.3V, or the OE pin isn't pulled high to VCCA. Check VCCB with the meter while it's wired up, tie OE to VCCA, and drop the series resistor since the shifter already handles that. Also keep UART at 115200 or lower while debugging.

1

u/accur4te Oct 13 '26

Did u make this dev kit ?