The First Usage of ESP8266 With Arduino Uno

61,571

112

13

About: My name is Bay Yolal, hello everybody!

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

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

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.

Share

    Recommendations

    • Beauty Tips Contest

      Beauty Tips Contest
    • Sensors Contest

      Sensors Contest
    • Backyard Contest

      Backyard Contest

    13 Discussions

    0
    None
    SyafiqH3

    2 months ago on Introduction

    sir, have u try to connect arduino due with esp8266 wifi module before??

    0
    None
    SivaM20

    Question 10 months ago

    How to solve "invalid head of packet" error in Esp8266 flasher?

    0
    None
    SteveRMann

    10 months ago

    ??? is an appropriate metaphor.

    What does it do? Does this give you network connection for the UNO?

    0
    None
    JavidS1

    Question 1 year ago

    connecting ....

    Failed to connect

    how to fix it?

    Screenshot (1).png
    0
    None
    alwee1510

    1 year ago

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

    0
    None
    fidelg8

    1 year ago

    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?

    0
    None
    Bay YolalrichardP120

    Reply 2 years ago

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

    0
    None
    abdullaha233

    2 years ago

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

    1 reply
    0
    None
    Bay Yolalabdullaha233

    Reply 2 years ago

    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.