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

Driving an output pin between low and (input pull up) #298

Open
ryansch opened this issue Nov 25, 2022 · 1 comment
Open

Driving an output pin between low and (input pull up) #298

ryansch opened this issue Nov 25, 2022 · 1 comment

Comments

@ryansch
Copy link

ryansch commented Nov 25, 2022

I have an 8 relay board from waveshare. It's an active-low board. It's working great with mqtt-io so far.

I'm using it to open and close heating valves in my house and I'd like to put in manual rocker switches to force the heating on even in the case of a complete software failure.

Is it feasible to switch the gpio pins to input mode with the internal pull up resistor attached as an alternative to driving an output high state? If this works, it would then allow the rocker switch to connect the circuit to ground to activate a relay.

If the physical electronics will let me do this, is it a feature that would be welcome in mqtt-io?

@ryansch
Copy link
Author

ryansch commented Nov 29, 2022

It looks like this is called open collector or open drain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant