-->
Page 1 of 1

Esp8266-01s help with RX/TX setup

PostPosted: Sat Oct 05, 2019 1:45 am
by JoeSl
Hello everyone!

This must be a question that is asked a million times on this forum..!
I'm connecting an arduino uno rev3 to a Esp8266-01s module.

I'm following these setups: https://cordobo.com/2300-flash-esp8266- ... duino-uno/
The arduino is in reset mode and i'm using the arduino ide serial monitor to send commands.

If I don't use a voltage divider, it works. I can send commands and replies are sent (115200 baud, NL+CR). But I was afraid this would damage it in the long run?
If I use a voltage divider with three 1k resistors, when I power the board the TX blue led stays on and nothing happens. The circuit is:

Code: Select allARDUINO_TX -> 1k ----> 1k -> 1k -> GND
                   '-> MODULE_RX     


Could anyone please help out? what is going on?

Thanks a lot!

Re: Esp8266-01s help with RX/TX setup

PostPosted: Sun Oct 06, 2019 3:11 pm
by btidey
The problem here is that the UNO has a USB to Serial converter on board already connected to the TX and RX pins of the UNO microcontroller. That means both the ESP TX and the UNO microcontroller are trying to drive the RX lines. It might sort of work if one can overdrive the other but it is not a good solution.

Do yourself a favour and get a real standalone USB serial converter rather than trying to use the UNO. They are very cheap.

Re: Esp8266-01s help with RX/TX setup

PostPosted: Sun Oct 06, 2019 3:41 pm
by JoeSl
Thanks for your reply! I am aware of this but as long as you don't use them at the same time, it shouldn't really be a problem, isn't it? I am able to use the ESP module with my PC (serial monitor) or with the UNO.

My question is solely about the voltage to drive the ArduinoTX->EspRX: works at 5V but doesn't at 3.3V using a 1k+1k+1k voltage divider.

Thanks!

Re: Esp8266-01s help with RX/TX setup

PostPosted: Wed Oct 09, 2019 5:37 am
by JoeSl
Nevermind, found the issue, the pins rx/tx were inverted and thus the VD was delivering 2.2 V on the arduino RX.
Now all works perfectly with my UNO.