Abstract
Sliding mode control(SMC) are carried out in this literature. And to make the controllers perform better, fuzzy logic was chosen,it makes PID controller auto-tuning parameters and reduced the chattering problem of sliding mode control. Since SMC take error and derivative of error as inputs, after comparison some results are obtained.PID controller response faster yet sliding mode control is much steadier. However certain problems cannot be ignored that the chattering phenomenal cannot be reduced entirely and this motion may hurt the machine; this project only considered a simple system, there is no guarantee PID can work as well as in this case for a much more complex system. MATLAB simulink was the main approach to obtain the performance of the two controllers: to observe the control output of the two controllers, electric circuit and special controllers are designed and tested in MATLAB.