跳转到内容

FTLab GDK101 伽马辐射传感器模块

GDK101 传感器平台允许您使用 GDK101 传感器来监测您所在位置的辐射水平。

GDK101 可以测量 1 分钟和 10 分钟的平均剂量率,它还能检测可能干扰测量的振动。

GDK101 需要设置 I²C 进行数据通信。

模块引脚描述
TXUART TX 引脚
RXUART RX 引脚
+5VIN正电源电压
GND1接地
SDAI²C 数据总线
SCLI²C 时钟总线
A0地址跳线 1
A1地址跳线 2
I2C 地址跳线状态
0x18A0 短接, A1 短接
0x19A0 断开, A1 短接
0x1AA0 短接, A1 断开
0x1BA0 断开, A1 断开
GDK101 伽马辐射传感器模块。
# 配置示例
gdk101:
i2c_id: bus_a
address: 0x18
update_interval: 10s
  • address (可选, int): 手动指定传感器的 I²C 地址。默认为 0x18A0A1 短接)。 地址由 A0 的状态作为第 1 位和 A1 的状态作为第 2 位组成,因此总共可能有四个地址。

  • update_interval (可选, int): 手动定义传感器的更新间隔。默认为 60s。

  • i2c_id (可选, string): 总线的可选名称。

# 配置示例
sensor:
- platform: gdk101
radiation_dose_per_1m:
name: "GDK101 Radiation Dose @ 1 min"
radiation_dose_per_10m:
name: "GDK101 Radiation Dose @ 10 min"
status:
name: "GDK101 Status"
measurement_duration:
name: "GDK101 Measuring Time"

用于辐射数据的传感器平台

配置变量:

  • radiation_dose_per_1m (可选): 1 分钟平均辐射剂量。 所有选项来自 Sensor

  • radiation_dose_per_10m (可选): 10 分钟平均辐射剂量。 所有选项来自 Sensor

  • status (可选): 传感器状态。 所有选项来自 Sensor

  • measurement_duration (可选): 测量总时间。 所有选项来自 Sensor

# 配置示例
binary_sensor:
- platform: gdk101
vibrations:
name: "GDK101 Vibrations"

指示测量是否受到振动干扰的二值传感器。

配置变量:

  • vibrations (必需): 振动状态。 所有选项来自 Binary Sensor
# 配置示例
text_sensor:
- platform: gdk101
version:
name: "GDK101 FW Version"

报告传感器固件版本的文本传感器。

配置变量:

  • version (必需): 模块的固件版本。 所有选项来自 Text Sensor

传感器状态指示传感器已工作多长时间,这表示测量的准确性。

状态描述
0开机 ~ 10秒
110秒到10分钟
210分钟后

这可以通过如下模板文本传感器来表示:

sensor:
- platform: gdk101
status:
name: "GDK101 status"
id: gdk101_status
text_sensor:
- platform: template
name: "GDK101 Status Description"
lambda: |-
int status = int(id(gdk101_status).state);
if (status == 0) {
return {"Powered On"};
} else if (status == 1) {
return {"Settling"};
} else if (status == 2) {
return {"Settled"};
} else {
return {"Unknown status"};
}