Kaustubh Agarwal
Published © GPL3+

Lights On/Off using Twitter

Control your Home Lights using the Twitter platform.

IntermediateShowcase (no instructions)2 hours4,303

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Ethernet Shield W5100
×1
Relay module
×1
Jumper wires (generic)
Jumper wires (generic)
×1
USB-A to B Cable
USB-A to B Cable
×1
LAN cable
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk
Maker service
IFTTT Maker service

Story

Read more

Schematics

Twiiter LIght

Code

Twitter Light

Arduino
#define BLYNK_PRINT Serial    
#include <SPI.h>
#include <Ethernet.h>   // Including Ethernet Library
#include <BlynkSimpleEthernet.h> // Including Blynk Ethernet Library
#include <SimpleTimer.h> // Including Timer Library

char auth[] = "";  // This the unique blynk code of our application
SimpleTimer timer;
void setup()
{
  Serial.begin(9600); // Start Serial Communication
  Blynk.begin(auth);  // Start connecting to the Blynk Server
  pinMode(3,OUTPUT);  // Setting Digital Pin 3 To OUTPUT to be connected to light
}

void loop()
{
  Blynk.run(); // Run the Application 
    timer.run(); // Starting the timer
}

Credits

Kaustubh Agarwal

Kaustubh Agarwal

14 projects • 164 followers
IOT Enthusiast

Comments

Add projectSign up / Login