Implementing Control Engineering Algorithm on ESP32 Microcontroller: Case Study – DC Motor Speed Control

Publication Date : 17/01/2023

Author(s) :

Usman Kamalluddeen Mahmud, Fatima Sani, Amir Abdullahi Bature.

Volume/Issue :
Volume 18
Issue 1
(01 - 2023)

Abstract :

Implementing control engineering algorithm on a microcontroller will aid students understanding of the subject matter. Practically, the effect of different type of excitation with or without disturbance can be viewed in real-time. Students will be conversant with control algorithms and also, be able to apply it on any kind of system. This paper presents a cheap and easy method of implementing control engineering algorithm on ESP32 microcontroller focusing on speed control of a DC motor. Two popular control algorithms: proportional integral derivative (PID) and pole placement (PP) controller were used. A linearized model of the DC motor was obtained, and a discretized PID and PP controller was designed. For the PID controller, a trial by error tunning method was used to obtain suitable gains. While for PP controller, it was designed with poles located at different locations on the unit circle of the z-plane. Simulations were carried out in MATLAB to investigate the performance of the PID and PP controller before implementing on a real DC motor.

No. of Downloads :


About BayeroJet

The new Bayerojet Journal is designed to be able to manage the increasing number of published articles. The new system will allow the publishers as well as the Bayerojet team to make publishing more efficient. If you wish to publish an article it will be very easy. All you have to do is to submit your paper online and wait to the review before it will be finally published. You can manage your articles and send new versions at any time. Browse through our page to find out more.