Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mh-zx-driver

MH-Z* family CO2 sensor driver built on top of embedded-io-async primitives. This is a no_std crate suitable for use on bare-metal.

A fork of https://github.com/xaep/mh-zx-driver adapting the project to work with embedded-io-async.

Example

// assume you have some embedded hal implementation giving you
// a tx and rx object.
let (tx, rx) = uart.split();
let mut sensor = Sensor::from_tx_rx(tx, rx);
let measurement = sensor.read().await.unwrap();
println!("co2 concentration: {}ppm", measurement.co2);

Supported devices

The code has been tested with MH-Z14 sensor, other sensors in MH-Z* family support the same UART protocol thus should work.

Datasheets

More resources

About

MH-Z* family CO2 sensor driver built on top of `embedded-hal` primitives.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages