
The MEMSF MTP40-D is an NDIR (Non-Dispersive Infrared) CO2 sensor module designed by Shenzhen MemsFrontier Electronics Co., Ltd. It features advanced self-calibration algorithms enabling long-term high accuracy without factory recalibration.
The module has 9 pins including power supply, ground, communication lines (Host-TX, Host-RX for UART; I2C SDA, SCL), PWM output, alarm output, and manual calibration input (bCAL-in).
The sensor uses NDIR technology for CO2 detection. It includes a self-calibration algorithm with a default cycle of 7 days (adjustable from 24 to 720 hours). After power-on, an initial self-calibration occurs within 24 hours to quickly stabilize accuracy. For best results, the sensor environment should approximate outdoor atmospheric CO2 levels for several hours during calibration periods.
The module supports UART and I2C communication at 9600 bps. The communication protocol uses a fixed frame header (0x42 0x4D) and includes instruction bytes, command bytes, data length, data payload, and checksum for error checking.
The CO2 concentration data is transmitted as a 32-bit integer with a validity flag (0x00 valid, 0xFF invalid).
The Alarm-OC pin outputs a high level when CO2 concentration exceeds 1000 ppm and low when below 800 ppm. It is an open-drain output with a weak pull-up resistor and cannot sink current. In case of module error, the alarm pin remains high.
The PWM output cycle is 1004 ms with a high pulse width ranging from 2 ms to 1002 ms corresponding to CO2 concentration from 0 to 5000 ppm. The CO2 concentration can be calculated using the formula:
Cppm = 5000 × (TH - 2 ms) / (TH + TL - 4 ms)
where TH is the high-level duration and TL is the low-level duration within one PWM cycle.
Examples include setting and reading air pressure parameters, reading CO2 concentration, and controlling calibration functions via serial commands. The document provides detailed hexadecimal command frames for these operations.
Shenzhen MemsFrontier Electronics Co., Ltd.
Address: 3/F, B2 Building, China Merchants Guangming Sci-Tech Park, Guanguang Rd., Guangming District, Shenzhen, Guangdong, China 518107
Tel: +86-755-21386871
Email: [email protected]
Website: www.memsf.com
S P E C I F I C AT I O N Shenzhen MemsFrontier Electronics Co., Ltd.
Open the catalog to page 1MTP40-F MTP40-D NDIR R C O 2Sensor Module N D I CO 2 传感器模块 Specifications MEMSF MTP40-F-5K CO 2 Module Target Gas Operating Principle Measurement Range Measurement Interval Response Time Operating Temperature Operating Humidity Storage Temperature Power Supply Power Consumption 300mA peak, 4mA normal, 13mA average Life Expectancy Serial Communication Alarm Output >1000ppm output to 1, <800ppm output to 0, open-drain output with pull-up resistor, the pin cannot sink any current Self Calibration Cycle Initial time is 24 hours, later is 7 days Absolute Maximum Ratings Parameter Ambient Storage Temperature...
Open the catalog to page 2MTP40-F MTP40-D NDIR R C O 2Sensor Module N D I CO 2 传感器模块 Terminals Description Pin Function Electrical Specification Power Pins GND(Pin 2) VIN(Pin1) VCC-Out(Pin5) Power Supply Minus Terminal Supply Plus Terminal The internal LDO output of the sensor is usually 3.3V+/-2%. Generally used for serial communication level conversion. Unprotected against reverse connection, input voltage range: 4.2V---5.5V Output voltage: 3.3V+/-2% No overcurrent protection Maximum output current: 6mA Communication Pins Host-TX(Pin6) /IIC-SDA The TX pin of the UART of the host system is usually the TX of the customer's...
Open the catalog to page 3MTP40-F MTP40-D NDIR R C O 2Sensor Module N D I CO 2 传感器模块 Calibration Function The module supports two calibration functions: 1.The MTP40 module is a precision optical module. Due to various reasons such as transportation, installation, welding, etc., the measurement of the module will cause a certain drift, making influence to the accuracy. The module has a built-in self-calibration algorithm, which can automatically correct the measurement error periodically, so that the module always maintains a relatively good measurement accuracy. The module selfcalibration cycle defaults to 7 days (168...
Open the catalog to page 4MTP40-F MTP40-D NDIR R C O 2Sensor Module N D I CO 2 传感器模块 0x0007 0x0008 0x0009 Read self-calibration status Read the self-calibration period(hours) Set the self-calibration period(hours) 2. Basic Control Protocol Function Name Send by Set air pressure MCU paramReturn by eters Module Read the Send by MCU current pressure Return by value Module Send by MCU Read gas concentration Return by value Module Single point correction function (with reference concentration) Read single point correction status Instruction Command Data Length Frame Header Byte Byte The range of atmospheric pressure is 700-1100...
Open the catalog to page 5MTP40-F MTP40-D NDIR R C O 2Sensor Module N D I CO 2 传感器模块 3. Quick Guide: ①Set air pressure parameters Send:0x42 0x4D 0xA0 0x00 0x01 0x00 0x02 0x03 0xF5 0x02 0x2A ③Read gas concentration value Send:0x42 0x4D 0xA0 0x00 0x03 0x00 0x00 0x01 0x32 Data valid bit is 0xFF,the data is unavailable: IIC Instruction Descriptions The module operates in IIC slave mode and can be connected to an external MCU with a pull-up resistor inside the module. The slave address is: 0x32 (7-bit address) The write operation address is: 0x64 The read operation address is: 0x65 Host sending timing: 1.Send a start signal;...
Open the catalog to page 6MTP40-F MTP40-D NDIR R C O 2Sensor Module N D I CO 2 传感器模块 PWM Function Descriptions The cycle of the PWM is 1004ms; High level output 2ms in the initial stage; The central cycle is 1000ms; Low level output 2ms at the end stage. Calculation formula for obtaining the current Co 2 Concentration value through PWM: Cppm = 5000*(TH-2ms)/(TH+TL-4ms); Cppm is the calculated CO2 concentration value, the unit is ppm; TH is the time when the output is high in an output cycle; TL is the time when the output is low in one output cycle. The alarm values were edited. Shenzhen MemsFrontier Electronics Co.,...
Open the catalog to page 712 Pages