Thermopile Shield

Thermopile Shield 為 OpenMV Cam 提供一個透過 I2C 連接的 16x4 熱感測器陣列,可用於低解析度熱成像與逐像素溫度量測。

Thermopile Shield

如需完整的資料表、照片與訂購資訊,請參閱 Thermopile Shield 產品頁面

重點特色

  • 16x4 熱感測器陣列,視野範圍 60 度 x 16 度

  • 物體溫度範圍 -50 C 至 300 C

接腳圖

Thermopile Shield 接腳圖

接腳參考

接腳

功能

P4

I²C SCL——通往熱電堆陣列的時脈

P5

I²C SDA——通往熱電堆陣列的資料

3.3V 電源軌

為熱電堆供電

GND 電源軌

共用接地

使用方式

透過 fir 模組從板載熱電堆陣列擷取熱力圖:

import fir
import image
import time

fir.init()

clock = time.clock()
while True:
    clock.tick()
    try:
        img = fir.snapshot(x_scale=10, y_scale=10,
                           color_palette=image.PALETTE_IRONBOW,
                           hint=image.BICUBIC,
                           copy_to_fb=True)
    except OSError:
        continue
    print(clock.fps())

以攝氏浮點數的 16×4 ndarray 形式讀取原始的逐像素溫度。fir.read_ir() 也會回傳環境溫度以及該影格中所見的最小/最大值:

import fir
import time
from ulab import numpy as np

fir.init()
w = fir.width()
h = fir.height()

while True:
    try:
        ta, ir, to_min, to_max = fir.read_ir()
    except OSError:
        continue
    grid = np.array(ir).reshape((h, w))
    print("Ambient: %.1f C, range: %.1f to %.1f C, mean: %.1f C"
          % (ta, to_min, to_max, np.mean(grid)))
    time.sleep(1)