├── .gitattributes ├── .gitignore ├── Arduino code └── RemoteLamp │ └── RemoteLamp.ino ├── Circuit Diagram ├── Block Diagram.pdf ├── Circuit Diagram.pdf ├── Circuit Diagram2.pdf └── Project Objective.pdf ├── README.md └── WiFi Remote Control.jpg /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear in the root of a volume 35 | .DocumentRevisions-V100 36 | .fseventsd 37 | .Spotlight-V100 38 | .TemporaryItems 39 | .Trashes 40 | .VolumeIcon.icns 41 | 42 | # Directories potentially created on remote AFP share 43 | .AppleDB 44 | .AppleDesktop 45 | Network Trash Folder 46 | Temporary Items 47 | .apdisk 48 | -------------------------------------------------------------------------------- /Arduino code/RemoteLamp/RemoteLamp.ino: -------------------------------------------------------------------------------- 1 | /******************************************************************* 2 | Written by Marco Schwartz for Open Home Automation. 3 | BSD license, all text above must be included in any redistribution 4 | Based on the original sketches supplied with the ESP8266/Arduino 5 | implementation written by Ivan Grokhotkov 6 | Modified by bsp.embed@gmail.com. 7 | Check our YouTube channel BSPEmbed 8 | ******************************************************************/ 9 | 10 | /* Required libraries */ 11 | #include 12 | 13 | /* WiFi Parameters of Your Router */ 14 | const char* ssid = "WIFISSID"; 15 | const char* password = "PASSWORD"; 16 | 17 | /* Create an instance of the server */ 18 | WiFiServer server(80); 19 | 20 | /* Port Pins */ 21 | int output_pin = 5; 22 | int Indicator_pin = 16; 23 | 24 | 25 | void setup() { 26 | Serial.begin(115200); 27 | delay(10); 28 | pinMode(output_pin, OUTPUT); 29 | pinMode(Indicator_pin, OUTPUT); 30 | digitalWrite(output_pin, 0); 31 | Serial.println(); /* For debug console */ 32 | Serial.print("Connecting to "); 33 | Serial.println(ssid); 34 | WiFi.begin(ssid, password); /* Connect to WiFi network */ 35 | 36 | while (WiFi.status() != WL_CONNECTED) { 37 | delay(500); 38 | Serial.print("."); 39 | } 40 | 41 | Serial.println(""); 42 | Serial.println("WiFi connected"); 43 | 44 | server.begin(); /* Start the server */ 45 | Serial.println("Server started"); 46 | Serial.println(WiFi.localIP()); /* Print the IP address */ 47 | digitalWrite(Indicator_pin, 1); /* Indicate by LED */ 48 | } 49 | 50 | 51 | void loop() { 52 | 53 | WiFiClient client = server.available(); /* Check if a client has connected */ 54 | 55 | if (!client) 56 | return; 57 | 58 | Serial.println("new client"); /* Wait until the client sends some data */ 59 | while(!client.available()) 60 | delay(1); 61 | 62 | String req = client.readStringUntil('\r'); /* Read the first line of the request */ 63 | Serial.println(req); 64 | client.flush(); 65 | 66 | if (req.indexOf("/on") != -1) /* check the request */ 67 | digitalWrite(output_pin, 1); 68 | else if (req.indexOf("/off") != -1) 69 | digitalWrite(output_pin, 0); 70 | 71 | client.flush(); /* Prepare the response */ 72 | 73 | String s = "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n"; 74 | s += ""; 75 | s += ""; 76 | s += ""; 77 | s += ""; 78 | s += ""; 79 | s += "
"; 80 | s += "

Lamp Control

"; 81 | s += "
"; 82 | s += "
"; 83 | s += "
"; 84 | s += "
"; 85 | s += ""; 86 | s += ""; 87 | 88 | client.print(s); /* Send the response to the client */ 89 | delay(1); 90 | Serial.println("Client disconnected"); 91 | 92 | /* The client will actually be disconnected */ 93 | /* when the function returns and 'client' object is detroyed */ 94 | } 95 | -------------------------------------------------------------------------------- /Circuit Diagram/Block Diagram.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BSP-Embed/WiFi-Remote-Control/dd6b7ff9ef2e2b8dd3c1a661a7981e0788c63ae4/Circuit Diagram/Block Diagram.pdf -------------------------------------------------------------------------------- /Circuit Diagram/Circuit Diagram.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BSP-Embed/WiFi-Remote-Control/dd6b7ff9ef2e2b8dd3c1a661a7981e0788c63ae4/Circuit Diagram/Circuit Diagram.pdf -------------------------------------------------------------------------------- /Circuit Diagram/Circuit Diagram2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BSP-Embed/WiFi-Remote-Control/dd6b7ff9ef2e2b8dd3c1a661a7981e0788c63ae4/Circuit Diagram/Circuit Diagram2.pdf -------------------------------------------------------------------------------- /Circuit Diagram/Project Objective.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BSP-Embed/WiFi-Remote-Control/dd6b7ff9ef2e2b8dd3c1a661a7981e0788c63ae4/Circuit Diagram/Project Objective.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WiFi-Remote-Control 2 | Control Devices from WiFi 3 | ![alt tag](https://github.com/BSP-Embed/WiFi-Remote-Control/blob/master/WiFi%20Remote%20Control.jpg) 4 | Please check my YouTube Video for any assistant. 5 | -------------------------------------------------------------------------------- /WiFi Remote Control.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BSP-Embed/WiFi-Remote-Control/dd6b7ff9ef2e2b8dd3c1a661a7981e0788c63ae4/WiFi Remote Control.jpg --------------------------------------------------------------------------------