Link

Motor configuration code

Arduino SimpleFOClibrary supports two types of BLDC motors:

The motor code is written in a way to support as many different motors out there as possible and in a way to be fully interchangeable.

Digging deeper

For more theoretical explanations and source code implementations of the FOC algorithm and the motion control approaches check out the digging deeper section.