This website goes through the principles of Field Oriented Control (FOC) control algorithm for AC electric motor. Control software for target embedded microcontroller is also provided to better explain how the algorithm is implemented in the real world, and what are some of the challenges.