Skip to Content
Hands-On Embedded Programming with C++17
book

Hands-On Embedded Programming with C++17

by Maya Posch
January 2019
Intermediate to advanced
458 pages
10h 35m
English
Packt Publishing
Content preview from Hands-On Embedded Programming with C++17

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RTOS with Microcontrollers

Hands-On RTOS with Microcontrollers

Brian Amos

Publisher Resources

ISBN: 9781788629300Supplemental Content