Control ESP8266 over the internet




There are but a few things better than (succesfully) programming and using your Arduino. Surely one of those things is using your ESP8266 as an Arduino with WiFi!

Control ESP8266 over the internet




In this instructable I will show you an EASY way to get the ESP8266 working as a web server AND accessing that server from anywhere (over the internet)

Also if you find this instructable interesting, perhaps you’ll like some of my others:

EASY Arduino OLED sensor data display

How to make a high voltage power supply

How to send data from Arduino to excel (and plot it)

How to display Arduino sensor readings on Nokia 5110 display

Step 1: What You’ll Need:

Since the esp8266 NodeMcu is so cheap, I highly recommend buying one. You can simply plug it into your PC and use it as an Arduino. No weird commands or anything “unknown”.

I hightly recommend buying the ESP8266 NodeMcu from this link:ESP8266

www.ebay.com/itm/NodeMcu-ESP8266-V3-Lua-CH340-WIFI-Internet-Development-Board-Module-FTDI-Arduino-/162043136554?hash=item25ba860a2a:g:duUAAOSwxp9W765h

If you use the code (send the seller a message when you buy it) saying “Instructables“, he will make sure to quickly send you a top quality ESP8266.

Step 2: Arduino IDE+ESP8266:

Open up the Arduino IDE

-Go to File->Preferences->Additional Boards Manager URLs: http://arduino.esp8266.com/stable/package_esp8266c… ->click OK

-Close the IDE and open it up again

-Go to Tools->Board (where you’d select your version of Arduino)->Boards Manager, find the ESP8266 and click Install

You now should be able to use the ESP8266 as an Arduino. Simply select the NODEMCU 1.0 as your board and you should be ready to code. (if it doesn’t work, try the 0.9 version)

READ  Hackabot Nano: Compact Plug and Play Arduino Robot

Step 3: “Arduino” Code:

Since the code gets messed up when pasted, I have included it as an txt file. Download it and paste it into your Arduino IDE.

The code is commented, so you should have no trouble understanding what to change to suit your needs.

Read more: Control ESP8266 over the internet




Leave a Comment

*
= 3 + 0

(Spamcheck Enabled)

Read previous post:
Amazon Dash Button for Arduino!
Amazon Dash Button for Arduino!

A project using the AmazonDRS library for WiFi101 connected Arduinos. Just like the AWS IoT button, but completely open source!...

Close
Scroll to top