Skip to content

Commit

Permalink
PMSA0031 sensors require ~3secs before coming up on I2C
Browse files Browse the repository at this point in the history
As reported by @MALAONE1 and debugged by @shodan8192 , PMSA0031s
on a RAK4631 take 3 seconds before they can become detectable on I2c.

Add a delay(4000) before I2C scan if the air quality sensor pin
is defined.

Fixes #3690
  • Loading branch information
fifieldt authored and caveman99 committed Sep 17, 2024
1 parent 21eb54e commit 13eb141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ void setup()
// RAK-12039 set pin for Air quality sensor
pinMode(AQ_SET_PIN, OUTPUT);
digitalWrite(AQ_SET_PIN, HIGH);
delay(4000); // Detectable on I2C after ~3 seconds.
#endif

#ifdef T_DECK
Expand Down

0 comments on commit 13eb141

Please sign in to comment.