Skip to content

Add DSM501A driver - #243

Open
fedirky wants to merge 1 commit into
iotempire:masterfrom
fedirky:feature/dsm501a-sensor-driver
Open

Add DSM501A driver#243
fedirky wants to merge 1 commit into
iotempire:masterfrom
fedirky:feature/dsm501a-sensor-driver

Conversation

@fedirky

@fedirky fedirky commented May 30, 2026

Copy link
Copy Markdown
Collaborator

Added a new DSM501A dust sensor driver with two output channels (pm1 and pm25), full IoTempower integration, command documentation, and a compile-test entry. The driver measures both sensor outputs over a 30-second sampling window and publishes both channels separately.

@ulno ulno left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the interrupt implications are not clear, need to be discussed and at least much better documented, why needed and how they will be impacting the whoel system


// Important to include Functional Interrupt as else it does not allow to
// define a class-based (object specific) interrupt.
#include <FunctionalInterrupt.h>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that looks dangerous - need to do some serious testing if that doesn't create regression with the led strips (also interrupt critical) - should maybe be made a more global concept? Need to know more before allowing the merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants