-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Ensure that logger can tell the difference between a 0 and no response from Tipping bucket #116
Comments
Should be fixed by 12ba3d5 |
@SRGDamia1, this issue may have come back with #252 & #256. In sensor testing mode, everything works great, but when logging, I get -9999 values for both This is my sketch: https://github.com/LimnoTech/EnviroDIY_deployments/blob/f8b2b5737706aaa0541d724653f033b489c23f7e/deploy-HH/BassLakeV2/BassLakeV2.ino One clue is that in sensor testing mode, I also get -9999 values for the first round, then it works after that. I'm thus thinking that this might be an issue either with powering up or with averaging. Below is an exceptionally verbose debugging output, in which: build_flags =
-DMS_VARIABLEARRAY_DEBUG
-DMS_VARIABLEARRAY_DEBUG_DEEP and in which I switch to sensor testing mode after the first round of normal logging: |
I just got it to work using a Mayfly v0.5 board instead of a Mayfly v0.3 board! I figured this out when I tested my hardware on a different sketch using older version of the library (v0.21.4) that I know worked for my colleagues on their hardware. https://github.com/LimnoTech/EnviroDIY_deployments/blob/4d0f78b134a9a49816b5c99191de0aa7e21724be/deploy-RVSMRTDC/DoEE_McF_RG/DoEE_McF_RG.ino Because I got the same answer, somehow got the idea to try a different version of the hardware. I'm not sure if we want to keep this open, because it might still be valuable to figure out what is going on. |
The variable array debugging isn't as helpful here as the sensorBase/variableBase/TippingBucket debugging would be. |
I think I might need to add another level of debugging called "gory" for the variable array.. |
Moving discussion from #256 back to this issue, where it belongs: From me:
From @fisherba:
|
@fisherba, thanks for noticing that clear correlation. I wonder if I restarted when I unplugged last night. When I re-plugged in this morning, it didn't magically help. |
I just figured out that these last issues that I had with the Mayfly v0.5 were because the particular board I had grabbed was set to I2C switched power! Facepalm! The issues with the Mayfly v0.3 were real however. |
We want to make sure that we got a real 0 count and not just that the trinket didn't respond properly.
The text was updated successfully, but these errors were encountered: