Internal addresses, registers, constants for the MH-Z19 CO2 sensor. More...
Internal addresses, registers, constants for the MH-Z19 CO2 sensor.
Definition in file mhz19_internals.h.
Go to the source code of this file.
MH-Z19 Baud rate | |
#define | MHZ19_UART_BAUDRATE 9600 |
MH-Z19 transmission constants | |
#define | MHZ19_READ_START 0xff |
Start bytes. | |
#define | MHZ19_READ_SENSOR_NUM 0x01 |
Sensor number. | |
MH-Z19 commands | |
#define | MHZ19_CMD_AUTO_CALIBRATION 0x79 |
Auto calibration command. | |
#define | MHZ19_CMD_GAS_CONCENTRATION 0x86 |
Gas concentration command. | |
#define | MHZ19_CMD_CALIBRATE_ZERO 0x87 |
Zero calibration command. | |
#define | MHZ19_CMD_CALIBRATE_SPAN 0x88 |
Span calibration command. | |
MH-Z19 transmission data positions | |
#define | MHZ19_RX_POS_PPM_HIGH 1 |
Measurement high byte. | |
#define | MHZ19_RX_POS_PPM_LOW 2 |
Measurement low byte. | |
#define | MHZ19_RX_POS_CHECKSUM 7 |
Checksum position. | |