In this dissertation, using genetic algorithm to optimize the parameters of fuzzy logic controller is proposed for motor position control. The relay feedback test method is used to obtain the mathematical model of the motor, and the integrated absolute error (IAE) used as a performance indicator to determine the parameters of the membership functions in the fuzzy controller using the genetic algorithm, in order to obtain the minimum control performance indicators. Optimal motor control performance is achieving by making improvements to the time required for parameter adjustment. The floating ball device is a nonlinear system. Combining the PD type fuzzy logic control and integral control is employed for the control law design. The integral controller improves the steady-state error of the floating ball system in order to obtain desirable results.