n7qnm
Junior Member

Posts: 80
|
Post by n7qnm on Mar 26, 2022 10:32:06 GMT -8
I'm trying to integrate the WS sensors with weewx and have run into an interesting problem. It looks like the "default sample interval" for the WS AQI is ABOUT 15 minutes. I say "about" because the times in the database are a bit longer than that.
I have an AQI "extension" to weewx that calculates the US EPA "nowcast" value; based on a formula that looks for rapid changes and uses a 24 hour weighted average of values. It's looking for "raw" particle count readings with a 5 minute interval.
It appears that the SLEEPCYCLE definition in the arduino code controls how often the sensor gets read/transmitted; but I'd like to confirm that before I make the change. I'm also wondering if sensor reads that fast would be too much for the current battery setup.
Thanks! Clay N7QNM
|
|
|
Post by SDL on Mar 27, 2022 8:47:35 GMT -8
Hi Clay, Change: #define SLEEPCYCLE (long)1000*60*15 To: #define SLEEPCYCLE (long)1000*60*5 This, of course, increases the power needed by the device by around 2.5X or so on the average (the Arduino takes very little, all the power goes to warming up and reading the WS AQI). Note that this may be a battery issue, but you need to consider the solar panel too. Two things: 1) Make sure you are using the option reset line to the AQI as shown in the manual 2) If the power is too much for your locale, then increase the battery size and follow this article: www.switchdoc.com/2021/08/tutorial-adding-more-solar-panels-to-skycam-and-weathersense-sensors/Best, BP
|
|
n7qnm
Junior Member

Posts: 80
|
Post by n7qnm on Mar 30, 2022 7:18:34 GMT -8
I have the AQI on my bench (no solar). Yesterday, I unplugged the power supply to see how long the battery would last with the five minute sample time. Pretty AMAZING, even w/o the power save mod - the battery is still (after almost 24 hours) and 3.93v.
|
|
|
Post by SDL on Mar 31, 2022 8:49:19 GMT -8
Outstanding. Are you getting good data?
How big of a battery are you using (mAh)?
This doesn't match our testing. We saw higher current draw. Seems too good of an answer. Could you look at the amount of load current (from the graph or the dash_app) and let us know what it is?
BP
|
|