Yarana Iot Guru
Published © MIT

๐Ÿ  Complete Home Automation Project Using KME Smart

Control all your home appliances using the KME Smart App โ€” no coding needed! Build your own smart home easily with YaranaIoT Guru.

BeginnerShowcase (no instructions)8 hours18
๐Ÿ  Complete Home Automation Project Using KME Smart

Things used in this project

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

๐Ÿ’ป Code Setup

C/C++
This project requires no custom Arduino code because the KME Smart App uses pre-configured firmware that directly communicates with the cloud.

If you want to flash your own firmware (optional), hereโ€™s a basic ESP32 relay code you can use for testing purposes:
#include <WiFi.h>

const char* ssid = "YourWiFiName";
const char* password = "YourWiFiPassword";

int relay1 = 23;
int relay2 = 22;
int relay3 = 21;
int relay4 = 19;

void setup() {
  Serial.begin(115200);
  WiFi.begin(ssid, password);
  pinMode(relay1, OUTPUT);
  pinMode(relay2, OUTPUT);
  pinMode(relay3, OUTPUT);
  pinMode(relay4, OUTPUT);
  Serial.print("Connecting to WiFi...");
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("\nConnected to WiFi!");
}

void loop() {
  // Manual testing of relays
  digitalWrite(relay1, HIGH); delay(1000);
  digitalWrite(relay1, LOW); delay(1000);
}

Credits

Yarana Iot Guru
29 projects โ€ข 0 followers
Yarana Iot Guru Yarana IoT Guru: Arduino, ESP32, GSM, NodeMCU & more. Projects, Tutorials & App Development. Innovate with us!
Thanks to YaranaIoT Guru.

Comments