Skip to content
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

Ping based relay control watchdog #262

Closed
sjefferson99 opened this issue Nov 25, 2024 · 2 comments · Fixed by #266
Closed

Ping based relay control watchdog #262

sjefferson99 opened this issue Nov 25, 2024 · 2 comments · Fixed by #266
Assignees
Labels
🔮 enhancement New feature or request 👁 smib-hid SMIBHID related code

Comments

@sjefferson99
Copy link
Member

Add the option to regularly ping an IP and after x retries initiate a gpio pin down then up.

Use case is attach relay to GPIO and reset a device if the ping stops, could be a router or in our case, rpi controlling the door that needs to stay up and working for access.

@sjefferson99 sjefferson99 added 🔮 enhancement New feature or request 👁 smib-hid SMIBHID related code labels Nov 25, 2024
@sjefferson99 sjefferson99 self-assigned this Nov 25, 2024
@sjefferson99
Copy link
Member Author

Need to consider if the relay will reliably stay on on pico reset. Making sure pin value set early and potentially a circuit to invert the relay and have gpio high = reset.

@sjefferson99
Copy link
Member Author

The GPIO defaults to input and pull down, configure active_high = False and connect device to relay NC and this should work fine.

@sjefferson99 sjefferson99 linked a pull request Dec 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔮 enhancement New feature or request 👁 smib-hid SMIBHID related code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant