loading

This Internet of things LED connects to the web and either turns the LED ON or OFF. (in this case my web page with a simple on/off button, but you can link it to any event/page on the internet, i.e. when temperature is greater than 20 degrees, turn on LED).

In this example I have Steam Punk'd (with wireless induction) my LED but you can do it any you want.

You will need the following:

BEGINNER:

  • Arduino UNO or compatible
  • ESP8266
  • Breadboard with breadboard wires
  • One LED
  • Web server with PHP

Step 1: Connecting Your ESP8266 to Your Arduino

Connect the ESP8266 as per the diagram. Then connect your positive LED leg into Arduino digital pin 12 and negative leg into Arduino's ground. The LED is your IOTs notifier.

Step 2: The Web Side (php Form)

Create this index page on your web server:

**WARNING

(please note only use this on an un-used webserver as you will over write your existing homepage

https://www.dropbox.com/s/ptzkb0dm24gxmgj/index.ph...

It is a simple ON OFF button with PHP that saves to a text file index.html

Step 3: UPLOAD THIS SKETCH YOUR ARDUINO

https://www.dropbox.com/s/csvyvtc67kat0p0/iotLED.i...

Dont forget to change:

WiFi: PASSWORD AND USERNAME

Your webpage to direct to.

<p>Whenever I try to do the Serial.print of the characters, it always get:</p><p>Recv 47 bytes</p><p>SEND OK</p><p>I can never get the text contents of the HTML page. Please help me out with this. Thanks.</p>
Thanks brah
<p>Hahaha this is really cool! </p>

About This Instructable

9,823views

12favorites

License:

More by KingConstantine:MEGABLOCK to RGB LED MEGABLOCK (modular) Bluetooth Enabled Humidor (Steam Punk Style) (medium skill level) IOT LED ON/OFF BUTTON 
Add instructable to: