Introduction: The First Usage of ESP8266 With Arduino Uno

Picture of The First Usage of ESP8266 With Arduino Uno

Today, I am going to show you that how can we prepare our module ESP8266 to be used with Arduino UNO.

The need list:

1. Arduino UNO (With USB cable which attached to your computer via USB cable, also it will use it's voltage)

2. Your computer (If you can read this instruction, it means, you have got a computer)

3. ESP8266 Module

4. Connection Cables for between Arduino UNO and the module ESP8266

5. A tiny bread board

Step 1: The Connection Between Arduino UNO and ESP8266 With Cables

Picture of The Connection Between Arduino UNO and ESP8266 With Cables

On this step, the connections can be learnt from the picture. You can use tiny cables to make the connections got happened. When you confused, you can use breadboard to make it short-circuited.

NOTE: If you got an error while doing "AT" test, please disconnect red cable according to picture two. Because this cable is used when we want to update the firmware of ESP8266 module.

Step 2: On Your Computer Configurations

To be sure that you have Arduino IDE on your computer is loaded before. If not, download Arduino IDE. Then, connect your Arduino UNO to your computer with your USB cable. Notice the COM port related to your board which is automatically defined by your computer. On Arduino IDE, select your board name as Arduino UNO from Tools bar. Then select your COM port name below it.

Don't care about codes on your screen. But, for next, open Serial Monitor on right-top panel. Select Both NL & CR then choose 115200 as baud rate.

If you made every connection one-by-one, on command area type this code and get return "OK" after. your code is:

AT

After the code is written, you will see "OK". That's super! It is working. Your connections are well connected and your module is working.

Step 3: Change ESP8266's Baud Rate

On Arduino IDE's Serial Monitor type this code:

AT

If you got "OK", type this code:

AT+CIOBAUD=9600

This makes your ESP8266 is now works with 9600 Baud Rate.

Step 4: Update ESP8266's Firmware

Picture of Update ESP8266's Firmware

On the second step, I shared the connections guide for you. According to this guide, we can upgrade/downgrade the firmware of ESP8266. Download the .rar file from the attachment. You will see an .exe program, run it. And fill it as the picture which is attached on this step. The firmware is ending with .bin extention.

Change the second 0x00000 as 0x40000080 this is necessary.

When you are ready, click on download button. Then close the program when you are done on %99 with a don't cared warning.

.

That's all !

Step 5: BONUS: Reading This Instructable

NOTE: This instructable's step is aimed for visually impaired people to hear the sentences to learn what's going on here. Watch the video, it explains all steps.

Comments

alwee1510 (author)2017-11-01

what are the problem when it say the "esp_comm_failed" ?

fidelg8 (author)2017-10-25

Every time i want to upgrade the firmware, i get this error message ;

Exception in thread Thread-6:
Traceback (most recent call last):
File "threading.pyo", line 810, in __bootstrap_inner
File "esp8266_flasher.py", line 19, in run
File "downloader.pyo", line 54, in __init__
File "serial\serialwin32.pyo", line 38, in __init__
File "serial\serialutil.pyo", line 282, in __init__
File "serial\serialwin32.pyo", line 66, in open
SerialException: could not open port 'COM3': WindowsError(5, 'Access is denied.')

Can you help me plz?

hemanth kumar reddy (author)2017-03-14

Can you plz look at this

https://www.instructables.com/community/security-s...

small help thanks

richardP120 (author)2017-03-05

AT just returns AT in the serial monitor I dont know why

Bay Yolal (author)richardP1202017-03-05

I am not sure about your problem, but did you update the firmware up-to-date?

richardP120 (author)Bay Yolal2017-03-05

No it just says connection failed

abdullaha233 (author)2017-01-27

shall i need FTC232r USB UART module for updating firmware in ESP8266?

Bay Yolal (author)abdullaha2332017-01-27

If you have Arduino UNO, you don't need to use that board. If you have that board, you can use that board's RX TX pins to upload codes into ESP8266. See step 1's third picture.

About This Instructable

31,850views

106favorites

License:

Bio: Living in Istanbul, answering your questions :)
More by Bay Yolal:How to use Raspberry Pi 3 Model B+ V1.2 For The First Time!How to knit baby booties in only one hour! Ta-Da!How to Extract Walnut
Add instructable to: