br3ttb / Arduino-PID-Library

1.92k stars 1.1k forks source link

Realy example problem #10

Open sjunnesson opened 11 years ago

sjunnesson commented 11 years ago

First thanks for a great library. It helped me cook a great steak yesterday. :)

To get it working with my setup I had to modify it some though.

My setup is a temperature sensor (DS1820) that reads celsius and sets the Input variable each loop to the last read temperature.

To get it working with my solid state relay I had to change the less than sign to a greater than sign like below. Not sure of this is just a typo from your side or unique to my setup.

if(Output > millis() - windowStartTime){

kelna2 commented 10 years ago

Thanks! once I added the:

pinMode(RelayPin, OUTPUT);

I ran into this problem too. making it > fixed it