PMSA003 I2C AQI sensor with esp32 v2

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
tmbaer
 
Posts: 2
Joined: Wed Oct 30, 2013 11:02 am

PMSA003 I2C AQI sensor with esp32 v2

Post by tmbaer »

I am trying to connect the PMSA003 I2C AQI Sensor to an Adafruit feather esp32 v2 and I am consistently getting the error that it cannot find the device when using the example program in the Arduino IDE. When I scan the I2C bus with a scanner program it identifies the proper address for the AQI device and the I2C is working with other devices when these are connected. Is there a problem with the PMSA003 and the feather ESP32 V2?

User avatar
tmbaer
 
Posts: 2
Joined: Wed Oct 30, 2013 11:02 am

Re: PMSA003 I2C AQI sensor with esp32 v2

Post by tmbaer »

Hi,
Found the problem. The 1 second delay at the start of the program is too short. If you comment out the if statement, the system begins reading AQI after the first couple attempts and seems to work OK with the ESP32 V2.

Tom

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”