FTLab GDK101 伽马辐射传感器模块
GDK101 传感器平台允许您使用 GDK101 传感器来监测您所在位置的辐射水平。
GDK101 可以测量 1 分钟和 10 分钟的平均剂量率,它还能检测可能干扰测量的振动。
GDK101 需要设置 I²C 进行数据通信。
| 模块引脚 | 描述 |
|---|---|
| TX | UART TX 引脚 |
| RX | UART RX 引脚 |
| +5VIN | 正电源电压 |
| GND1 | 接地 |
| SDA | I²C 数据总线 |
| SCL | I²C 时钟总线 |
| A0 | 地址跳线 1 |
| A1 | 地址跳线 2 |
| I2C 地址 | 跳线状态 |
|---|---|
| 0x18 | A0 短接, A1 短接 |
| 0x19 | A0 断开, A1 短接 |
| 0x1A | A0 短接, A1 断开 |
| 0x1B | A0 断开, A1 断开 |
组件/集线器
Section titled “组件/集线器”# 配置示例gdk101: i2c_id: bus_a address: 0x18 update_interval: 10s-
address (可选, int): 手动指定传感器的 I²C 地址。默认为
0x18(A0和A1短接)。 地址由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秒 |
| 1 | 10秒到10分钟 |
| 2 | 10分钟后 |
这可以通过如下模板文本传感器来表示:
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"}; }