Kmeter Unit
Kmeter Unit 是一款带 I2C 通信接口的 K 型热电偶传感器。硬件采用 ESP32-C3 主控 + MAX31855KASA+T 14bit 热电偶数字转换芯片。该转换芯片支持测量范围为 -200°C 至 1350°C 的热电偶探头。
支持的产品:
MicroPython 应用示例
import os, sys, io
import M5
from M5 import *
from hardware import *
from unit import KMeterUnit
import time
i2c0 = I2C(0, scl=Pin(1), sda=Pin(2), freq=100000)
kmeter_0 = KMeterUnit(i2c0, 0x66)
print(kmeter_0.get_firmware_version())
while True:
print(kmeter_0.get_thermocouple_temperature(kmeter_0.CELSIUS))
print(kmeter_0.get_internal_temperature(kmeter_0.CELSIUS))
time.sleep_ms(250)
UiFlow2 应用示例:
class KmeterUnit
“”
Methods
- KmeterUnit.get_thermocouple_temperature(scale) float
获取 Kmeter Unit 中热电偶的温度。返回一个 float 值。
- 参数:
scale (bool) – 接受
KmeterUnit.CELSIUS或KmeterUnit.FAHRENHEIT的值。
UIFLOW2:

- KmeterUnit.get_internal_temperature(scale) float
获取 Kmeter Unit 的内部温度。返回一个 float 值。
- 参数:
scale (bool) – 接受
KmeterUnit.CELSIUS或KmeterUnit.FAHRENHEIT的值。
UIFLOW2:









