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

The PID_RELAY_OUPUT.ino file doesn't set pinMode(RELAY_PIN,OUTPUT) #146

Open
drf5n opened this issue Oct 28, 2024 · 0 comments
Open

The PID_RELAY_OUPUT.ino file doesn't set pinMode(RELAY_PIN,OUTPUT) #146

drf5n opened this issue Oct 28, 2024 · 0 comments

Comments

@drf5n
Copy link

drf5n commented Oct 28, 2024

https://github.com/br3ttb/Arduino-PID-Library/blob/524a4268fc01e6ea397e7fc5b5d820741e9b662f/examples/PID_RelayOutput/PID_RelayOutput.ino#L32C2-L44C2

This leads to unexpected behavior since the pullup/high-impedance doesn't drive relays or relay drivers very well.

See #137 for a fix or just add a like like this to setup:

pinMode(RELAY_PIN,OUTPUT); 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant