Hi everyone,
I have a garage door where it can be activated by momentarily closing a circuit.
I'm trying to do this with a Wemos D1 Mini and a relay board. I need the relay to "close" for 500ms and then open again.
Is anyone able to suggest how I can do this easily within ESPEasy?
Help with momentary relay for Garage Door controller?
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 19
- Joined: 20 Oct 2017, 14:30
- budman1758
- Normal user
- Posts: 301
- Joined: 15 Apr 2017, 05:13
- Location: Riverside CA USA
Re: Help with momentary relay for Garage Door controller?
"The glass is twice as big as it needs to be".
-
- Normal user
- Posts: 19
- Joined: 20 Oct 2017, 14:30
Re: Help with momentary relay for Garage Door controller?
I was hoping to control it via MQTT just like I am querying the open/close status of the reed switch connected to the same Wemos D1 Mini.
However it looks like this HTTP call works well enough and sets GPIO5 to high for 500ms and then turns it off again.
Should work perfectly for my use case.
http://192.168.1.xxx/control?cmd=Pulse,5,1,500
However it looks like this HTTP call works well enough and sets GPIO5 to high for 500ms and then turns it off again.
Should work perfectly for my use case.
http://192.168.1.xxx/control?cmd=Pulse,5,1,500
- budman1758
- Normal user
- Posts: 301
- Joined: 15 Apr 2017, 05:13
- Location: Riverside CA USA
Re: Help with momentary relay for Garage Door controller?
I haven't used MQTT yet but I'm fairly sure it can do the same thing. No doubt someone will come along here and offer some help along those lines.
"The glass is twice as big as it needs to be".
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Help with momentary relay for Garage Door controller?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Help with momentary relay for Garage Door controller?
You need to declare a device only when you want to know the state of the device.
For output only you just pulse the GPIO since you don't care the state after.
Regards,
For output only you just pulse the GPIO since you don't care the state after.
Regards,
Who is online
Users browsing this forum: No registered users and 13 guests