Cant connect to esp8266 using uno r3

michaelb33:
Yes I have one end of the 10k resistor connected to the power line of my bread board which is connected to the 3.3v of the uno as well as the vcc and ch pd of the esp. And the other end of the 10k connected to the gpio0 on the esp.

Is it likely my esp isn't working correctly even thought the leds on it work?

Cheers

open Serial Monitor on COM port of the Uno/esp8266, set the baud rate to 74880 and reset the esp8266 by disconnecting the CH-PD and connecting it back. you should see the bootlog of the esp8266. then try the same with 115200 baud. you should see the startup prints of the AT firmware

When I connect ch_pd back on at 74880 the bootlog says:

22:17:24.702 ->
22:17:24.702 -> ets Jan 8 2013,rst cause:1, boot mode:(3,6)
22:17:24.702 ->

Then when I change it to 115200 and do it again it just has a lot of gibberish using these symbols:
{$<c$c$g'lng'1'1'b'x{'

At least I'm getting something on the serial monitor now lol.

Once again thanks for your help.

Does the uno provide enough power for the esp01. I came across this on the net:

ESP8266 all models run on 3.3V, first time I thought I could use Arduino 3.3V to power up the ESP8266-01, but this didn't work, because the pin which Arduino provide outputs current just merely 50mA, If you looking through the datasheet of ESP8266, you will find out that ESP8266 require 200mA in maximum. so that is way too low for it, we need an external power supply!

From this project, which is similar to what I want to eventually achieve:

Does that instructable look like a good one?

Cheers

michaelb33:
Does the uno provide enough power for the esp01. I came across this on the net:

ESP8266 all models run on 3.3V, first time I thought I could use Arduino 3.3V to power up the ESP8266-01, but this didn't work, because the pin which Arduino provide outputs current just merely 50mA, If you looking through the datasheet of ESP8266, you will find out that ESP8266 require 200mA in maximum. so that is way too low for it, we need an external power supply!

From this project, which is similar to what I want to eventually achieve:

https://www.instructables.com/id/ESP8266-With-DHT11-Temperature-Humidity-Monitor/

Does that instructable look like a good one?

Cheers

yes it does supply enough power (R3 3.3 V pin can supply 150 mA). It is not enough for esp8266 full power wifi radio (170 mA) if far away from AP, but for normal function, it is ok.

try 9600 baud for communication with AT firmware

Yea I tried all the different baud rates and I just get less gibberish with a lower baud rate. The only one that did something different is at 74880.

Cheers

michaelb33:
Yea I tried all the different baud rates and I just get less gibberish with a lower baud rate. The only one that did something different is at 74880.

Cheers

then the AT firmware is not there. time to upload it (at Espressif they call it download)

wire io 0 to ground to put the esp8266 into flashing mode on reset and reset it

download the AT firmware version 1.6.2 (1.7 doesn't fit into esp-01)

use Espressif Flash Download Tool (Windows only)

the addresses for 1 MB flash of the esp-01 are in chapter 1.2.4 of the AT firmware reference

Juraj:
then the AT firmware is not there. time to upload it (at Espressif they call it download)

wire io 0 to ground to put the esp8266 into flashing mode on reset and reset it

download the AT firmware version 1.6.2 (1.7 doesn't fit into esp-01)
ESP-AT | Espressif Systems

use Espressif Flash Download Tool (Windows only)
Tools | Espressif Systems

the addresses for 1 MB flash of the esp-01 are in chapter 1.2.4 of the AT firmware reference
Download Overview | Espressif Systems

Right so I followed your instructions and it ended up saying com fail on the flash tool and and error message. Here are screen shots of the settings and results. Thanks for being patient with me.

Cheers

Forgot to add that I connected the gpio0 to ground then unplugged the ch_pd pin and plugged it back in to reset it in flash mode like you said.... and im pretty sure I did everything else right.

And there was 2 options for the esp_init_data_default_v08.bin file so I tried that one and the esp_init_data_default_v05.bin file as well. The pictures are when I used the v05.bin file.

did you close the Serial Monitor?

Yes it wouldn let me start it unless I closed it. Are all my settings correct on the flash tool and my esp on the arduino ide?

The esps blue light was flashing lots while it was running.

try to reset the esp-01 right before the upload

Juraj:
try to reset the esp-01 right before the upload

So I disconnect the ch_pd pin the reconnect it just before I click start and I still get the same result:

test offset : 1028096 0xfb000
case ok
test offset : 1032192 0xfc000
case ok
test offset : 516096 0x7e000
case ok
test offset : 1040384 0xfe000
case ok
test offset : 0 0x0
case ok
test offset : 4096 0x1000
case ok

CONNECT BAUD: 115200

..................................................[2019-07-05 19:12:51,845][ESP8266Loader_spi[1]][espDownloader.py][line:358][ERROR]: Chip sync error: Failed to connect to ESP8266: Timed out waiting for packet header
[2019-07-05 19:12:51,845][ESP8266Loader_spi[1]][espDownloader.py][line:446][ERROR]: ESP8266 Chip sync error esp_sync_blocking.

Sorry for talking so much of your time. So frustrating lol.

Cheers for your help

copy please the boot log with io 0 wired to ground
I want to see the
ets Jan 8 2013,rst cause:1, boot mode:(3,7)
line

21:26:42.679 -> ets Jan 8 2013,rst cause:1, boot mode:(1,3)
21:26:42.679 ->

When I do the reset then try to flash the esp I am suppose to have the gpio0 wired to ground right?

michaelb33:
21:26:42.679 -> ets Jan 8 2013,rst cause:1, boot mode:(1,3)
21:26:42.679 ->

When I do the reset then try to flash the esp I am suppose to have the gpio0 wired to ground right?

yes. the 1 in boot mode shows that you really have io 0 LOW. but the second value should be 6 or 7, not 3.
pull io 2 HIGH over a resistor
I don't know yet what to do with it. doesn't something touching the soldering points of the module?

Juraj:
yes. the 1 in boot mode shows that you really have io 0 LOW. but the second value should be 6 or 7, not 3.
pull io 2 HIGH over a resistor
I don't know yet what to do with it

I just tried it with the gpio0 wired high on a resistor then back to low and this is the response I got.

22:06:09.239 -> ets Jan 8 2013,rst cause:1, boot mode:(3,3)
22:06:09.239 ->
22:06:29.715 ->
22:06:29.715 -> ets Jan 8 2013,rst cause:1, boot mode:(1,7)
22:06:29.715 ->

doesn't something touching the soldering points of the module?
if you got 1,7, close the Serial Monitor and try the upload in the Tool

No nothing touching the soldering point although when I first got the esp in the mail I noticed a white stain around the solder points on top of the module. Kind of similar to a light calcium built up on a tap or window. Most of it disappeared when I rubbed it with my finger.

Every time I reset it now it shows this in the serial monitor:

22:38:16.428 -> ets Jan 8 2013,rst cause:1, boot mode:(1,7)
22:38:16.428 ->

then I try to upload and I get this:

test offset : 1028096 0xfb000
case ok
test offset : 1032192 0xfc000
case ok
test offset : 516096 0x7e000
case ok
test offset : 1040384 0xfe000
case ok
test offset : 0 0x0
case ok
test offset : 4096 0x1000
case ok

CONNECT BAUD: 115200

..................................................[2019-07-05 22:44:01,150][ESP8266Loader_spi[1]][espDownloader.py][line:358][ERROR]: Chip sync error: Failed to connect to ESP8266: Timed out waiting for packet header
[2019-07-05 22:44:01,150][ESP8266Loader_spi[1]][espDownloader.py][line:446][ERROR]: ESP8266 Chip sync error esp_sync_blocking.

check the esp8266 RX wiring. if you have a voltage divider remove it. esp8266 can handle 5V pull-up level currents