I have a Arduino uno board, ESP-01 board and a logic level shifter (bidirectional) and to program the esp module i wired my Arduino and esp like this
Arduino uno(atmega328p removed) --> level shifter --> ESP-01
5v --> highvolt
3v3 --> lowvolt
TX --> ch1 --> TX
RX --> ch2 --> RX
proper ground connections
but when i click upload the RX pin lights up indicating its receiving data but esp doesn't respond to that when i reset the module while its uploading the compiler throws this
Serial port COM3
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
File "C:\Users\TRAJU\AppData\Local\Arduino15\packages\esp8266\hardware\esp82662円.7.4/tools/upload.py", line 65, in <module>
esptool.main(cmdline)
File "C:/Users/TRAJU/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 2890, in main
esp.connect(args.before)
File "C:/Users/TRAJU/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 483, in connect
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
_
the selected serial port _
does not exist or your board is not connected
It as working fine yesterday and it stopped today :(
Please help and thanks in advance.
1 Answer 1
I found my problem.
esptool.py uploads the firmware at 115200 baud rate, which my logic level converter couldn't handle. I found this out after writing this question. I thought of connecting RX and RX directly to the ESP module's RX and TX and it uploaded the program. Maybe I am wrong. Please, if any one know why this happened I am curios to know. Thanks in advance. ;)
-
Please accept this as the soulution, because the question is answered now.Python Schlange– Python Schlange2021年02月03日 12:31:53 +00:00Commented Feb 3, 2021 at 12:31
-
It will take a day or two before you can do that.timemage– timemage2021年02月03日 13:15:02 +00:00Commented Feb 3, 2021 at 13:15
-
Re: "if any one know why this happened", I would put a scope on it an look at the signals, particularly the rising edges because you may have something based roughly on this design. Questions about that belong more squarely on ASE, though you can probably work it out if my suspicions about the relevance of the appnote happen to be correct. You should be doing something to address 5V -> 3.3V, rather than nothing in any case.timemage– timemage2021年02月03日 21:13:14 +00:00Commented Feb 3, 2021 at 21:13
-
@timemage if i had a scope i wouldn't post this question at all, i could debug it myself (i wish i had a scope) and ya it says it takes around two days to accept my answerBluTen– BluTen2021年02月04日 04:40:28 +00:00Commented Feb 4, 2021 at 4:40