ESP8266-01

Hello,
I currently have an ESP8266-01 and it is connected to an Arduino UNO. The serial connection is working but when I try to connect to my modem I get an error.
AT=OK
AT+RST=Ready
AT+CWMODE?=2
AT+CWLAP=Error
AT+CWJAP"ssid","password"=Error
I believe that I need to update my firmware to make it connect? I have tried many tutorials and videos. All have different solutions and techniques.
Two of which are:
http://www.electrodragon.com/w/index.php?title=ESP8266&redirect=no
and http://www.espressif.com/en/support/download/other-tools?keys=&field_type_tid[]=14
I am new to this and I hope someone can help me get on the best path to fix this issue.
I believe I need to connect the GPIo0 pin to GND to download the firmware. Is that correct?
I will need step by step instructions if possible. I am using a windows10 computer.
Thanks

You probably have the ESP-01 module.

Are you using the Arduino Uno as your USB-TTL adapter?

Thanks for your reply and Yes, I am using the USB connected to the Arduino. Do I need to connect it to the ESP8266-01 and if so how do I do that? I have a cheap USB to serial adapter CP2104 that has 6 pins. Can I use that and if so how do I connect?
Regards

ALso, the pins on the USB to serial adapter are as follows: L to R DTR, RXD, TXD, 5V, GND, 3V3.

I think you need to provide a link to a circuit diagram that you are using.

Let me know if this helps.
Thanks

Diagram for arduino and ESP8266.pdf (252 KB)

Sigh.

First, the ESP-01 that I have all have default baud rate of 9600. You will need to enable carriage return + line feed in serial monitor.
Second, it really would be better if you bought a real USB-TTL adapter.
Third, the ESP-01 needs 3.3V and more than what the Arduino Uno supplies on the 3.3V pin. Some people are apparently able to get it to work. I simply bought a 3.3 V AC adapter.

My ESP8266-01 is 115200 and my serial monitor is set correctly with CR&LF.
I do have a 3.3V voltage regulator (The MB102 Breadboard Power Supply). It has a USB connector on it. Can that be used as a USB-TTL adapter?
If so great. If not, please let me know what USB-TTL adapter you would recommend along with any other parts required. I will order these once I know what I need.
Once this is done would you be able to walk me through the firmware update if needed?
Thanks

Also, I do have a CP2104 USB-TTL adapter with 6 F-F jumper Wires. It has 6 pins. Left to Right the Pins are: DTR,RXD,TXD,+5V,GND,3V3.
Will this work?

JWVT:
Also, I do have a CP2104 USB-TTL adapter with 6 F-F jumper Wires. It has 6 pins. Left to Right the Pins are: DTR,RXD,TXD,+5V,GND,3V3.
Will this work?

That adapter should work.

Is there a switch on the adapter to select 3.3V or 5V?
Some do, and some don't.
You can try using the 3.3V from it

Connect the GND, RXD, TXD pins.
The CH_PD pin on the ESP-01 should be connected to 3.3V.
All the other three pins on the ESP-01 RST, GPIO0, GPIO2 are not connected to anything.

That should be all you need to talk to the ESP-01.

AT+GMR tells you which version of firmware you have

how to update firmware

I have AT Version:1.2.0.0 (Jul 1 2016)
SDK Version:1.5.4.1 (39cb9a32)
AI-Thinker Technology Co Ltd
Dec 2 2016
The Power supply does have a 3.3 and 5V setting and should provide a constant 3.3V which I have tested.
I will try what you have suggested and use my Power supply and CP2104 USB to serial adapter along with the Allaboutcircuits you attached.
With the version I have, what firmware do you suggest that I download if I can?
Will not be able to get to this until next week. How can I get back with you after I have tried this next week?
You have been a great help! Many thanks.
Regards
Jim

It looks like you have very recent version.
After I followed the AllAboutCircuits instructions both my ESP-01 are

AT version:1.3.0.0(Jul 14 2016 18:54:01)
SDK version:2.0.0(656edbf)
compile time:Jul 19 2016 18:44:44

There may be a newer version since I updated the firmware about 2 weeks ago.

You can bookmark this thread and send me a PM. Talk to you later.

There are two different AT firmwares: The one JWVT has currently is the Ai-Thinker firmware. Ai-Thinker is the manufacturer of the ESP8266 modules. The one at the links in that tutorial is the Espressif firmware. Espressif is the creator of the ESP8266. The version numbers of the two different firmwares don't necessarily have any correlation. The firmwares are similar but there are differences. I have heard that the Ai-Thinker firmware has AT commands to allow you to control the GPIO on the ESP8266, a feature the Espressif firmware doesn't have. I have not found good documentation or even official downloads of the Ai-Thinker firmware. The Espressif firmware is fairly well documented and available as part of each NONOS SDK release, which are available on the Espressif website. So I always use the latest Espressif AT firmware.

I also curious whether the OP has the ESP-01 or the ESP-01S. I don't know if that makes a difference with his AT command problems, but the flashing of firmware may be different.

http://wiki.ai-thinker.com/esp8266/docs has some good information. It is linked directly from http://www.ai-thinker.com

I appreciate the questions as I too want to make sure I download the correct firmware. As I stated earlier I will not be able to get back to this until early next week. If I download the firmware will it not work with what I have? Will it ruin the esp8266?
Just curious how often you have to update? Also, once I update and hopefully get it connected to my modem, can I leave it or do I have to keep updating?
Again, thanks for all your thoughts!

That's interesting, the AT instruction set documentation at that wiki page is just an outdated version of the Espressif AT firmware documentation. I don't know what the implications of that are.

JWVT:
If I download the firmware will it not work with what I have?

You need to be aware that some of the ESP-01 modules only have 512 kB (4 Mb) of flash memory, which may limit you in your firmware capabilities. From the ESP8266 AT Instruction Set Version 1.5.4 documentation found on the Ai-Thinker Wiki linked above:

4Mbit Flash
With the release of ESP8266_NONOS_SDK_V1.5.0, AT_V0.51, AT firmware needs 8Mbit or larger Flash
size. Please do not use 4Mbit Flash any more.

from the ESP8266 AT Instruction Set Version 2.1.0 documentation found on the Espressif website:

4 Mbit Flash
With the release of ESP8266_NONOS_SDK_V2.0.0, AT_V1.3, AT firmware can use 4-Mbit flash but
does not supports FOTA (upgrade AT firmware through Wi-Fi) function.

Some of the ESP-01 modules have 1 MB (8 Mb) of flash memory. The "ESP Flash Download Tool" can automatically detect how much flash memory is available on your module.

JWVT:
Just curious how often you have to update?

You only need to update if the firmware you have installed is causing you problems. I have not seen you provide any explanation of why you feel it necessary to update your firmware. It's an overly complicated process and there is a possibility you will end up "bricking" your ESP8266. At your current level of experience I would recommend only doing it if you absolutely need to.

pert:
I have not seen you provide any explanation of why you feel it necessary to update your firmware.

He's getting errors with some of the AT commands.
He is getting communication though.

True, I am a novice and do not know if the firmware needs updating. I can get the serial to recognize most AT commands, however, it will not recognize my modem.
AT+CWLAP=error
AT+CWJAP"ssid","password"=error
AT+CWMODE?=2
Unsure what to do at this point. I need all the help I can get.
Regards

You keep writing modem.

You need a router. Which one do you have?