Dear All
Merry christmas!!!
I am using ArduinoLowPower library to make my board sleeping.
The borad can wakeup after a RTC schedule or with an interrupt
I defineed a pin to wakeup the board the a drop falls in the bunket.
LLowPower.attachInterruptWakeup(pin_wattering, triggeredDropWattering, RISING);
It works fine. That's an example because in the following case, the drop counting is not used.
Now I am using a Davis anemometer to calculate the wind speed. It also work with interrupts
See the liine
attachInterrupt(digitalPinToInterrupt(WindSensorPin), isr_rotation, FALLING);
here: http://cactus.io/hookups/weather/anemometer/davis/hookup-arduino-to-davis-anemometer-wind-speed
My borad is sleeping 15mn, wake up, take the wind measure, wind direction, solar radiation, and sleep for 15min.
But after the board goes to sleep, and as the cups will still rotate, I am afraid the interrupt generate by the anemoeter, will wake up the board, and it should not
To be sure that there will be no malfunction when the board sleeps, I would like to unactive the interrupt when the cups rotate, and activate it only after the board wake up for the neat measure.
Can we inactivate/activate only this, between measures?
attachInterrupt(digitalPinToInterrupt(WindSensorPin), isr_rotation, FALLING);
I found nointerrrupt(), but I beleive, it will disable ALL interrupt, which is not my goal. I only would like to disable interrupt from my anemometer.
I also beleive, it would not wake up the board without that:
LowPower.attachInterruptWakeup(pin_aneno, triggeredDropWind, RISING);
But I would feel me better :), if the interruots at 'WindSensorPin' will be ignore during the sleep process.
Many thanks