CO2 module

For the CO2 module, no attempt has been made yet to make it work with multiple types of CO2 sensors. The first CO2 sensor used was the MH-Z14, before it <indexentry content="modules, Building Management and Control (BMaC):CO2 module">switched to the more compact MH-Z19 sensor. Both of these use the same protocol on their universal asynchronous receiver/transmitter (UART) interface, however.

On the ESP8266 there are two UARTs, though only one is complete, with a receive (RX) and send (TX) line. The second UART only has a TX line. This essentially limits this MCU to a single UART and thus single UART-based sensor.

These sensors also have a single-wire interface in addition to the UART-based interface, where the sensor outputs the ...

Get Hands-On Embedded Programming with C++17 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.