-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add compatability and auto-detection for the Cubic PM1006 air quality sensor #13
Conversation
Tested on metro-s2, it was not behaving as I'd expect (with no prior knowledge), the Ikea board appears to ask the sensor for 5 readings and then sleeps for 20seconds before another set of readings. As we are just passively monitoring this sensor rather than initiating readings I think this is the best we can hope for. |
Yeah, the sleep period of the sketch in the demo (https://github.com/Hypfer/esp8266-vindriktning-particle-sensor) was 30 seconds. We could sleep for this duration but the actual code is monitoring the sensor as readings are initiated by the MCU on the ikea sensor's mainboard. |
After discussing with @tyeth on slack, I've changed the sampling interval to every 5 seconds. We also now wait 20 seconds between successful reads. |
Did not test, but LGTM. |
This pull request adds compatibility for this library to work with the Cubic PM1006 LED Particle Sensor. This sensor is used in the IKEA VINDSTRYKKA.
Adafruit_PM25AQI::read()
to work with Adafruit's Air Quality Sensors or the Cubic PM1006PM1006_test.ino
, to show usagePM25_AQI_Data
struct. Therefore, only the checksum andpm25_env
values are written into this struct.Tested on hardware with:
PM1006_test.ino
sketchpm25_test.ino
sketch.