Hello guys
im facing a problem to connect my esp32 with GSM SIM800L
here is what i did:
power up esp32
power up sim800l (with its own power source)
TX (esp32) -> RX (sim800l)
RX (es32) -> TX (sim800l)
the problem is my ESP goes on error when i connect the ground of SIM800L to ESP32, and the error is this
'''
ERROR thonny.plugins.micropython.backend: PROBLEM WITH THONNY'S BACK-END:
Traceback (most recent call last):
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\backend.py", line 347, in _handle_normal_command
response = handler(cmd)
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\backend.py", line 707, in _cmd_get_globals
"{name : (__thonny_helper.repr(value), __thonny_helper.builtins.id(value)) for (name, value) in __thonny_helper.builtins.globals().items() if not name.startswith('__')}"
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\backend.py", line 605, in _evaluate
out, err = self._execute(script, capture_output=True)
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\backend.py", line 561, in _execute
self._execute_with_consumer(script, consume_output)
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\bare_metal_backend.py", line 698, in _execute_with_consumer
self._submit_code(script)
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\bare_metal_backend.py", line 557, in _submit_code
self._submit_code_via_raw_paste_mode(to_be_sent)
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\bare_metal_backend.py", line 645, in _submit_code_via_raw_paste_mode
raise AssertionError("Got %r instead of raw-paste confirmation" % response)
AssertionError: Got b'' instead of raw-paste confirmation
'''
also i did some measurements on the RX and TX, as soon as i connect the grounds together, i have .27 volts on RX and TX, and esp32 HANGS
any ideas?
ESP32 UART with GSM SIM800L
Re: ESP32 UART with GSM SIM800L
First of all: You have to connect the GND pins of ESP32 and GSM SIM800. Otherwise communication is not possible.
If connecting the GND pins causes as voltage drop, then the two power sources are not independent. What type of power sources do you use?
If connecting the GND pins causes as voltage drop, then the two power sources are not independent. What type of power sources do you use?
Re: ESP32 UART with GSM SIM800L
thanks for the reply,
first I connect grounds and then power up devices (but no luck)
I'm using the LM2596 power source for the GSM module (4.1v)
and for the ESP32 (USB Port of my PC as data and power source)
Re: ESP32 UART with GSM SIM800L
is the input power source for the LM2696 independent? Or where does the device it's power from?
Re: ESP32 UART with GSM SIM800L
That's strange. If connection the GND lines has an effect on levels, then there must be a second low impedance connection between the two devices.
Re: ESP32 UART with GSM SIM800L
OK HERE IS Solution:
I did connect a 1K ohm resistor to each line (RX and TX), and a 5.7K ohm resistor to the line (TX of ESP32 and RX of SIM800l) as well
this made ESP works well,
I did connect a 1K ohm resistor to each line (RX and TX), and a 5.7K ohm resistor to the line (TX of ESP32 and RX of SIM800l) as well
this made ESP works well,