Smart Garage Door
About This Project
September 24, 2015
This project was inspired by a project on Makezine where they used a Particle Photon to open a garage door via an Android/iPhone app. I liked the idea and decided to give it a try.
Once I got it working, I decided to make my own modifications. I ditched the mobile app to use a web interface instead, which I found more convenient for my needs. The web interface allows control from any device with a browser.
The Particle Photon
The Photon is a really cool little device that includes WiFi and can be programmed using an online IDE. They use C++ style code with an extensive set of libraries.
I'm not a hardware guy, so this was new territory for me - but if I could figure it out, you can too!
Note: I found a few problems with the original Makezine tutorial that I resolved. I think the original worked because they were using the older Spark Core IO chip instead of the Photon.
Features
Web Interface
Control from any browser
WiFi Connected
Remote access from anywhere
Secure API
Token-based authentication
Status Monitoring
Real-time door state
Technical Details
The system consists of two main components that need to be programmed:
- Particle Photon Firmware: C++ code running on the microcontroller that interfaces with the garage door relay and exposes API endpoints
- Web Interface: HTML/JavaScript frontend that communicates with the Particle Cloud API to send commands and check status
How It Works
The web interface makes API calls to the Particle Cloud, which then communicates with the Photon device. The Photon controls a relay that triggers the garage door opener - essentially simulating a button press.
Status checking polls the device periodically to update the UI with the current door state, providing real-time feedback on whether the door is open or closed.