PID control

jremington:
At some point, you may rediscover facts about sampling and the "system time constant" that have been understood for decades.

If that means that you know something relevant to this that I don't know perhaps you would be kind enough to share it?

For this heating project my sampling time is very constant. But I have another motor control project that works very well and the sample time varies from 4000 to 40000 µsecs depending on the speed the motor is running at.

Yes with the onboard ADC, but I can't see what that has to do with whether I should use every sample, or just every alternate sample.

...R