Muhammad Fattah Al Fattika
Published

Smart Lamp Control Based Internet of Things

This project makes us able to control our home lamp remotely from our Android devices.

IntermediateShowcase (no instructions)5 hours280
Smart Lamp Control Based Internet of Things

Things used in this project

Hardware components

Wemos D1 Mini
Espressif Wemos D1 Mini
×1
LED Light Bulb, Frosted GLS
LED Light Bulb, Frosted GLS
×4
Standard Bulb Socket
×1
Grove - 4-Channel SPDT Relay
Seeed Grove - 4-Channel SPDT Relay
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Custom PCB
Custom PCB
×1

Software apps and online services

Blynk
Blynk

Story

Read more

Schematics

Schematic

Code

Code

Arduino
#include <BlynkSimpleEsp8266.h>
#include <ESP8266WiFi.h>
char auth[] = ""; // Change with your Blynk Auth Code
char ssid[] = ""; // Use your WIFI SSID 
char pass[] = ""; // password

const int relay1 = 14;
const int relay2 = 12;
const int relay3 = 13;
const int relay4 = 15;

int ledPin = 5;
 
void setup(){
  Blynk.begin(auth, ssid, pass);
  pinMode (relay1, OUTPUT);
  pinMode (relay2, OUTPUT);
  pinMode (relay3, OUTPUT);
  pinMode (relay4, OUTPUT);
  
  digitalWrite(relay1, LOW);
  digitalWrite(relay2, LOW);
  digitalWrite(relay3, LOW);
  digitalWrite(relay4, LOW);
}

void loop() {
  Blynk.run();  
}

Credits

Muhammad Fattah Al Fattika

Muhammad Fattah Al Fattika

14 projects • 6 followers
Indonesian since 1999

Comments

Add projectSign up / Login