Brushless Direct Current (BLDC) motors has suppressed other types of DC motors as they are known to have better speed/torque characteristics, high dynamic response high efficiency, long operating life, noiseless operation, and so on. The speed control of BLDC motors can be achieved using conventional Proportional, Integral and Derivative (PID) controllers but to ensure robustness and noise rejection ability intelligent controllers are superior to PID. The major problem of intelligent controllers is high cost of implementation as it needs high computational microprocessor. Artificial Neural Network (ANN) controllers with an improved control law is designed and implemented in this work using cheap and efficient microcontroller, the ESP32. The new control law has increased the efficiency of the controller in tracking the set point. A three layers ANN design was achieved using Keras and TensorFlow deep learning module using python language, the data used was from PID controller implemented via an experimental DC motor trainer with Arduino IDE as the programming interface. The ANN controller was then programmed in the ESP32. The results obtained have demonstrated an excellent performance of the developed ANN controller over the conventional PID controller in terms of rising time, settling time, maximum overshoot and noise/disturbance rejection ability.