-
Notifications
You must be signed in to change notification settings - Fork 53
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
More sensor modes #7
base: master
Are you sure you want to change the base?
Conversation
Set working period: * Continuous * 1 Minute * 5 Minute * 4 HoursA Set reporting mode * Active * Query mode The sensor will sleep for working period-30sec, in the last 30 seconds the fan will work to circulate the air and take 1 mesurement at the end. Rewriten command send method to wait for the actual reply. If we don't get proper reply within time we send the command again. This is needed bc the sensor would not respond somtimes. TODO: Query the sensor for 1 mesurement in query mode.
format fix
I've tested this branch and it's working quite well. The working period seems to more or less solve the issue with sending the esp to deep sleep and waking up the sensor while doing so. The timing on the sds seems to be rather irregular, because while sending the esp to sleep for 5 minutes the sensor needs between 10 to 20 additional seconds the get the result.
I'm working on addressing these issues and will create a different PR. |
Hi, meanwhile I've added some more, namely query function to actively query in query mode. I've noticed that in working period/active mode the sensor still consumes quite a lot of power even when waiting. Forcibly putting it to sleep and then waking it consumes a lot less power. |
The sensor box is just a lunch box I found in the shop. I think its this one https://www.rothoshop.de/Kueche/Premiumdose-LOFT-0-5-l.html |
Hi There, |
Could You write example for query mode. I cannot get it work. |
Hi, Ive done this for a project of mine(portable PM sensor). I thought you might like it.