Seeed-Studio / grove.py

Python library for Seeedstudio Grove devices
MIT License
150 stars 97 forks source link

grove-Laser_PM2.5_Sensor-HM3301 sporadic readings #78

Open tim-oe opened 1 month ago

tim-oe commented 1 month ago

i adapted the file https://github.com/Seeed-Studio/grove.py/blob/master/grove/grove_PM2_5_HM3301.py and did a slight adaptation to breakout the data from the reading https://github.com/tim-oe/WeatherWatch/tree/main/weatherwatch/sensor/aqi

the sensor is being read every 15 minutes and they seem to jump up and down. aqi_sensor.csv

Lesords commented 2 weeks ago

i adapted the file https://github.com/Seeed-Studio/grove.py/blob/master/grove/grove_PM2_5_HM3301.py and did a slight adaptation to breakout the data from the reading https://github.com/tim-oe/WeatherWatch/tree/main/weatherwatch/sensor/aqi

the sensor is being read every 15 minutes and they seem to jump up and down. aqi_sensor.csv

@is-qian Help with this one.

tim-oe commented 2 weeks ago

i have it mounted in a vertical position, wondering if that would impact it? https://github.com/tim-oe/WeatherWatch/blob/main/docs/img/aqi.jpg

is-qian commented 1 week ago

I got a Grove, and indeed noticed abnormal fluctuations in readings, which seemed to have nothing to do with installation. I will further investigate it. Thank you for your question.

tim-oe commented 3 days ago

thanks for looking into this, iv'e used 2 different sensors with same behavior i get a lot of crc failures before i can get a sensor reading. here's a graph of a weeks worth of readings, this is discarding readings over 1000k Selection_001

is-qian commented 14 hours ago

How long is your delay here? After I changed the delay of here to 1s, the crc error didn't appear again when it was powered on for the first time. Strangely, I didn't encounter reading jitter after that.