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:
- Arduino UNO or compatible
- 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:
(please note only use this on an un-used webserver as you will over write your existing homepage
It is a simple ON OFF button with PHP that saves to a text file index.html
Step 3: UPLOAD THIS SKETCH YOUR ARDUINO
Dont forget to change:
WiFi: PASSWORD AND USERNAME
Your webpage to direct to.