Control your device anywhere in the world is not easy task but technologies achieve every second new achievement so today its possible to control your device anywhere in the world....

esp8266/wemosd1/node mcu any of these board are enabling to control your devices over the internet

Esp8266 and Other wifi shield is enabled to control devices over the internet.

how its work.

Esp8266 and control devices not connected to wired but both connected to internet or wifi connection so means that both are connected to each other.when I toggle the web button then its web button signal goes to server and server signal goes to receiver side . when tx signal d1 =1 then d1 is on when toggle switch d1=0 then d1 is off.

how to download and upload esp8266 code.

first, download or copy-paste the given code. // this file is created by yawot.com //author name: Rahulpunk

//any type of automation required please contact my website www.yawot.com

#include "ThingSpeak.h"

#include

char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

//Replace your wifi credentials here

const char* ssid = "yourwifiusername";

const char* password = "password";

//change your channel number here

unsigned long channel = xxxxxx;

//1,2 and 3 are channel fields. You don't need to change if you are following this tutorial. However, you can modify it according to your application

unsigned int led1 = 1;

unsigned int led2 = 2;

unsigned int led3 = 3;

unsigned int led4 = 4;

unsigned int led5 = 5;

unsigned int led6 = 6;

unsigned int led7 = 7;

unsigned int led8 = 8;

WiFiClient client;

void setup() {

Serial.begin(115200);

pinMode(D1, OUTPUT);

pinMode(D2, OUTPUT);

pinMode(D3, OUTPUT);

pinMode(D4, OUTPUT);

pinMode(D5, OUTPUT);

pinMode(D6, OUTPUT);

pinMode(D7, OUTPUT);

pinMode(D8, OUTPUT);

digitalWrite(D1, 0);

digitalWrite(D2, 0);

digitalWrite(D3, 0);

digitalWrite(D4, 0);

digitalWrite(D5, 0);

digitalWrite(D6, 0);

digitalWrite(D7, 0);

digitalWrite(D8, 0); // We start by connecting to a WiFi network

Serial.println();

Serial.println();

Serial.print("Connecting to ");

Serial.println(ssid);

WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) { delay(1);

Serial.print("."); }

Serial.println("");

Serial.println("WiFi connected");

Serial.println("IP address: ");

Serial.println(WiFi.localIP());

Serial.print("Netmask: ");

Serial.println(WiFi.subnetMask());

Serial.print("Gateway: ");

Serial.println(WiFi.gatewayIP());

ThingSpeak.begin(client); }

void loop() { //get the last data of the fields

int led_1 = ThingSpeak.readFloatField(channel, led1);

int led_2 = ThingSpeak.readFloatField(channel, led2);

int led_3 = ThingSpeak.readFloatField(channel, led3);

int led_4 = ThingSpeak.readFloatField(channel, led4);

int led_5 = ThingSpeak.readFloatField(channel, led5);

int led_6 = ThingSpeak.readFloatField(channel, led6);

int led_7 = ThingSpeak.readFloatField(channel, led7);

int led_8 = ThingSpeak.readFloatField(channel, led8);

if(led_1 == 1){

digitalWrite(D1, 1);

Serial.println("D1 is On..!"); }

else if(led_1 == 0){

digitalWrite(D1, 0);

Serial.println("D1 is Off..!"); }

if(led_2 == 1){

digitalWrite(D2, 1);

Serial.println("D2 is On..!"); }

else if(led_2 == 0){

digitalWrite(D2, 0);

Serial.println("D2 is Off..!"); }

if(led_3 == 1){

digitalWrite(D3, 1);

Serial.println("D3 is On..!"); }

else if(led_3 == 0){

digitalWrite(D3, 0);

Serial.println("D3 is Off..!"); }

if(led_4 == 1){

digitalWrite(D4, 1);

Serial.println("D4 is On..!"); }

else if(led_4 == 0){

digitalWrite(D4, 0);

Serial.println("D4 is Off..!"); }

if(led_5 == 1){

digitalWrite(D5, 1);

Serial.println("D5 is On..!"); }

else if(led_5 == 0){

digitalWrite(D5, 0);

Serial.println("D5 is Off..!"); }

if(led_6 == 1){

digitalWrite(D6, 1);

Serial.println("D6 is On..!"); }

else if(led_6 == 0){

digitalWrite(D6, 0);

Serial.println("D6 is Off..!"); }

if(led_7 == 1){

digitalWrite(D7, 1);

Serial.println("D7 is On..!"); }

else if(led_7 == 0){

digitalWrite(D7, 0);

Serial.println("D7 is Off..!"); }

if(led_8 == 1){

digitalWrite(D8, 1);

Serial.println("D8 is On..!"); }

else if(led_8 == 0){

digitalWrite(D8, 0);

Serial.println("D8 is Off..!"); }

Serial.println(led_1);

Serial.println(led_2);

Serial.println(led_3);

Serial.println(led_4);

Serial.println(led_5);

Serial.println(led_6);

Serial.println(led_7);

Serial.println(led_8); delay(500); }

Before upload to the board edit the code some important instruction.

1.char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

2.//Replace your wifi credentials here

3.const char* ssid = "yourwifiusername" write wifi user name;

4.const char* password = "password" wifi password change as per your connection;

5.unsigned long channel = xxxxxx;// thingspeak channel id write

yawot.com