Introduction: 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)
4. Connection Cables for between Arduino UNO and the module ESP8266
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.
Attachments
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 !
Attachments
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.
16 Comments
Question 3 years ago
where can i get this esp download tool the one from esp can not have so many digits for a hex number?
Question 5 years ago
connecting ....
Failed to connect
how to fix it?
Answer 4 years 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.
4 years ago
Thanks for sharing, Bay Yolal. Unfortunately I couldn't follow your wiring diagram. A real Fritzing would help a lot. Cheers!
4 years ago on Introduction
sir, have u try to connect arduino due with esp8266 wifi module before??
4 years ago
didnt work
Question 5 years ago
How to solve "invalid head of packet" error in Esp8266 flasher?
5 years ago
??? is an appropriate metaphor.
What does it do? Does this give you network connection for the UNO?
6 years ago
what are the problem when it say the "esp_comm_failed" ?
6 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?
6 years ago
Can you plz look at this
https://www.instructables.com/community/security-s...
small help thanks
6 years ago
AT just returns AT in the serial monitor I dont know why
Reply 6 years ago
I am not sure about your problem, but did you update the firmware up-to-date?
Reply 6 years ago
No it just says connection failed
6 years ago
shall i need FTC232r USB UART module for updating firmware in ESP8266?
Reply 6 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.