Magnetic levitation is an example of a nonlinear system that is naturally unstable. In the control system field, it can be also used to check the effectiveness of control methods. Unlike other researches overcoming by analytical method, this research investigates the solution of the nonlinearity of the magnetic field by placing two effect hall sensors on the top and bottom of magnetic coils. After decreasing the effect of nonlinearity, two PID control tuning methods, Ziegler Nichols (ZN) and Cohen Coon (CC), are compared to obtain an appropriate control structure and its initial parameters. The experimental result shows that the best control structure of ZN method is PID whereas its initial parameters, Kp, Ti, and Td, are 15.33, 0.036 and 0.009, respectively. The rise-time and settling time of the response are 0.54s and 0.59s. The appropriate control structure is PI control whereas Kp and Ti are 30.05 and 0.012 from CC method. The rise-time and settling time resulted are 0.8s and 0.67s. The ZN method with PID control structure has a better response with smaller rise-time and settling time than PI control from CC Method. This research is benefit for solving a problem dealing with magnetic levitation control.