Project showcase
Control Lights with your Phone from Anywhere in the World!

Control Lights with your Phone from Anywhere in the World! © GPL3+

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

  • 17,068 views
  • 4 comments
  • 39 respects

Components and supplies

Apps and online services

About this project

I always to make a project that would control my room lights and fan. In winters it is very hard to get out of bed and switch on/off the lights so I thought of making this project.

This projects uses Blynk mobile app to connect to the server and control my lights. I have also used a single channel relay to act like a switch. 

In general, the point of a relay is to use a small amount of power in the electromagnet -- coming, say, from a small dashboard switch or a low-power electronic circuit -- to move an armature that is able to switch a much larger amount of power.

The relay is connected to the digital pin 8 of the uno. One of the wire from the bulb is cut in two parts, one part is fed to the NO port of the relay and the other one to the COM port. Please make the connections properly because you can easily short your uno as I did in my first attempt.

After the connections just make a dashboard in Blynk app. Attach the digital pin to the button and a virtual led to check the status. After setting up everything, just power the uno and you are good to go.

Video

Happy Hacking :)

Code

Lights.inoArduino
#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();

} 

Schematics

BlynkRelayBulb
Voice recognation bb

Comments

Similar projects you might like

Control a LED from your Phone

Project showcase by Kaustubh Agarwal

  • 14,155 views
  • 5 comments
  • 37 respects

Lights On/Off using Twitter

Project showcase by Kaustubh Agarwal

  • 4,061 views
  • 0 comments
  • 14 respects

Control your Light System Using Smart Phone

Project tutorial by Ahmed Yassin

  • 35,259 views
  • 4 comments
  • 55 respects

Control a Fan with Your Mobile Phone

Project showcase by Khloud Mohamed

  • 2,333 views
  • 0 comments
  • 6 respects

Servo Control with TV Remote Control

Project showcase by eldo85

  • 5,604 views
  • 5 comments
  • 17 respects
Add projectSign up / Login