The First Usage of ESP8266 With Arduino Uno

65,778

113

15

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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.

Be the First to Share

    Recommendations

    • Instrument Contest

      Instrument Contest
    • Make it Glow Contest

      Make it Glow Contest
    • STEM Contest

      STEM Contest

    15 Discussions

    0
    None
    JavidS1

    Question 1 year ago

    connecting ....

    Failed to connect

    how to fix it?

    Screenshot (1).png
    1 answer
    0
    None
    Abdullah110JavidS1

    Answer 6 weeks ago

    Try to recheck the wired connections between rx/tx of arduino to tx/rx of esp8266 respectively, Also ensure the voltage is provided as required.

    0
    None
    brasofilo

    3 months ago

    Thanks for sharing, Bay Yolal. Unfortunately I couldn't follow your wiring diagram. A real Fritzing would help a lot. Cheers!

    0
    None
    SyafiqH3

    7 months ago on Introduction

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

    1
    None
    SivaM20

    Question 1 year ago

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

    0
    None
    SteveRMann

    1 year ago

    ??? is an appropriate metaphor.

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

    0
    None
    alwee1510

    2 years ago

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

    0
    None
    fidelg8

    2 years 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.