Abdullah HajahmadFaisal Aljulaipi
Published

Garage Door Controller

This project will help you control your garage door without even having to get up to press the button! Yes, without getting up. Follow below

IntermediateProtip2 hours520
Garage Door Controller

Things used in this project

Hardware components

Photon
Particle Photon
×2
Resistor 10k ohm
Resistor 10k ohm
×1
Breadboard (generic)
Breadboard (generic)
×2
Jumper wires (generic)
Jumper wires (generic)
×6
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×2
Reed Switch Magnet
×1
Garage Remote
×1
Extension Cable
×1

Software apps and online services

Maker service
IFTTT Maker service
Fritzing

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Fluxing

Story

Read more

Schematics

Reed Switch Circuit

This schematic shows the circuit we set up next to the garage door to notify us whenever the garage door is open.
Untitled sketch fzz   fritzing   breadboard view 2018 04 23 11 39 54 bth9mqgkqy

Garage Motherboard Circuit

This schematic shows the circuit we used to build the motherboard circuit that allowed us to control the garage door.
Circuit 2 0vchivnodd

Code

Garage Door Motherboard Code

C/C++
This code is for the Photon controlling the garage door motherboard.
int PIRSensor = D0;
void setup(){

pinMode(D7,OUTPUT);

pinMode(PIRSensor,INPUT_PULLUP);
}

void loop() {
    
  if (digitalRead(PIRSensor) == HIGH)
  {
     
       digitalWrite(D7,7);
       Particle.publish("Garage","Open");
       //state = !state;
       delay(700);
       
       digitalWrite(D7,0);
  }
    delay (3500);
}

Reed Switch

C/C++
Tells you when the garage is open and when it is closed
int DAP = D0;
int DAR = D1;
int boardLed = D7;

void setup() {

pinMode(DAP,OUTPUT);
pinMode(DAR,INPUT);

  

}

void loop() {

while (Particle.connected()){

if(digitalRead(DAR)==HIGH){

Particle.publish("Garage","Garage OPEN",60);
delay(2000);
}
else{
delay(400);
}
}
}

Credits

Abdullah Hajahmad

Abdullah Hajahmad

1 project • 1 follower
UNC Charlotte Mechanical Engineering student. Setup account for MEGR 3171 Instrumentations class IOT Photon project.
Faisal Aljulaipi

Faisal Aljulaipi

1 project • 1 follower
This projects goal is to control our garage door with the use of an electronic device such as a smartphone. Partner Abdullah Hajahmad

Comments

Add projectSign up / Login