步進馬達 (stepper)
兩相混合式步進馬達,轉子為永磁體。
分類: 馬達 · 種類: {"kind":"machine","model":"stepper"}
何時使用
用於以驅動器切換繞組電流的開迴路定位。需要回授連續旋轉時,改用無刷直流馬達或表面式永磁同步馬達。
接腳
| 接腳 | 訊號域 | 意義 |
|---|---|---|
a+ |
電氣 | 繞組 a 正端,電流由此流入 |
a- |
電氣 | 繞組 a 負端 |
b+ |
電氣 | 繞組 b 正端,電流由此流入 |
b- |
電氣 | 繞組 b 負端 |
shaft |
機械 | 機械軸,轉速單位為 rad/s |
常用參數
steps: Full steps per turn (預設值: 200)kt: Torque made per amp of phase current (預設值: 0.5)r: Winding resistance per phase (預設值: 1.5)l: Winding inductance per phase (預設值: 3m)j: How strongly the rotor resists speeding up (預設值: 5u)
參數
| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
r |
Ω | 1.5 | Winding resistance per phase | |
l |
H | 3m | Winding inductance per phase | |
kt |
N·m/A | 0.5 | Torque made per amp of phase current | |
steps |
— | 200 | Full steps per turn | |
detent |
N·m | 10m | Holding torque with the windings off | |
j |
kg·m² | 5u | How strongly the rotor resists speeding up | |
b |
N·m·s/rad | 0 | Friction that grows with speed | |
w0 |
rad/s | 0 | Shaft speed at the start | |
theta0 |
rad | 0 | Rotor position at the start |
參數說明在兩種語言中都是英文。
模型
轉子齒數為 Nr = steps/4,電氣角為 θe = Nr·θm。磁通為 λa = l·ia + (kt/Nr)·cos(θe) 與 λb = l·ib + (kt/Nr)·sin(θe)。轉矩為 Te = kt·(-ia·sin(θe) + ib·cos(θe)) - detent·sin(4·θe)。單相通過電流 I 時,保持轉矩的峰值為 kt·I。依 +a、+b、-a、-b 的順序激磁,平衡點每次移動 90 電氣角度,也就是一整步 2π/steps 弧度。兩個繞組不耦合。
常見錯誤
- 步進馬達在低速時會振盪並共振。請加入黏滯摩擦 b 或負載阻尼,使用正弦電流的微步進,並避免以轉子的自然頻率步進。
- 電流由驅動器決定,所以每個繞組都要由能反向的 H 橋供電。單純的電壓源只能讓電流依繞組時間常數上升,步進速率高時轉矩會下降。
- steps 是每轉的整步數,必須是 4 到 4000 之間 4 的倍數(1.8 度為 200),否則無法執行。theta0 是電氣角,等於機械角的 steps/4 倍,負載或加速度超過馬達能給的轉矩時,馬達會失步。
Problems 規則: compile.error
規格書與來源
r 與 l 取每相繞組的電阻與電感,steps 是 360 除以步進角,detent 取卡位轉矩。kt 是保持轉矩除以額定電流(若保持轉矩是兩相同時通電的值,則改除以 2 的平方根乘以電流),j 是轉子慣量,其中 1 g·cm² 等於 1e-7 kg·m²。
範例
以指令 file.openExample 開啟範例,名稱為 demo:stepper.
由 cargo xtask reference 依使用說明文字與參數規格產生,請勿手動編輯。