Kaustubh Agarwal
Published © GPL3+

Control Lights with your Phone from Anywhere in the World!

A IoT system which helps you control your home lights from anywhere in the world in real time.

IntermediateShowcase (no instructions)2 hours29,923
Control Lights with your Phone from Anywhere in the World!

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Ethernet shield
×1
USB-A to B Cable
USB-A to B Cable
×1
Electric Bulb
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Schematics

BlynkRelayBulb

Code

Lights.ino

Arduino
#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
char auth[] = ""; // Write your authentication token here
void setup() {
  // put your setup code here, to run once:

 Serial.begin(9600);
Blynk.begin(auth);
pinMode(8,OUTPUT);  // Pin to connect the relay

}

void loop() {
  // put your main code here, to run repeatedly:
Blynk.run();

} 

Credits

Kaustubh Agarwal

Kaustubh Agarwal

14 projects • 191 followers
IoT Enthusiast SDE@ASML

Comments