1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_mhz19
Leandro Lanzieri 20c5552920
tests: add Kconfig configuration files for multiple driver tests
Configurations for the following applications have been added:

l3g4200d
lc709203f
lis2dh12
lis3dh
lis3mdl
lpd8808
lpsxxx
lsm303dlhc
lsm6dsl
ltc4150
mag3110
mhz19
mma7660
mma8x5x
motor_driver
mpl3115a2
mpu9x50
mq3
nvram_spi
mtd_flashpage
mtd_mapper
2021-01-18 10:44:30 +01:00
..
app.config.test tests: add Kconfig configuration files for multiple driver tests 2021-01-18 10:44:30 +01:00
main.c tests/mhz19: add test application 2020-06-17 08:41:41 +02:00
Makefile tests/mhz19: add test application 2020-06-17 08:41:41 +02:00
README.md tests/mhz19: add test application 2020-06-17 08:41:41 +02:00

MH-Z19/MH-Z19B Driver Test

Introduction

This test will test if the MH-Z19 C02 gas sensor is working. The MH-Z19B seems to be newer design which also works with this driver.

Configuration

When testing the UART mode, set TEST_MODE to 1. To test the PWM mode, set TEST_MODE to 2. In UART mode, make sure that TEST_UART points to the interface to use. In PWM mode, make sure to define TEST_PWM.

Expected result

The sensor should continuously (every 1 sec) output the CO2 ppm level. When the sensor is disconnected, it should display a failure message every second.