Skip to content

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

Open
@drf5n

Description

@drf5n

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 line like this to setup:

pinMode(RELAY_PIN,OUTPUT); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions