霍爾電流感測器 (hallCurrentSensor)
量測流過導體的電流,輸出成比例的電壓,且有電氣隔離。
分類: 積體電路 · 種類: {"definition":"hallCurrentSensor","kind":"subsystem"}
何時使用
用來看真實電流感測器對讀值的影響。一般量測用電流表,分流電阻量測用含分流電阻的分流放大器,數十安培、直流到 200 kHz 的量測用閉迴路霍爾電流轉換器。
接腳
| 接腳 | 訊號域 | 意義 |
|---|---|---|
IPP |
電氣 | 一次側電流輸入,讀值為正 |
IPN |
電氣 | 一次側電流輸出 |
VIOUT |
電氣 | 感測器輸出,以 GND 為參考 |
GND |
電氣 | 輸出的接地參考 |
常用參數
sens: Sensitivity (the 05B device: 185 mV/A) (預設值: 0.185)vq: Output at zero current, VCC x 0.5 with a 5 V supply (預設值: 2.5)bw: Bandwidth: the single pole of the response (-3 dB) (預設值: 80000)rSense: Resistance of the primary conductor between IPP and IPN (預設值: 0.0012)noise: RMS output noise; 0 = a noiseless sensor (預設值: 0)
參數
| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
sens |
V/A | 0.185 | 1m – 10 V/A | Sensitivity (the 05B device: 185 mV/A) | x05B Performance Characteristics, Sens typ, p.6 |
vq |
V | 2.5 | 0 – 15 V | Output at zero current, VCC x 0.5 with a 5 V supply | Common Operating Characteristics, VIOUT(Q), p.5 |
bw |
Hz | 80000 | 1k – 100meg Hz | Bandwidth: the single pole of the response (-3 dB) | Common Operating Characteristics, f, p.5 |
rSense |
Ω | 0.0012 | 1u – 10 Ω | Resistance of the primary conductor between IPP and IPN | Common Operating Characteristics, RPRIMARY typ, p.5 |
outMin |
V | 0.1 | -15 – 15 V | Lowest output voltage (saturation near GND) | assumption: the datasheet does not give the saturation level |
outMax |
V | 4.9 | -15 – 15 V | Highest output voltage (saturation near VCC = 5 V) | assumption: the datasheet does not give the saturation level |
tDelay |
s | 0 | 0 – 10u s | Propagation delay ahead of the bandwidth pole: with the pole, a step reaches 50 % this plus ln 2 / (2 pi bw) late; 0 = none | model parameter: the ACS712 default applies none (a preset sets its sheet's tpd) |
noise |
V | 0 | 0 – 1 V | RMS output noise; 0 = a noiseless sensor | x05B Performance Characteristics, VNOISE(PP) typ 21 mV peak to peak at 2 kHz, p.6 (set to simulate; about a sixth of peak to peak is the rms) |
seed |
— | 1 | 0 – 9007t | Whole-number seed of the noise | model parameter |
參數說明在兩種語言中都是英文。
模型
一次側路徑是導體電阻 rSense 串聯一個電流量測元件,所以此元件會在電路中加入 rSense * i 的壓降。輸出是受控電壓源,依序為 vq + sens * i、頻寬 bw 的一階低通、有效值為 noise 伏特的固定種子高斯雜訊,最後限制在 outMin 到 outMax。雜訊只取決於 seed 與時間,所以每次執行結果完全相同。真實元件是比例式(靈敏度與零準位隨 VCC 變動)、有隔離且會隨溫度漂移,這些都沒有建模。
常見錯誤
- 輸出會在接近電源軌處飽和,預設靈敏度下約為正負 13 A。電流更大時會讀到平頂,請改用靈敏度較低的型號。
- 此處的感測器不是比例式,靈敏度與零準位保持固定。請把輸出接到需要 2.5 V 零準位的負載,步長則要小於響應時間的十分之一左右。
- noise 預設為 0,要看到雜訊請設定數毫伏的有效值。換一個 seed 就得到另一組雜訊,相同的 seed 永遠得到相同的結果。
Problems 規則: step.too_large, param.out_of_range
規格書與來源
sens 取該型號的典型靈敏度(5 A 型號為 185 mV/A,20 A 為 100 mV/A,30 A 為 66 mV/A)。vq 取零電流輸出(VCC x 0.5),bw 取 -3 dB 頻寬,rSense 取一次側導體電阻。outMin 與 outMax 是假設值,noise 由表中的峰對峰雜訊換算。以 ic.fromSpec 搭配 hallCurrentSensor 模板傳入,並把腳位改成規格書的名稱。 也可放置預設:ACS724LLCTR-05AB,或 TI 隔離式霍爾感測器 TMCS1123 共 16 個等級(A1A 至 A5A 零電流輸出 2.5 V、B1A 至 B5A 為 1.65 V、C1A 至 C5A 為 0.33 V、D71;靈敏度 25 至 150 mV/A,SBOSA24D)。tDelay 是頻寬極點之前可選的固定傳遞延遲(預設 0);TMCS1123 預設值設定此延遲,使極點與延遲合計符合規格書的 110 ns tpd。
範例
以指令 file.openExample 開啟範例,名稱為 demo:hallCurrentSensor.
由 cargo xtask reference 依使用說明文字與參數規格產生,請勿手動編輯。