SayaneeChinmay Pendharkar
Created February 9, 2016 © MIT

Door bell notification

When the house door bell is pressed, it sends a mobile notification through IFTTT

IntermediateShowcase (no instructions)4 hours773
Door bell notification

Things used in this project

Story

Read more

Schematics

Schematic

Wire up the hardware with Particle Photon

Code

Firmware for Particle Photon

C/C++
The Photon sleeps and only wakes up when the door bell / button is pressed
void setup() {
  pinMode(D1, INPUT_PULLUP);
  pinMode(D0, INPUT_PULLDOWN);
}

void loop() {
  delay(1500);

  if (digitalRead(D1) == HIGH) {
    System.sleep(D0, RISING);

    while (Particle.connected() != true) {
      delay(50);
    }

    delay(1000);
    Particle.publish("bell");
  }
}

Credits

Sayanee

Sayanee

2 projects • 8 followers
web developer, electrical engineer, podcaster
Chinmay Pendharkar

Chinmay Pendharkar

2 projects • 3 followers
audio developer, geek

Comments