|
Post by jmaurin on Dec 8, 2017 13:36:55 GMT -8
Hi! Is there any way or configuration to change debounce time/count for rain sensor? I'm getting some random readings when is not raining  All other sensores are fine (wind speed and direction). I'm using WeatherBoard direct with Raspberry pi (without adapter board, only very-short cables). Also, I'm using ferrite on all cables and added some capacitores to filter my DC power supply, but still getting some false-readings. My cables are away (as much as possible) from any power source cable. Any tips?
|
|
|
Post by SDL on Dec 9, 2017 9:54:10 GMT -8
Hmmm. Do you have an oscilloscope? If so, look what is going on with that line. This sounds like noise. You can also put a stronger pullup on the line (say a 5K resistor) which should further reduce the noise.
Sounds like you are doing what you need to on the noise from the unit. I wonder if your DC power supply is providing enough current.
BP
|
|
|
Post by jmaurin on Dec 9, 2017 17:03:11 GMT -8
I do have an osciloscope, but all my system are installed in the root, no way to get my osc there  WeatherBoard doesn't already have pull-up resistor? I remember to ready something about 10k resistor on some docs..... Also, I'm powering my board by raspberry pi 3v GPIO. I'll try another power supply tomorrow....maybe that's not enought current. I'm using 12v PoE with an DC step-down to output a litthe more than 5v on raspberry, but I'm not sure about this power supply quality.
|
|
|
Post by SDL on Dec 10, 2017 11:16:04 GMT -8
OK. Thanks for more information. yes, it has a pullup resistor but adding another will help with the noise. You are running it at 3.3V, which makes it less noise resistant.
The board really doesn't take much current, so that is probably not it.
You could have a power problem for the Raspberry Pi. What kind of Raspberry Pi are you using?
BP
|
|