Things used in this project

Hardware components:
Photon new
Particle Photon
×1
11026 02
Jumper wires (generic)
×1
AAA batteries
×3
Omron b3f 1000 image 75px
Tactile Button Switch (6mm) Single
×1
Mfr 25frf52 10k sml
Resistor 10k ohm
×1
Mfr 25fbf52 221r sml
Resistor 221 ohm
×1
Software apps and online services:
Particle.io IDE
IFFFT
Hand tools and fabrication machines:
3drag
3D Printer (generic)

Custom parts and enclosures

Doorbell Upper
3D print it
Doorbell Lower
3D print it

Schematics

Schematic
Schematic bb 6jo2genedi

Code

CodeC/C++
int LED = 5;
int button = 1;
bool state = false;

void setup() {
pinMode(LED,OUTPUT);
pinMode(button,INPUT);
//attachInterrupt(D1,rung,FALLING);
digitalWrite(LED,HIGH);
delay(2000);
digitalWrite(LED,LOW);
}

void loop() {
    state = digitalRead(button);
    if(state == false){
       blink();
       state = false;
    }
    else{
    rung();
    state = false;
    }
}

void blink(){
    digitalWrite(LED,HIGH);
    delay(200);
    digitalWrite(LED,LOW);
    delay(200);
}
void rung(){
    Particle.publish("doorbell","HIGH",PUBLIC);
    digitalWrite(LED,HIGH);
    delay(5000);
    digitalWrite(LED,LOW);
}

Credits

Download
Arduino “having11” Guy

I love creating cloud solutions that can interact with hardware along with using Arduino boards and Raspberry Pis to create new projects.

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

AquaNiner Pet Hydration Monitor
Intermediate
  • 382
  • 14

Full instructions

Using two Photons, IFTTT and ThingSpeak, get notifications for when your furry friend needs water and monitor how much they're drinking.

Hot Shot Hoops
Intermediate
  • 530
  • 13

Full instructions

No need to keep track of the number of baskets you make when shooting hoops. Hot Shot Hoops does the work for you.

Hot Shot Hoops

Team IOT Basketball

Temperature Mirror
Intermediate
  • 381
  • 8

Full instructions

The Temperature Mirror incorporates a digital display to allow its user to readily view time, temperature, humidity, and light.

Temperature Mirror

MEGR3171 Team 49

Pet Feeder
Intermediate
  • 414
  • 7

Full instructions

Automated pet food dispenser to feed our pets when we are not at home by using an IoT device.

Teacher Tracker
Intermediate
  • 176
  • 4

Full instructions

If you want to know when a professor comes back to his/her office so you can ask annoying questions then this an option

LightAlert
Intermediate
  • 138
  • 4

Full instructions

As the great Terry Crews once said "that's 49 cents of milk spilt over the table! Somebody's gonna drink that!" But instead... electricity.

Add projectSign up / Login
Respect project