1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/sm_pwm_01c
2024-03-26 14:53:35 +01:00
..
main.c tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile.ci examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
README.md tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00

Test Application for the Amphenol SM_PWM_01C infrared dust sensor

About

This is a simple test application for the SM_PWM_01C driver.

Expected result

If everything works then you should see the progress bar vary if dust concentration changes in the room, or manually block the infrared inputs to force a change.

Overly exaggerated values (blocked infrared sensor) can be seen here:

# main(): This is RIOT! (Version: 2021.04-devel-1044-gfd36c-HEAD)
# sm_pwm_01c driver test application
# starting weighted average PM2.5 and PM10 measurements
#
# PM2.5 level: 1272 ug/m3|███████████              |
# PM10  level:  490 ug/m3|████                     |

Details

By default a moving average over a 30s window is returned ad the read value. The progress bar is updated every 200ms.