1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/hm330x
Hugues Larrive 3c465836f2 examples and tests: add atmega8 to relevent Makefile.ci
using dist/tools/insufficient_memory/add_insufficient_memory_board.sh
2023-07-11 21:22:02 +02:00
..
app.config.test tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02: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

driver_hm330x

This is a simple test application for the HM330X I2C particle sensor. The test will read and print the sensor data every second.

Note that particle counting is only available with hm3302.

  • hm3302 output;
main(): This is RIOT! (Version: 2021.04-devel-1342-g93325-pr_driver_hm330x)
HM330X test application
+------------Initializing------------+
+------------------------+------------------------+----------------------------------------------+
| Standard concentration | Atmospheric Environment|   # Particles in 0.1l air of diameter >=     |
| PM1.0 | PM2.5 | PM10.0 | PM1.0 | PM2.5 | PM10.0 | 0.3µm | 0.5µm | 1.0µm | 2.5µm | 5.0µm | 10µm |
+-------+-------+--------+-------+-------+--------+-------+-------+-------+-------+-------+------+
|      5|      7|       7|      5|      7|       7|      0|      0|      0|      0|      0|     0|
|      5|      7|       7|      5|      7|       7|      0|      0|      0|      0|      0|     0|
|      5|      7|       7|      5|      7|       7|      0|      0|      0|      0|      0|     0|
|      5|      7|       7|      5|      7|       7|      0|      0|      0|      0|      0|     0|
|      5|      7|       7|      5|      7|       7|      0|      0|      0|      0|      0|     0|
|      5|      7|       7|      5|      7|       7|      0|      0|      0|      0|      0|     0|
|      5|      7|       7|      5|      7|       7|      0|      0|      0|      0|      0|     0|
|      5|      7|       7|      5|      7|       7|      0|      0|      0|      0|      0|     0|
|      5|      7|       7|      5|      7|       7|      0|      0|      0|      0|      0|     0|
|      5|      7|       7|      5|      7|       7|      0|      0|      0|      0|      0|     0|
|      5|      7|       7|      5|      7|       7|      0|      0|      0|      0|      0|     0|
  • hm3301 output;
main(): This is RIOT! (Version: )
HM330X test application
+------------Initializing------------+
+------------------------+------------------------+
| Standard concentration | Atmospheric Environment|
| PM1.0 | PM2.5 | PM10.0 | PM1.0 | PM2.5 | PM10.0 |
+-------+-------+--------+-------+-------+--------+
|      8|     11|      11|      8|     11|      11|
|      8|     11|      11|      8|     11|      11|
|      8|     11|      11|      8|     11|      11|
|      9|     13|      13|      9|     13|      13|
|      9|     13|      13|      9|     13|      13|
|      9|     13|      13|      9|     13|      13|
|      9|     13|      13|      9|     13|      13|
|      9|     13|      13|      9|     13|      13|