本論文將透過在機器上置入飛輪,經由控制飛輪的轉動產生力矩來產生反作用力達到平衡。首先將著重於硬體架構的設計,從天寶導航的SketchUp軟體開始製作,繪製3D模擬圖;接著透過MakerBot出產的Replicator 3D印表機來產生塑膠材質的模型;最後將處理器、感測器、DAC、無刷馬達及驅動器買齊,與工廠製作出的鋁合金材質飛輪一起安裝後,完成硬體方面的架設。接著再經由撰寫程式碼,透過實作來驗證理論的可行性。 The purpose of this master thesis is in order to design a robot by installing two wheels and controlling the rotation of the wheels which produce torque. I focus on the hardware design at first with producing my 3D plan with SketchUp from Trimble Navigation and then produce the prototype in plastic with a 3D printer, “Replicator”, from MakerBot Industries. At last, I put a processor, a sensor, two DACs, two brushless motors with drivers, and two aluminum wheels on the robot to finish the hardware part. After that, we verify our theory by software.