-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure a relay with turn-high-low via GPIO? #1039
Labels
Milestone
Comments
I found that! The following configuration could be worked well:
But the best code for me is (no reset_pin needed):
If you can support this relay mode, it's a good news:) |
Both codes are equivalent. Instead of creating a new relay type I prefer to support single pin latched relays using the same type. I've added support for it in the dev branch. Configuration will be like this:
(no RELAY1_RESET_PIN) |
Well done. Thanks a lot! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Xoseperez, I want to configure a relay that represents a high-low voltage at GPIO for both turn on/off action, that means I need toggle GPIO pin to high and then turn GPIO pin to low (about 0.3s delay) for both turn-on and turn-off action.
I found
type(RELAY_TYPE_LATCHED)/delay_on/delay_off/pulse/pulse_ms
params maybe is the right way, but I did not find relay config UI on web frontend. How can I get there, or how can config the relay onhardware.h
.Thank you and your help will be highly appreciated:)
The text was updated successfully, but these errors were encountered: