This paper presents a PID automatic gain-tuning algorithm for the electronic throttle valve which is driven by wire. Since the system characteristics of position control for electronic throttle valve are so complicated that both the real time robustness and the manufacturing cost must be considered for mass production. To resolve this paradox, a kind of algorithm called RLS (Recursive Least Square) is adopted for the control of the ETB (Electronic Throttle Body). Using this algorithm, the PID gains can be adjusted automatically with the estimated system parameters. Furthermore, a pre-filter is supplemented for the sake of the robustness against the friction and loads. From the industrial requests for the system, the design specifications are decided as follows: the settling time should be less than 1 sec and the overshoot should be kept below 3%. The results of the experiments based on this approach show that the high robustness can be achieved while the system stability is satisfied steadily. A parameter estimation scheme and a gain-tuning algorithm have been properly combined and utilized in this research and the effectiveness is verified through the real experiments.