本篇論文主要是製作及控制一個具有自我維持平衡能力的兩輪機器人。其分成車身與兩輪部份，在兩輪的左、右各裝有一個直流馬達，帶動機器人的動作。我們利用電腦與FPGA來實現其控制，使用角速度陀螺儀量測車身傾斜角度及角速度，並利用編碼器量測兩輪轉動的速度及位置。模糊控制是本論文主要的控制器，用來控制車子的前進與後退。 兩輪自我平衡機器人由兩位同學合作完成，分別為(A)在電腦上實現車身平衡控制以及兩輪同步控制系統，達到車身部份保持平衡與兩輪轉速一致；以及(B)分別在電腦上實現機器人之前進與後退控制與兩輪同步控制系統，達到機器人之前進與後退。而本論文乃針對(B)項做研究。 The paper controls a two-wheel robot with self-balanced ability. It is divided into two parts --- the body and two wheels. We keep the balance of robot body using the computer and FPGA. We use the gyro to measure the angle and angular velocity of body and two encoders to measure velocity and position of two wheels, respectively. Fuzzy controller is used to control the robot for moving forward and backward in this paper. The two-wheel robot with self-balanced ability is finished by two students. Two theses are proposed as follows : (A) The robot balance control system and two-wheel synchronous control system are realized in the computer, respectively. They can achieve the goal of keeping the body balance and make the rotational speed of two wheels the same. (B) The forward and backward movement control system and two-wheel synchronous control system are realized in the computer, respectively. They can achieve the goal of moving forward and backward. This thesis is focused on the research of (B).