Python - Documentation (https://adafru.it/PfM)
Arduino - Documentation (https://adafru.it/PfN)
Look Up Table Support
As an alternative to adjusting the speed directly with your code, the EMC2101 allows you to set up a Look
Up Table (LUT) that specifies how fast the fan should spin for a given temperature. One important note is
that the LUT only works automatically based on the external temperature.
Python - LUT Documentation (https://adafru.it/PfM)
Python - LUT Example (https://adafru.it/PfP)
Arduino - Documentation (https://adafru.it/PfN)
Arduino - LUT Example (https://adafru.it/PfQ)
LUT Hysteresis
If the current temperature is very close to a LUT temperature, the fan may "thrash" by changing the fan
speed excessively as the temperature fluctuates between above and below the LUT temperature.
To prevent thrashing, the EMC2101 applies a hysteresis value to the measured temperature which is an
additional number of degrees below the LUT temperature that the measurement must be before
switching to the lower LUT entry.
Python - Documentation (https://adafru.it/PfM)
Arduino - Documentation (https://adafru.it/PfN)
Arduino - LUT Example (https://adafru.it/PfQ)
Forcing a Manual Temperature
For testing the LUT, the EMC2101 allows you to set a temperature that the LUT will use instead of the
external temperature. Each time you set a forced/manual temperature, the EMC2101 will consult the LUT
to find the corresponding fan speed. The keen eyed may notice that you can use this to hack LUT support
for other values than the external temperature sensor by regularly updating the forced temperature based
on another measurement.
Python - Documentation (https://adafru.it/PfM)
Python - LUT Example (https://adafru.it/PfP)
Arduino - Documentation (https://adafru.it/PfN)
Arduino - LUT Example (https://adafru.it/PfQ)
PWM Tuning
It can sometimes be necessary to adjust the PWM frequency to suit your application or prevent a motor
from making audible noise. These features allow you to specify the base PWM clock, divisor and
frequency.
Python - Documentation (https://adafru.it/PfM)