WiLamp | Universal Automation App Arduino (ESP 8266) | PC Week

WiLamp | Universal Automation App Arduino (ESP 8266)

Wednesday, September 12, 2018

WiLamp | Universal Automation App Arduino (ESP 8266)

wilamp
Guys Welcome back to another amazing tutorial on Automation App for your ESP 8266 with Arduino Platform. In this tutorial, I will show how to build your own Arduino Automation System with ESP 8266 and Wifi (Without Internet). If you are looking for IOT Project Ideas this project would surely help you.

If you are a beginner to Arduino DIY Automation Projects then I highly recommend you to use WiLamp App and program, because ESP8266 have a lot of programs where you have to enter the local IP address of the board Each time when you start the app.

WiLamp | Universal Automation App Arduino (ESP 8266) 

WiLamp App is configured with Thunkable and Customised with Vector Images and Icons. The app will work on most of the Android devices but if you encountered any problem please report it to me.

This App doesn't need any pre-configuration which is suitable for Daily Automation Purposes. Just configure the Hotspot in your Android phone and control your Gadgets.

And Another Problem with the automation app is that most of the app works only with internet but this App doesn't need the Internet at all. It Works with your preset Wifi name and Password. So Just connect with your Hotspot and Control Your Gadgets.

I have provided the App link below. If anyone needs the Source code of WiLamp then you can contact me or comment below. You can modify this code to work with other IOT Project.

Features of WiLamp

wilamp

  1. One Click Mode
  2. Preset IP Address
  3. No Internet Needed (Works in your Hotspot Region)
  4. Customised App
  5. Optimised Code
  6. Secured With Your Hotspot Connection

Connecting App and Gadgets

WiLamp can be used in any Android versions to control your gadgets. In order to connect your phone to WiLamp, you should need to create a hotspot with the initially programmed Wifi name and Password.

WiLamp IOT Projects can be used with any Wifi enabled microcontroller. This app is specifically made for ESP 8266 boards which I successfully tested and worked perfectly.

Arduino Code is Provided Below
Set Your Hotspot Name and Password pcweek and pcweek123. You can change this by editing the SSID and Password

Program 

// WiLamp Version 1
// Made by Muhammed Fasil K-https://github.com/mhdfasilwyd/Arduino_Projects
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
const char MAIN_page[] PROGMEM = R"=====(
  <!DOCTYPE html>
  <html>
  <body>
  <center>
  <h1>WiLamp</h1><br>
  Ciclk to turn <a href="ledOn">LED ON</a><br>
  Ciclk to turn <a href="ledOff">LED OFF</a><br>
  </center>
  </body>
  </html>
)=====";
IPAddress staticIP(192, 168, 43, 90);
IPAddress gateway(192, 168, 43, 1); 
IPAddress subnet(255, 255, 255, 0);
IPAddress dns(8, 8, 8, 8);  //DNS
const char* deviceName = "pcweek";
#define LED 2
const char* ssid = "pcweek";
const char* password = "wilamp123";
ESP8266WebServer server(80);
void handleRoot()
{
 String s = MAIN_page;
 server.send(200, "text/html", s);
}
void handleLEDon() {
 Serial.println("LED on page");
 digitalWrite(LED,LOW);
 server.send(200, "text/html", "LED is ON");
}
void handleLEDoff()
{
 Serial.println("LED off page");
 digitalWrite(LED,HIGH);
 server.send(200, "text/html", "LED is OFF");
}
void setup(void){
  Serial.begin(115200);
  WiFi.begin(ssid, password);
  Serial.println("");
  pinMode(LED,OUTPUT);
  digitalWrite(LED,HIGH);
  WiFi.disconnect();
  WiFi.hostname(deviceName);
  WiFi.config(staticIP, subnet, gateway, dns);
  WiFi.begin(ssid, password);
  WiFi.mode(WIFI_STA);
  while (WiFi.status() != WL_CONNECTED) {
  delay(500);
  Serial.print(".");
  }
  server.on("/", handleRoot);   
  server.on("/ledOn", handleLEDon);
  server.on("/ledOff", handleLEDoff);
  server.begin();               
  Serial.println("WiLamp Server Started");
}
void loop(void){
server.handleClient();       
}

If you don't want to install this App or If you are using I Phone then you should open your browser and enter 192.168.43.13 in your browser after configuring your Hotspot.

Debugging

If you are encountering any errors like this please check if your hotspot is configured or not.

wilamp

Error 1101 Encounters when the server communication fails. So double check your Hotspot SSID and Password.

You can contribute your Improvement through my GitHub link here

Video Demonstration


Conclusion

We hope you liked this article on "WiLamp | Universal Automation App Arduino (ESP 8266)" You can freely comment your doubts below.

If you liked this article, then please share to the social networking site. You can also find us on Twitter, Facebook, YouTube, and Instagram.
bm

I'm an Electronics Engineer with years of experience in Blogging and DIY Projects. I like to make new gadgets and write contents related to technology and Blogging.