Project showcase
Smart Doorbell

Smart Doorbell © GPL3+

Never miss anyone at your door! A system that notifies your phone and email whenever someone presses the doorbell.

  • 82,280 views
  • 23 comments
  • 150 respects

Components and supplies

Ph a000066 iso (1) ztbmubhmho
Arduino UNO
×1
11026 02
Jumper wires (generic)
×1
Push button
×1
Ethernet shield
×1

Apps and online services

About this project

I always wanted to make a system that would alert me on my phone and mail whenever someone is on the door. We often miss the doorbell of some reason or another.

Using this system you will never miss anyone who knocks on your door.

Using an Arduino and an ethernet shield to connect the button to the internet, the system uses blynk app to connect it to the cloud. The app is available both for android and IOS.  The system sends an email and a mobile notification whenever it is pressed.

Happy Hacking :)

Code

Doorbell.inoArduino
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include <SimpleTimer.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

SimpleTimer timer;

WidgetLCD lcd(V1);

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth);

  while (Blynk.connect() == false) {
    // Wait until connected
  }
}
void notifyOnButtonPress()
{
  // Invert state, since button is "Active LOW"
  int isButtonPressed = !digitalRead(2);
  if (isButtonPressed) {
    BLYNK_LOG("Button is pressed.");

    Blynk.notify("Please open up! Somebody is on the door!");
     lcd.clear(); //Use it to clear the LCD Widget
  lcd.print(4, 0, "Open"); // use: (position X: 0-15, position Y: 0-1, "Message you want to print")
  lcd.print(4, 1, "The Door!");
  }
}

void emailOnButtonPress()
{

  int isButtonPressed = !digitalRead(2); // Invert state, since button is "Active LOW"

  if (isButtonPressed) // You can write any condition to trigger e-mail sending
  {
    BLYNK_LOG("Button is pressed."); // This can be seen in the Serial Monitor
    Blynk.email("kaustubhagarwal18@gmail.com", "Subject: Doorbell", "Please open up! Somebody is on the door!");
     lcd.clear(); //Use it to clear the LCD Widget
  lcd.print(4, 0, "Open"); // use: (position X: 0-15, position Y: 0-1, "Message you want to print")
  lcd.print(4, 1, "The Door!");

  }
}

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

Schematics

Doorbell
Doorbell

Comments

Similar projects you might like

Security Access Using RFID Reader

by Aritro Mukherjee

  • 472,847 views
  • 71 comments
  • 499 respects

Android App-Based Home Automation System Using IOT

Project tutorial by Team Autoshack

  • 74,387 views
  • 23 comments
  • 174 respects

Home Smart Home

Project tutorial by Syed Sanoor

  • 100,989 views
  • 11 comments
  • 253 respects

Alexa Based Smart Home Monitoring

Project tutorial by Adithya TG

  • 56,641 views
  • 29 comments
  • 96 respects

Smart Energy Saver for Your Home

Project tutorial by Dhairya Parikh

  • 15,881 views
  • 15 comments
  • 33 respects

NERD ALERT! // Smart Doorbell with Arduino

Project tutorial by Alex Glow

  • 9,079 views
  • 3 comments
  • 14 respects
Add projectSign up / Login