蔡睿妍
摘要:舵機是傳統(tǒng)的角度控制驅(qū)動器,在機器人等領(lǐng)域得到了廣泛應用。傳統(tǒng)的舵機主要采用單片機系統(tǒng)驅(qū)動控制,但單片機系統(tǒng)對多個舵機同時進行驅(qū)動效果并不理想,因此,采用了流行的開源Arduino控制板,通過輸出不同脈寬的信號進行舵機轉(zhuǎn)動角度控制,實驗證明,該系統(tǒng)實現(xiàn)了舵機角度控制,滿足舵機角度控制精度要求,為舵機的驅(qū)動提供了新方式。
關(guān)鍵詞:Arduino;舵機;脈寬信號;角度控制
中圖分類號:TM383.4文獻標識碼:A文章編號:1009-3044(2012)15-3719-03
Design of Servo Control System Based on Arduino
CAI Rui-yan
(Information and Engineering College of Dalian University, Dalian 116622, China)
Abstract: The servo is the traditional angle control driver and has been widely used in robot and other fields. In general, servo is driven by microcontroller system, but the driving effect of microcontroller system is not satisfactory for multiple servos. So, the Arduino, an open source control board, is used to output different pulse width signal to control the servo rotation angle, experiment showed that, this system realizes the angle control of servo, meets the requirement of angle control precision and provides a new way to drive servo.
Key words: Arduino; servo; pulse width signal; angle control
舵機是一種位置(角度)伺服的驅(qū)動器,適用于那些需要角度不斷變化并可以保持的控制系統(tǒng)。目前,在高檔遙控玩具,如飛機、潛艇模型,遙控機器人中已經(jīng)得到了普遍應用。傳統(tǒng)對舵機的控制主要采用單片機,利用定時器和中斷的方式來完成控制,這樣的方式控制一個舵機還是相當有效的,但是隨著舵機數(shù)量的增加,控制起來就沒有那么方便了,尤其對機器人等需要多個舵機同時工作的系統(tǒng)中,單片機驅(qū)動復雜且精度難以保證。因此,本文采用目前較為流行的開源Arduino來實現(xiàn)舵機的精確控制。
本文采用現(xiàn)今較為流行的Arduino控制板進行了舵機的角度控制,實驗驗證結(jié)果表明,Arduino控制板具有較高的控制精度,完全滿足舵機角度的精度控制。當有多個舵機同時需要驅(qū)動時,Arduino控制板驅(qū)動也會達到很高的精度要求。