https://github.com/plasticrake/realfakegaragedoors
Garage Door Opener for ESP8266 / Arduino
https://github.com/plasticrake/realfakegaragedoors
Last synced: about 1 year ago
JSON representation
Garage Door Opener for ESP8266 / Arduino
- Host: GitHub
- URL: https://github.com/plasticrake/realfakegaragedoors
- Owner: plasticrake
- License: mit
- Created: 2016-07-07T18:29:30.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-23T04:28:04.000Z (almost 10 years ago)
- Last Synced: 2025-03-31T02:34:52.634Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 780 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RealFakeGarageDoors
[](https://travis-ci.org/plasticrake/RealFakeGarageDoors)
Garage Door Opener for ESP8266 / Arduino.
This is the hardware portion of my Real Fake Garage Doors project.
The client is the [homebridge-real-fake-garage-doors](https://github.com/plasticrake/homebridge-real-fake-garage-doors) plugin for [Homebridge](https://github.com/nfarina/homebridge).
I opened a [Linear Multi-Code 412001](https://www.amazon.com/dp/B000F5KEP6/) garage door remote and attached an ESP8266 to trigger it to open the garage door. Since the ESP8266 doesn't have an easy way to encrypt traffic as a server I'm using SHA256-HMAC to send authenticated commands to the ESP8266.
## Configuration
`HASH_KEY`: SHA256-HMAC key that should match the key from homebridge-real-fake-garage-doors.
`MAX_OPEN_COUNT_PER_MINUTE` / `MAX_OPEN_COUNT_PER_HOUR` / `MAX_OPEN_COUNT_PER_DAY`: If any of these thresholds are exceeded then the device will no longer fulfill any open commands until the device is reset. This is a safeguard against any errant clients continuously sending open commands.
## Hardware


### Parts
* ESP8266
* [Linear Multi-Code 412001 Remote](https://www.amazon.com/dp/B000F5KEP6/)
* NPN Transistor [PN2222](https://www.adafruit.com/product/756) x2
* P-Channel MOSFET [BS250](http://www.jameco.com/z/BS250-Major-Brands-Transistor-BS250-TO-92-Transistor-P-Channel-MOSFET-45-Volt_256057.html) x2
* 10k Resistor x4
* 680 Resistor x2
## Thanks
SHA256-HMAC implementation from https://github.com/spaniakos/Cryptosuite which is a fork of https://github.com/Cathedrow/Cryptosuite