ESP8266 Web Server using Arduino IDE

www.pdf24.org    Send article as PDF   
In this project you’ll create a standalone web server with an ESP8266 Wi-Fi Module that can toggle two LEDs.

Where to buy?

You can click here to get this module on eBay for less than $4.

Click the image above, to see on ebay.
Click the image above, to see on eBay.

Schematics (3.3V FTDI Programmer)

The schematics to upload code to your ESP8266 are very straight forward. You only need to establish a serial communication between your FTDI programmer and your ESP8266 to upload some code.

Flashing Firmware - FTDI Programmer

Uploading your ESP8266 code

Having the ESP8266 add-on for the Arduino IDE installed (How to Install the ESP8266 Board in Arduino IDE).

Go to Tools and select “Generic ESP8266 Module”.

Arduino IDE select esp8266

Copy the sketch below to your Arduino IDE. Replace the SSID and password with your own credentials.

After modifying my sketch upload it to your ESP8266 (If you can’t upload code to your ESP8266, read this troubleshooting guide).

ESP8266 IP Address

Open the Arduino serial monitor at a baud rate of 115200. Connect GPIO 0 of your ESP8266 to VCC and reset your board.

After a few seconds your IP address should appear. In my case it’s 192.168.1.70.

esp ip address

Final Circuit

Now follow the schematics below to create your web server to control two LEDs.

ESP-web-server_bb

Demonstration

For the final demonstration open any browser from a device that is connected to the same router that your ESP is. Then type the IP address and click Enter!

Screenshot_2015-09-15-18-31-33

Now when you press the buttons in your web server you can control both sockets

Demonstration
 

Previous Post

Secure Access using MFRC522 RFID Reader with Arduino

This Article shows a simple example on how to use the MFRC522 RFID reader, with a quick overview of the specifications, and a demonstration project using an Arduino. Description RFID ... Read more

Next Post
Membrane Keypad

Using a Membrane Keypad with an Arduino

With this tutorial, you will be learn to access any keypad, and have it interact with a microcontroller. You can salvage these keypads from old telephones or you can purchase ... Read more

Short URL: http://tinyurl.com/qg63dk7

Leave a Reply

Your email address will not be published. Required fields are marked *



Do NOT follow this link or you will be banned from the site!
error: Content is protected !!