16-05-2016, 13:48
I didn't find the Davis reed switch specs but i assume that 1mA is not too much for it.
I have measured 132µA that is ~38kohm as internal pull-up (10 to 50 kohm in Nano datasheet)
If i add a 5.6k in parallel that gives ~4,9k equivalent and ~1mA if i'm right.
Debounce default value is 500µs, I'll go to 100ms that's 200 time higher and allows 10 clicks per second.
I have to wait the next thunderstorm to check the efficiency, but in the meantime i'll change the cable also and perhaps come back and try without software and hardware modifications.
I have measured 132µA that is ~38kohm as internal pull-up (10 to 50 kohm in Nano datasheet)
If i add a 5.6k in parallel that gives ~4,9k equivalent and ~1mA if i'm right.
Debounce default value is 500µs, I'll go to 100ms that's 200 time higher and allows 10 clicks per second.
I have to wait the next thunderstorm to check the efficiency, but in the meantime i'll change the cable also and perhaps come back and try without software and hardware modifications.

