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)