-
Notifications
You must be signed in to change notification settings - Fork 3
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
Modify to enable anemometer counts? #4
Comments
From https://www.envirodiy.org/topic/rain-gauge-tip-data-without-rain/#post-14783. Connected to issues #6 and possibly relevant to #2, #4 and #5.
Updating to a 32-bit count enables use with a reed-switch anemometer (EnviroDIY/TippingBucketRainCounter#4) and also fixes a bug described in EnviroDIY/TippingBucketRainCounter#5. Tested and works, including backward compatibility.
The update to a 32-bit integer (4-bytes) has now made it possible to use the Master and Slave firmware to count spins of a reed-switch anemometer. This has been tested and works with a recent update to the EnviroDIY Modular Sensors library ( EnviroDIY/ModularSensors@87cd0c9). Use with an anemometer does require the slave device to get updated to >= v0.2.0 of this firmware ( Note that to calculate wind speed, you will need to create a calculated variable that divides counts by time to get frequency, then muliplies by a conversion factor. This is similar to getting wind speed from the Tally counter, as shown in these two examples:
We have not yet tested power consumption with an anemometer during windy conditions, but will report back when we do. |
Tested anemometer logging all night at ~12 km/hr, using a ModularSensors sketch with logging at 15 min intervals. Lipo battery voltage only dropped from 4.185 V to 4.154 V. It looks like the modified Pro Trinket (with green LED trace cut) does not consume too much power! To close this issue, it might be good to build in a frequency calculation that would be equally useful for wind and calculating rain rate as in #2. |
@fisherba just deployed a test of this in the wild this morning at https://monitormywatershed.org/sites/CL-outlet/. Let's see how the battery holds up. I think it is a 6600 mAh LiPo with a 3.5W solar panel. |
Battery is doing well, even after a windy and cloudy 5-day stretch in April, in which solar charging was minimal and winds were sustained between 10-20 km/hr day and night. |
Modifications to the firmware code could enable this to count the higher frequency signals of a reed-switch anemometer such as https://www.store.inspeed.com/Inspeed-Version-II-Reed-Switch-Anemometer-Sensor-Only-WS2R.htm
This might not be a great idea, given that the Project Tally device and Tally Library all do this quite well.
If someone is interested in doing this, here are some ideas from @bschulz1701 (Mar. 2019):
The text was updated successfully, but these errors were encountered: