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
SparkFun Pushbutton switch 12mm
×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.

Contact

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

Other Clocks
Intermediate
  • 183
  • 3

Work in progress

A combination of 3 different clocks in one frame.

ConnectTheDots with Particle Azure IoT Hub Integration
Intermediate
  • 554
  • 6

Protip

This project will allow you to connect your Particle device into an Azure IoT Hub for viewing data in real-time through an ASP.NET web app!

Weather Aware Sprinkler Controller
Intermediate
  • 1,291
  • 16

Full instructions

6 station Photon controller uses the Weather Underground API to prevent watering when windy, rainy, or too cold.

Christmas Gift Box
Intermediate
  • 3,602
  • 595

Full instructions

Christmas Gift Box plays music and sends an email when it is opened.

Simple Environmental Monitoring
Intermediate
  • 1,536
  • 13

Full instructions

Particle Photon circuit allowing the display of environmental conditions (light, temperature, humidity, pressure) using the Blynk app.

THDweeter
Intermediate
  • 245
  • 2

Protip

Yet another temperature-humidity sensor publishing to dweeter, with WiFi auto-disconnect and a push button to read daily max and min values.

Add projectSign up / Login