Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 2.4 KB

README.md

File metadata and controls

40 lines (35 loc) · 2.4 KB

2 Door Garage door automation via esp8266

What you need

Pins

NodeMCU v3

- D5 --> IN1 on relay module
- D6 --> IN2 on relay module
- D1 --> Speaker wire 1 (+)
- D2 --> Speaker wire 2 (+)
- 3v --> relay module vcc
- GND --> Speaker wire 1/2 (-) & GND on relay module
- VV --> if using 5v relays connect to JD-VCC on relay module

Relay Module

- Relay 1 common --> Speaker wire 3 (+)
- Relay 1 NO     --> Speaker wire 3 (-)
- Relay 2 common --> Speaker wire 4 (+)
- Relay 2 NO     --> Speaker wire 4 (-)

Setup

  • Connect to Accesspoint called GarageDoorAutomation
  • Choose and enter credentials to your wireless network
  • Enter the location of your mqtt broker ( i recommend the one that is integrated with OpenHab)

MQTT topics

  • /GarageDoorAutomation/garage_door_1/state --> will be messaged with 1 = door open , 0 = door close, 2 = door opening, 3 = door closing
  • /GarageDoorAutomation/garage_door_2/state --> samge as above but for door 2
  • /GarageDoorAutomation/garage_door_1/command --> send a 1 to indicate that you want to open the garage door, 0 to close it
  • /GarageDoorAutomation/garage_door_2/command --> samge as above but for door 3

Case setup 3d printed case garage door opener garage door sensor mounted case in garage