Thermopile Shield

Thermopile Shield trang bị cho OpenMV Cam một mảng cảm biến nhiệt 16x4 qua I2C để chụp ảnh nhiệt độ phân giải thấp và đo nhiệt độ từng điểm ảnh.

Thermopile Shield

Để xem datasheet đầy đủ, ảnh và đặt hàng, hãy xem trang sản phẩm Thermopile Shield.

Tính năng nổi bật

  • Mảng cảm biến nhiệt 16x4, góc nhìn 60 độ x 16 độ

  • Nhiệt độ vật thể từ -50 C đến 300 C

Sơ đồ chân

Thermopile Shield Pinout

Tham chiếu chân (pin)

Chân (Pin)

Chức năng

P4

I²C SCL — xung nhịp đến mảng thermopile

P5

I²C SDA — dữ liệu đến mảng thermopile

3.3V rail

Cấp nguồn cho thermopile

GND rail

Đất chung

Cách sử dụng

Chụp bản đồ nhiệt từ mảng thermopile tích hợp qua module 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())

Đọc nhiệt độ thô của từng điểm ảnh dưới dạng ndarray 16×4 của các số float theo Celsius. fir.read_ir() cũng trả về nhiệt độ môi trường xung quanh và giá trị min/max quan sát được trong khung hình:

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)