Closed aufdenkampe closed 3 years ago
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 ( https://github.com/EnviroDIY/ModularSensors/commit/87cd0c995e5f6358fa3c11f25295d3a13e01c6fc).
Use with an anemometer does require the slave device to get updated to >= v0.2.0 of this firmware (Slave_TippingBucket_Test_LowPower.ino
), unlike the fix to #5.
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):