Skip to content
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

Data logger example #4

Open
avaldebe opened this issue Apr 17, 2019 · 3 comments
Open

Data logger example #4

avaldebe opened this issue Apr 17, 2019 · 3 comments

Comments

@avaldebe
Copy link
Owner

You found this library useful and would like to give something back. Here is your chance.
I would appreciate more example projects. PRs are welcomed.

Outline

  • Take measurements at regular intervals.
  • Sleep/low power mode in between measurements.
  • Save measurements to external FLASH or an SD CARD.
  • Timestamp measurements with any of the following options
    • external RTC such as DS3231
    • internal RTC in STM32 or SAMD21 boards
    • NTP for boards with network access such as ESP8266 or ESP32 boards
@gbalbinot
Copy link

gbalbinot commented Oct 22, 2019

Hi Alvaro,

We started using your library in our devices (5 so far) in a project to monitor Air Quality in Porto Alegre, Rio Grande do Sul, Brasil. It solved our issues with spur readings, it is working very well. Congratulations on your excellent work.

We measure every 4 minutes, no sleep between measurements. We use ESP32.

Do you plan on supporting PMS5003T ?

Also, if I download the files .zip and try to import in arduino studio, it does not work. I believe it is missing the library.properties file.

Regards

@avaldebe
Copy link
Owner Author

Hi @gbalbinot

We started using your library in our devices (5 so far) in a project to monitor Air Quality in Porto Alegre, Rio Grande do Sul, Brasil. It solved our issues with spur readings, it is working very well. Congratulations on your excellent work.

Thanks!

We measure every 4 minutes, no sleep between measurements. We use ESP32.

I also keep my sensors awake between measurements. My experiments with sleep/wake a PMSA003 sensor, showed that the measurements were not reliable just after the sensor wakes up.

Do you plan on supporting PMS5003T ?

I have none of those devices to test the library with. I should be able to add support, but it would be messy.

Recently added support for the PMS5003T on my Python data acquisition application
from from information I found on a PMS5003T datasheet.
The PMS5003T replaces the last 2 number concentrations (n5p0 and n10p0)
with temp*10 and rel.hum*10.
This was easy to implement on Python, but can not think of a clean way to implement it on C++.

Maybe you could try something like the following?

  Serial.printf("PM1.0 %2d, PM2.5 %2d, PM10 %2d [ug/m3]\n",
    pms.pm01,pms.pm25,pms.pm10);
  Serial.printf("N0.3 %4d, N0.5 %3d, N1.0 %2d, N2.5 %2d [#/100cc]\n",
    pms.n0p3,pms.n0p5,pms.n1p0,pms.n2p5);
  Serial.printf("Temp. %5.1f [*C], Rel.Hum. %5.1f [%]\n",
    pms.n5p0/10.0,pms.n10p0/10.0);

Let me know if it works, or open an issue asking for PMS5003T support.
Alas, It might take me some time to implement it.

Also, if I download the files .zip and try to import in arduino studio, it does not work. I believe it is missing the library.properties file.

I left the Ardhino IDE long time ago and have never used arduino studio.
Can you show me a library.properties file?

Cheers

@gbalbinot
Copy link

gbalbinot commented Apr 16, 2020 via email

@avaldebe avaldebe pinned this issue Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants