The objective of this paper was to develop a directional control methodology using Boolean algebra algorithm for an obstacle avoidance vehicle. The vehicle was controlled by programmable logical controller, in order to pass smoothly through obstacles. The control strategy combined logical and time-sequence control methods. A logical circuit composed of switching functions was efficiently transformed to PLC program. The complete electrical-mechanical system was successfully tested in our campus with three kinds of obstacle patterns. Through experimental results, it demonstrated that the methodology was feasible to this work and suitable as an example for mechatronical education.