Hello all,
I'm attempting to make a temperature controller which will run on a PID loop. Upon doing research, I found what appears to be a good baseline as to what I need. I posted the link which contains the code I copied to a T as well as his schematic. I am now simply trying to get his code to work before I make any modifications. The problem I'm currently having with it is that the output value is always a zero, which makes me believe the myPID.compute() function is not computing the output for me. The input value will change as I vary the light intensity about the photoresistor but the output value will just remain at zero the whole time (i.e., the LED is always off). Anyone have any ideas as to why this is?
Regards,
Ryan
PID_Example.pdf (751 KB)