SENSIRION SCD30 二氧化碳传感器 I2C 通信参数及相关命令
程序员文章站
2022-04-02 10:55:53
...
SENSIRION SCD30 二氧化碳传感器
I2C 地址: 0x61
I2C 通信速率: 100KHz
特别注意: SCD30 要求与其通信的 I2C Master 主机,必须支持 clock stretching 时钟延展 (12mS,150mS)
SCD30 I2C 命令
static const uint8_t SCD30_I2C_ADDRESS = 0x61;
#define SCD30_CMD_START_PERIODIC_MEASUREMENT {0x00,0x10}
#define SCD30_CMD_STOP_PERIODIC_MEASUREMENT {0x01,0x04}
#define SCD30_CMD_SET_MEASUREMENT_INTERVAL {0x46,0x00}
#define SCD30_CMD_GET_DATA_READY {0x02,0x02}
#define SCD30_CMD_READ_MEASUREMENT {0x03,0x00}
#define SCD30_CMD_AUTO_SELF_CALIBRATION {0x53,0x06}
#define SCD30_CMD_SET_FORCED_RECALIBRATION {0x52,0x04}
#define SCD30_CMD_SET_TEMPERATURE_OFFSET {0x54,0x03}
#define SCD30_CMD_SET_ALTITUDE_COMPENSATION {0x51,0x02}
#define SCD30_CMD_SOFT_RESET {0xD3,0x04}
上一篇: L1-027 出租 (20分)
下一篇: L1-027 出租 (20分)