Issues‎ > ‎Vol.7 No.1‎ > ‎


DC Motor Identification Based on Artificial Neural Networks  Implementation in a Microcontroller

Shivan Shkur Mahmood1,      Alaa M. Abdulrahman1

1University of Sulaimani, College of Engineering, Electrical Engineering Department

Received 1 August 2019,      Accepted 2 December 2019,      Published 1 April 2020


In the last few decades neural networks have been involved in many fields of researches and their application was restricted to be embedded on a computer. This paper describes implementing of artificial neural network (ANN) based on a low cost microcontroller to identify a DC motor mode. The identifier will act as path for the output error feedback in Model Reference Adaptive Controller or to build an inverse controller. To reduce the size of the proposed system, the DC Motor is controlled conventionally using the method of Pulse Width Modulation technique on the same microcontroller. The proposed neural network is a multilayer feed-forward network which is of three layers (1-3-1) structure. The training technique used the back propagation algorithm by using C program. Identification process has been implemented successfully in the microcontroller and validated with different randomly picked data with least mean square error of 0.0007. 


Microcontroller, PWM, ANN, Identification, DC motor.

1. Moleykutty George, “Speed Control of Separately Excited DC Motor”, Proceedings of the American Journal of Applied Sciences , Faculty of Engineering and Technology, Multimedia University, Malaysia ,Vol.55, March 2008, pp.227-233.
2. M. H. Bhuyan, M. A. Rabby and M. M. G. Tarik, “Microcontroller based Automatic Traffic Light Control System Design,” Proceedings of the National Conference on Electronics and Telecommunications for Digital Bangladesh, Bangladesh Electronics Society, Dhaka, June 2010, pp. 139-142.
3. Simon Haykin, “Neural Networks and Learning Machines”, Copyright  by Pearson Education, Inc. Printed in the United States of America, ,3rd Edition, Pearson, McMaster University, Canada 2009.
4. Dhirajkumar S. Jinde, Samrat S. Thorat, “Neural Network Implementation Using FPGAs” , International Journal of Computer Science and Information Technologies, Vol. 5 (3) , 2014, pp.3431-3433.
5. H. Esmaeilzadeh, P. Saeedi, B. N. Araabi, C. Lucas, and S. M. Fakhraie, “Neural network stream processing core (NnSP) for embedded systems,” in Circuits and Systems. Proceedings.IEEE International Symposium on, 2006, p. 21–24.
6. Nicholas Jay Cotton, “A Neural Network Implementation on Embedded Systems”, dissertation submitted to the Graduate Faculty of Auburn University in partial fulfillment of the requirements for the Degree of Doctor of Philosophy, August 9, 2010.
7. S. Himavathi, D. Anitha, and A. Muthuramalingam, "Feedforward Neural Network Implementation in FPGA Using Layer Multiplexing for Effective Resource Utilization," IEEE Transactions on Neural Networks, vol. 18, pp. 880-888, 2007. 
8. D. Zhang and H. Li, "A Stochastic-Based FPGA Controller for an Induction Motor Drive with Integrated Neural Network Algorithms," IEEE Transactions on Industrial Electronics, Vol.55, 2008, pp. 551-561.
9. M. Mohamadian, E. P. Nowicki, A. Chu, F. Ashrafzadeh, and J. C. Salmon, "DSP implementation of an artificial neural network for induction motor control", IEEE Canadian Conference on Electrical and Computer Engineering , Engineering Innovation: Voyage of Discovery, 1997, pp. 435-437.
10. Mohamed Nasreldin M.A., Abdalaziz Abdalgfar A.A., Ahmed Alfatih A., Ahmed Abdelrahman A.A., “Implementation of a PID Control System on Microcontroller (DC Motor Case Study)”, IEEE International Conference on Communication, Control, Computing and Electronics Engineering, Khartoum, Sudan, 2017. 
11. Ben Joan, September2009,"Difference between FPGA and microcontroller”, on-line,,
12. Barr Michael, September 2001, "Introduction to Pulse Width Modulation (PWM)", on-line, BARR group, pp.103-104.
13. Muhammad Ali Mazidi, Janice G. Mazidi and R.D. McKinlay, “The 8051 Microcontroller and Embedded Systems: Using Assembly and C”, 2nd edition, PH publishing, 2006.
14. G. A. P. Raka Agung, S. Huda, I W. Arta Wijaya, “Speed Control for DC Motor with Pulse Width Modulation (PWM) Method Using Infrared Remote Control Based on ATmega16 Microcontroller”, IEEE International Conference on Smart Green Technology in Electrical and Information Systems (ICSGTEIS), 2014,pp.109-111.
15. Toshinri Munakatat, “Fundamentals of the New Artificial Intelligence”, 2nd edition, Springer-Verlog, London, 2008.