💬 Rain Gauge
-
According to @Ivan-Z, the MI-SOL Rain Guage has CALIBRATE_FACTOR = 36
-
When I try to compile the code above I get the error "'timeStatus' was not declared in this scope" in the line
while (timeStatus() == timeNotSet && millis() - functionTimeout < 30000UL)I use Arduino IDE 1.6.10 and inserted the library "Time" from the MySensorsArduinoExamples in the Arduino libraries folder.
Has anyone a hint for me? Thank you in advance!
By the way: Thanks a lot to @hek and the forum for the project! :-)
-
Might be best to check with @petewill and @BulldogLowell.
A quick googling revealed this:
https://github.com/PaulStoffregen/Time/issues/32So if you rename the Time library to Time2 or something and change the include it might work.
I coded the basic sensor and @petewill added the rest and updated... Sorry I cannot be helpful!
-
I finally finished with the update and it has been merged to the MySensors github. Here is the link: https://github.com/mysensors/MySensorsArduinoExamples/tree/master/examples/RainGauge
You will also need to download the updated Time library here: https://github.com/mysensors/MySensorsArduinoExamples/tree/master/libraries/TimeLet me know if you run into any issues.
-
Hi! I bought the rain gauge recommended in the page, put together a simplified version of the sketch which just reports the mm every hour and everything works just fine. However I did notice that during a sunny day almost every hour I have the equivalent of something between 0 and 3 interrupts happening which are clearly false positives. Do you guys suggest anything to mitigate this behavior? I don't think there is anything that can be done in software (an interrupt is an interrupt) so I was wondering if there is anything else which can do the magic :-)
Thanks -
I have been using my tipping bucket for at least 6 month now and I also noticed that the last week I got some fake interrupt. We have had a very nice week in south Sweden so it must be something with the weather that makes the interrupt
@flopp I may have noticed something similar, while testing it, indoor, I had no fake interrupts at all (even if I did test it for a short time). When outside though, under the sunshine, I had frequent fake interrupts, like there is a voltage drop in that scenario causing it to trigger. I can of course survive with it but I was wondering if there may be a way to mitigate it somehow. I may try to "debounce" it by checking the input after the interrupt but not sure would be effective since I do expect the input to be HIGH again after the interrupt. Thanks
-
My node is batteri powered, can it have something with the battery why this happens?
I have a second rain gauge powered by USB and that one doesn't give fake interruptMine is powered by USB but still I have fake interrupts. Agree with you, I guess powering it with batteries could be worse since it is more likely that the voltage would fluctuate so causing fake interrupts. Btw, I assumed the board cannot sleep for this sketch to work, am I wrong? Or are you keeping it awake but still powering it with batteries? Thanks
-
Mine is powered by USB but still I have fake interrupts. Agree with you, I guess powering it with batteries could be worse since it is more likely that the voltage would fluctuate so causing fake interrupts. Btw, I assumed the board cannot sleep for this sketch to work, am I wrong? Or are you keeping it awake but still powering it with batteries? Thanks
-
@user2684
My board is sleep and wake up every 2 hours to send battery voltage or it wake up by interrupt@flopp & @user2684 Hmm. Strange. Mine has been running for around 2 years and I have never noticed this behavior. I live in an area where we get lots of nice weather so I'm sure I would have noticed it if it were happening to me. I know that's not helpful for you but hopefully we can get this fixed...
I don't have any great ideas on how to fix this but you may want to try updating to the latest MySensors bata library. There were some updates recently that fixed some interrupt issues.
Also, since this was not happening indoors is it possible that there is something else causing this issue like wind or heat?
Lastly, did you make any changes to the code or wiring for your sensors? -
I am using version 1.5.?
I have not opened the rain-box for at least 4 month and not changed the code.
Maybe this error have been there since day one but I have not checked so often.
But now I am checking daily because of other nodes that I added recently and then I noticed this -
I am using version 1.5.?
I have not opened the rain-box for at least 4 month and not changed the code.
Maybe this error have been there since day one but I have not checked so often.
But now I am checking daily because of other nodes that I added recently and then I noticed this -
@flopp What other types of nodes is this happening on? I'd definitely suggest updating to the latest version of the Beta code if you're having interrupt issues.