蔡睿妍
摘要:舵機(jī)是傳統(tǒng)的角度控制驅(qū)動(dòng)器,在機(jī)器人等領(lǐng)域得到了廣泛應(yīng)用。傳統(tǒng)的舵機(jī)主要采用單片機(jī)系統(tǒng)驅(qū)動(dòng)控制,但單片機(jī)系統(tǒng)對(duì)多個(gè)舵機(jī)同時(shí)進(jìn)行驅(qū)動(dòng)效果并不理想,因此,采用了流行的開源Arduino控制板,通過輸出不同脈寬的信號(hào)進(jìn)行舵機(jī)轉(zhuǎn)動(dòng)角度控制,實(shí)驗(yàn)證明,該系統(tǒng)實(shí)現(xiàn)了舵機(jī)角度控制,滿足舵機(jī)角度控制精度要求,為舵機(jī)的驅(qū)動(dòng)提供了新方式。
關(guān)鍵詞:Arduino;舵機(jī);脈寬信號(hào);角度控制
中圖分類號(hào):TM383.4文獻(xiàn)標(biāo)識(shí)碼:A文章編號(hào):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
舵機(jī)是一種位置(角度)伺服的驅(qū)動(dòng)器,適用于那些需要角度不斷變化并可以保持的控制系統(tǒng)。目前,在高檔遙控玩具,如飛機(jī)、潛艇模型,遙控機(jī)器人中已經(jīng)得到了普遍應(yīng)用。傳統(tǒng)對(duì)舵機(jī)的控制主要采用單片機(jī),利用定時(shí)器和中斷的方式來完成控制,這樣的方式控制一個(gè)舵機(jī)還是相當(dāng)有效的,但是隨著舵機(jī)數(shù)量的增加,控制起來就沒有那么方便了,尤其對(duì)機(jī)器人等需要多個(gè)舵機(jī)同時(shí)工作的系統(tǒng)中,單片機(jī)驅(qū)動(dòng)復(fù)雜且精度難以保證。因此,本文采用目前較為流行的開源Arduino來實(shí)現(xiàn)舵機(jī)的精確控制。
本文采用現(xiàn)今較為流行的Arduino控制板進(jìn)行了舵機(jī)的角度控制,實(shí)驗(yàn)驗(yàn)證結(jié)果表明,Arduino控制板具有較高的控制精度,完全滿足舵機(jī)角度的精度控制。當(dāng)有多個(gè)舵機(jī)同時(shí)需要驅(qū)動(dòng)時(shí),Arduino控制板驅(qū)動(dòng)也會(huì)達(dá)到很高的精度要求。