Arduino-PID-Library
Arduino-PID-Library copied to clipboard
PID_RelayOutput.ino needs to set 'pinMode(RelayPin, OUTPUT);'?
Does the 'RelayPin' the PID_RelayOutput.ino example need to be set to output in the 'setup' function?
I had the same issue when trying this example. should be a
pinMode(RelayPin,OUTPUT);
I ran into the same thing. Wish I had thought to look here instead of trying to trouble shoot it for the past couple hours.
like sjunnesson said, simple fix just add: pinMode(RelayPin, OUTPUT);