Tyler Michael
Published © GPL3+

Garage Door Opener

Potentially open your garage door from anywhere in the world!

EasyFull instructions provided2 hours2,645
Garage Door Opener

Things used in this project

Hardware components

Photon
Particle Photon
×1
Resistor 330 ohm
Resistor 330 ohm
×1
Relay (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Blynk
Blynk
particle

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
wire strippers

Story

Read more

Schematics

Main wiring guide

Img 4625

Garage door opener lines

Img 4626

Garage switch lines

Img 4627

Code

Blynk Code

C/C++
for usage with Blynk app
#include "blynk/blynk.h"

char auth[] = "specific to phone";



const int relaySwitch1 = D0;

const int relaySwitch2 = D3;

int reedStatus = 0;



void setup()

{

Serial.begin(9600);

Blynk.begin(auth);

pinMode(relaySwitch1, OUTPUT);

pinMode(relaySwitch2, OUTPUT);



}

//add button in Blynk app corresponding to V0

BLYNK_WRITE (0){ //close garage

if (reedStatus == HIGH) {

digitalWrite(relaySwitch1, HIGH);

delay(1000);

digitalWrite(relaySwitch1, LOW);

}

}

//add button in Blynk app corresponding to V1

BLYNK_WRITE (1){ //open garage

if (reedStatus == LOW) {

digitalWrite(relaySwitch1, HIGH);

delay(1000);

digitalWrite(relaySwitch1, LOW);

}

}



BLYNK_READ(3) //report garage status

{

Blynk.virtualWrite(3, ledStatus);

}

void loop()

{

Blynk.run();
}

}

Credits

Tyler Michael

Tyler Michael

1 project • 1 follower
I'm a mechanical engineering student at UNC Charlotte

Comments