Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

PID Library

SetSampleTime()

Decription

Determines how often the PID algorithm evaluates. The default is 200mS. For robotics applications this may need to be faster, but for the most part 200mS is plenty fast.

Syntax

SetSampleTime(SampleTime)

Parameters

SampleTime: How often, in milliseconds, the PID will be evaluated. (int>0)

Returns

None