I am adding the python program I have written to control a DC motor using PID control technique. You can get the code from the following link.
Share your suggestions so that I can improve the code. I will explain the working of the code later in this blog, In sha Allah.
Thanks
Noufal