Controlling brushless DC motors using the BeagleBone Black