drivers/sen5x: Add device driver for SEN5x
Contribution description
- Device driver for the SEN5x environmental sensor node.
- Includes a SAUL implementation
- Includes a package to pull the corresponding embedded driver from https://github.com/Sensirion/embedded-i2c-sen5x
Testing procedure
tests/drivers/sen5x:
- Connect a SEN5x device via i2c to a supported board
- Navigate to
tests/drivers/sen5x - Flash and execute the test
SAUL:
- Navigate to
examples/saul - Add the following to the Makefile:
USEMODULE += sen5x - Flash the saul example and also use the target
term - Use
saul read [ID]to test the outputs
I wonder if any maintainer has access to one of these?
If you are still interested in getting this in I would suggest removing the Kconfig dependency modelling aspect and posting test results :)
I wonder if any maintainer has access to one of these?
Hi, if this is a problem we (TU Braunschweig) could try to send you one of ours ;) For example sending one to HAW shouldn't be a problem.
Regarding the test results, the SEN55 outputs its measurements every two seconds. Here are three sample iterations of the test:
2024-04-19 12:43:14,556 # Mass concentration pm1p0: 0.5 µg/m³
2024-04-19 12:43:14,560 # Mass concentration pm2p5: 1.8 µg/m³
2024-04-19 12:43:14,563 # Mass concentration pm4p0: 2.8 µg/m³
2024-04-19 12:43:14,566 # Mass concentration pm10p0: 3.2 µg/m³
2024-04-19 12:43:14,569 # Ambient humidity: 33.2 %RH
2024-04-19 12:43:14,571 # Ambient temperature: 23.4 °C
2024-04-19 12:43:14,573 # Voc index: 60.0
2024-04-19 12:43:14,574 # Nox index: 1.0
2024-04-19 12:43:16,595 # Mass concentration pm1p0: 0.6 µg/m³
2024-04-19 12:43:16,599 # Mass concentration pm2p5: 2.0 µg/m³
2024-04-19 12:43:16,602 # Mass concentration pm4p0: 3.2 µg/m³
2024-04-19 12:43:16,606 # Mass concentration pm10p0: 3.8 µg/m³
2024-04-19 12:43:16,608 # Ambient humidity: 33.1 %RH
2024-04-19 12:43:16,611 # Ambient temperature: 23.4 °C
2024-04-19 12:43:16,612 # Voc index: 60.0
2024-04-19 12:43:16,614 # Nox index: 1.0
2024-04-19 12:43:18,635 # Mass concentration pm1p0: 0.7 µg/m³
2024-04-19 12:43:18,639 # Mass concentration pm2p5: 2.4 µg/m³
2024-04-19 12:43:18,642 # Mass concentration pm4p0: 3.8 µg/m³
2024-04-19 12:43:18,646 # Mass concentration pm10p0: 4.5 µg/m³
2024-04-19 12:43:18,648 # Ambient humidity: 33.0 %RH
2024-04-19 12:43:18,651 # Ambient temperature: 23.4 °C
2024-04-19 12:43:18,652 # Voc index: 60.0
2024-04-19 12:43:18,654 # Nox index: 1.0
I'm a bit confused as to what you mean by the Kconfig dependency modelling aspect. Can you elaborate this a bit further?