-->
Page 1 of 2

Using USB to RS232 Serial Converter for uploading Sketch

PostPosted: Wed Sep 30, 2020 10:58 pm
by sahilautotest
Hi everyone

I have a bare ESP-07S board and I have been using a USB to RS232 Serial converter cable to try and upload an Arduino sketch and it has been failing. I've linked the datasheet below of the cable I'm using
https://www.ftdichip.com/Support/Docume ... CABLES.pdf

Link to the ESP-07S Wifi Module datasheet
https://docs.rs-online.com/fd6c/0900766b815d5375.pdf

The error I get is:
raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

I have been following this tutorial below where I have 4 x 10k resistors and capacitors
in place on my breadboard. I have set GPIO15 and GPIO2 both low, while GPIO2 is set to high. I've also confirmed that I have 3.3 volts running on the module and not 5V because I know that I will fry the module of 5V is applied.

I also placed a capacitor between the EN and GND pin as mentioned in this article below but it was still failing:
https://randomnerdtutorials.com/solved- ... et-header/

Is the best solution just to purchase a USB to TTL converter like this one and not use a USB to RS232 converter cable:
https://www.x-on.com.au/mpn/ftdi/ttl232r3v3pcb

Thank you
Sahil

Re: Using USB to RS232 Serial Converter for uploading Sketch

PostPosted: Fri Oct 02, 2020 1:50 am
by schufti
if you would show what you realy did instead of what (wrong because esp32) "it worked for me so it has to be correct" instructibles you followed ... you placed 4 resistors "where"? did you hear about "one picture tells more than a thousand words"?

Re: Using USB to RS232 Serial Converter for uploading Sketch

PostPosted: Fri Oct 02, 2020 3:52 am
by btidey
RS232 voltage levels are different to what is needed by the esp. They swing positive and negative (typically +/-5V) whereas the esp wants 0/3.3V

Use a serial to 3.3V TTL interface.

You may also have damaged the esp by using that converter.

Re: Using USB to RS232 Serial Converter for uploading Sketch

PostPosted: Fri Oct 02, 2020 4:00 am
by eriksl
RS232 is typically 12-18 V, positive and negative.

"TTL serial", which the ESP's are using can be anything, but are typically 5 V or 3.3 V.

And yes, it's important that they match. Most USB converters can be configured to supply either 3.3 V or 5 V, this will also determine what voltage is used for the signalling.

If you cannot use 3.3 V for whatever reason, you might (!) get away by putting some decent resistors in series with the signalling lines and hope that's enough for the internal clamping diodes in the ESP to be able to do their job without frying them. No guarantees!