The purpose of this project is to give an introduction to PID control. We experiment with PID controllers to control speed of a small arm attached to a DC-motor shaft. The speed of the motor will be detected using an IR sensor (IR optocoupler speed sensor). The sensor emits a laser light and then received by photocell which creates a pulse. When the light is blocked by the arm of the DC motor, a pulse is generated and sent to the Arduino.PID control is a basic control loop feedback mechanism. The controller minimizes the difference between the measured and the desired value of a chosen system variable by adjusting the system control inputs. the project can be found athttp://www.mechatronicser.ml/2018/10/speed-control-of-a-dc-motor-using-analog-pid-controller?share=facebook&nb=1