But resistors, small electronic parts tucked out of sight, are what actually control the fan ... it could be because the blower motor for the fan or a switch or resistor that controls fan speed ...
shunt resistor) and rotor position (think: encoder). Implementing the algorithm, though, can get a bit tricky since it touches bits of linear algebra, motor physics, and control theory.