While there are a couple of open-source brushless drivers already available, [neuromancer2701] created his own brushless motor controller on an Arduino ... design and source code are available ...
An Arduino Uno takes this data, runs it through a PID loop, and commands an L298N motor driver to adjust the speed and direction of two DC motors. The power comes from two Li-ion batteries feeding ...