Getting Started with ESP8266-12E module.

In this manual you can learn how to program ESP8266 -12E module with Arduino IDE, programming ESP8266-12E with Embedded C language. To start this all we need is ESP8266-12E module and a micro USB cable to connect it to the system. Firstly we need to install Arduino IDE , Follow the steps to install

Arduino ESP8266

966 Views, 04 Nov 2017 10:49 am

Description

Getting Started with Arduino UNO

In this manual you can learn how to program ESP8266 -12E module with Arduino IDE, programming ESP8266-12E with Embedded C language.
To start this all we need is ESP8266-12E module and a micro USB cable to connect it to the system. Firstly we need to install Arduino IDE , Follow the steps to install 

Installing the Arduino Software Package on Windows
Head over to the Arduino website www.arduino.cc 

 

Click on “SOFTWARES” TAB and Click on Windows installer

 
You will be prompted to another window, click on “JUST DOWNLOAD” 

 

Once downloaded, follow the instructions to install the Arduino Integrated Development Environment (IDE).
Run the Downloaded executable file. Click on “I Agree” Button

 

Check all the boxes and press “Next”.

 

Click “Install”

 



It will ask for the driver installation. Check the box and press “install”

 
Windows will finish up the driver installation from there. Press “Close” . Arduino Icon is displayed on desktop after installation

 
Getting Started with ESP8266-12E (Node MCU) module
In this manual you can learn how to program ESP8266 -12E module with Arduino IDE, programming ESP8266-12E with Embedded C language.
To start this all we need is ESP8266-12E module and a micro USB cable to connect it to the system. Firstly we need to install Arduino IDE , Follow the steps to install :
Installing the Arduino Software Package on Windows
Head over to the Arduino website www.arduino.cc 

Click on “SOFTWARES” TAB and Click on Windows installer
 
You will be prompted to another window, click on “JUST DOWNLOAD” 
 
Once downloaded, follow the instructions to install the Arduino Integrated Development Environment (IDE).
Run the Downloaded executable file. Click on “I Agree” Button
 
Check all the boxes and press “Next”.
 
Click “Install”
 
It will ask for the driver installation. Check the box and press “install”
 
Windows will finish up the driver installation from there. Press “Close” . Arduino Icon is displayed on desktop after installation
 
In order to program ESP8266-12E using Arduino IDE we need to install some additional board packages. So, in order to install those packages we need internet/Wi-Fi connection so that we can directly download them from the web.
Including ESP8266 Packages To Arduino IDE:
Open the Arduino IDE and click on the option file there you will get a menu. 

 
In this menu select the option preferences.

 
You can see the empty tab beside the option Additional Boards Manager URLS. In that tab paste the below link and click on OK. In that you can add multiple urls separated with comma (,).
http://arduino.esp8266.com/stable/package_esp8266com_index.json 

 
Now click on Tools -> click on Board -> click on boards manager 

 
You will get a popup like this. In this search box search for esp8266 and click on that then it will ask for installation. 


 
Click on install button then the packages starts installing.

 
These packages are directly installed from the link.

 
Now once if your window shows like this close this window and also restart the Arduino IDE
Now goto Tools -> click on Board -> you will get a list of Arduino boards , there if you scroll down you can see the ESP8266 modules. In that we need to select NodeMCU 1.0(ESP-12E module).


 

Now your Arduino IDE is ready to program your ESP-12E module. Connect the module to your system with USB cable and check for the port.

 
If you are unable to see the port then you need to install some drivers in your system.
We need to install CP210x drivers for that . you can download that drivers from the below mentioned link:




https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
 
After clicking on download option a zip folder is downloaded to your system. Unzip that folder you will see some files in that unzipped folder.

 
In that files click on the CP210XVCP installer then it will start the drivers installation. You will get a popup and there you click on OK.

 

Here Click On Next


 
After that you will get the above window there you need to accept the agreement and click on next.


 
Now click on Finish, The Drivers installation process is completed now.
If the drivers are installed properly then you can see the port after connecting the ESP8266 to your system.
http://www.iotgyan.com/documents/learning-resources-content-image/150953872615.jpg 


 
Now let us Write a simple program to blink a LED which is present on the module.
Now goto File -> Examples -> Basics -> Blink

 
Open that program. once go to tools and check whether you have selected the board NodeMCU ESP-12 E module and the port which you get after connecting the module.

 

 
Upload the program by clicking on the Upload button on the top left of your environment. Wait a few seconds, and you should see the RX and TX LEDs on the Node MCU flashing. If the upload is successful, the message “Done uploading” will appear in the status bar. once the program is uploaded then you can see the On-Board LED blinking.
Explanation of code:
void setup(): This is run by the ESP8266-12E once every time it starts. This is where you can configure variables and anything your module needs to run.
pinMode(D4, OUTPUT): This tells the ESP8266-12E to use this pin as an output, without this line, the ESP8266-12E would not know what to do with each pin. This only needs to be configured once per pin, and you only need to configure pins you’re intending to use.
void loop(): Any code inside this loop is repeatedly run over and over again, until the ESP8266-12E power supply is turned off. 
digitalWrite(D4, HIGH/LOW): This is used to set the pin HIGH or LOW — ON or OFF. Just like a light switch, when the pin is HIGH, the LED will be on. When the pin is LOW, the LED will be off. 
delay(1000): The tells the ESP8266-12E to wait for a specified amount of time in milliseconds. 1000 milliseconds is equal to one second, so this will make the ESP8266-12E wait for once second.
Once the LED has been turned on for one second, the Arduino then runs the same code, only it proceeds to turn the LED off and wait another second. Once this process has finished, the loop starts again, and the LED is once again turned on.






Latest IOT Projects
IoT Bootcamp From Sept 2
IoT Analytics Bootcamp From Aug 5
MQTT and CoAP Training From Aug 29
ThingWorx Training From Aug 24
Communication Protocols Training Coming Soon
IOT Development Kits
IoT Bootcamp From Sept 2
IoT Analytics Bootcamp From Aug 5
MQTT and CoAP Training From Aug 29
ThingWorx Training From Aug 24
Communication Protocols Training Coming Soon
Adds Here Adds Here Adds Here

TESTIMONIALS

Sowmya Kambampati
KONY India Pvt Ltd, as a Associate Software Engineer
Ratings :
Review:

I am very thank full to you all for giving such a great training and opportunity to explore my ideas in the stream of IoT, started with a 2 week workshop, very well Hands-on session ever had before...

Poorna prudhvi
Associate Software Engineer in mroads Pvt Ltd
Ratings :
Review:

I interned at smart bridge it's on a mission to become the power House of IOT.The work here is innovative and colleagues are very friendly.i would definitely recommend smart bridge to be a part of you..

P. Sai Teja
System engineer in IBM
Ratings :
Review:

I have done my project and Iot training at Smart Bridge Technologies based on which I got placed in IBM as a system engineer. I am very thankful that i have found my way to build my career further. Th..

Revathi Dhage.
Intern
Ratings :
Review:

The Project was developed in time, and it was appreciated .Many small details were covered well, and proved to be distinguishing points to the project.The concerned mentor, Sandeep Doodigani, has been..