ESP8266 Connection and Programming Reviewed by Momizat on .   In this Article, we will use ESP8266 as standalone  wifi microcontroller instead of using with arduino or other controller. To download the code to  ESP8   In this Article, we will use ESP8266 as standalone  wifi microcontroller instead of using with arduino or other controller. To download the code to  ESP8 Rating: 0
You Are Here: Home » IOT » ESP8266 Connection and Programming

ESP8266 Connection and Programming






 

In this Article, we will use ESP8266 as standalone  wifi microcontroller instead of using with arduino or other controller.

To download the code to  ESP8266 you need two things: 1. USB TO Serial TTL Converter 2. ESP8266-01 Module

USB To TTL ESp8266-01

Buy ESP8266 Here:


Connection Diagram:

To download the code, you have to make connection diagram like below.

connection 1

In the above diagram, please note “GPIO 0” of ESP8266 is connected to GND , while downloading the code. Once the connection is complete, connect USB to Serial Converted to USB port of Your PC and Open Arduino IDE.

 Note: make sure you already had installed the esp8266 library in your Arduino, if not you can read the steps by clicking Here in this link.

Now, Go to ToolsĂ  Board:Ă  and choose Generic ESP8266 Module

Also, choose the Right Com port of Your USB to Serial Converter. Like below screen shot.

esp-ide

 

Now you are ready to compile and download you first Arduino code.

Let’s look at one of example code for esp8266.

hello Server Example

Now go to File – Examples – ESP8266WebServer – HelloServer

The Example Codes Seems Like Below.

Now Compile and Upload the above code. It will take some time to complete the upload. When code is being upload you can see one blue led is blinking in the ESP8266, if  you are not able to connect, make sure the connection is correct.
[InsertAddForPost_square]
Once Uplaod is complete, remove USB to TTL from the USB port, then remove GPIO 0 which is connected to GND. The new connection should be like below.

connection 2

Now plug back ESP8266 to USB TTL  to power the ESP8266. You should now able to connect to your wifi network.

Now we have to find the IP address of ESP8266 in our local network, there are many ways to find. But simplest way to find the IP address is, using “Advance IP scanner”
[InsertAddForPost]
You can download the tool from this link. http://www.advanced-ip-scanner.com/

Install and open the tool and click on scan button.

You will able to see all the IP address in your local network. Like below image.

ip-scan-esp

You can see, in one of my IP address, there is a HTTP server running. That is the IP of my ESP8266.

Now open your Internet Browser, and  enter ip address of esp8266 and hit enter. You can see the message from ESP8266.

server

Buy ESP8266 Here:



Is that not cool. Now modify the source code and play around with your ESP8266. You can find lot of example code in IDE to kick start for you next IOT project.

 

Download .AIA app Inventor Code Here: Click Here

 

 

Thanks

 

 

 

 

 

 

 

About The Author

I am a maker, who loves to think, hack and build new electronics stuff, I always find time to document , share my knowledge with others. I am graduate in BTech(Electronics and Communication Engineering).

Number of Entries : 41
  • achala

    well documented post. thank you

    • Thanks for your comment,please subscribe for more tutorials like this.

Scroll to top