Using a pulse counter on a Raspberry Pi, weird problem
Posted: Wed Jun 17, 2020 10:10 pm
Raspberry Pi starts to count pulses when I just add a cable to the gpio, it is not connected to anything else. Literally just the gpio to air. Some cables don't make it count pulses and other do, I also dont touch the cables when this happens and they dont touch any metal or anything else.
I am using a water flow sensor with the following code and deviders: https://youtu.be/wpenAP8gN3c
It worked for almost 2 months, I then left it and came back to it after +- 3 months and now all of a sudden this happens.
It would just count pulses without me even letting water run through it. I then started looking for the problem and saw that it counts without even being connected to anything, when I removed the wire completely it went away. But some wires does not alwayse trigger the pulses like others do.
I am using a water flow sensor with the following code and deviders: https://youtu.be/wpenAP8gN3c
It worked for almost 2 months, I then left it and came back to it after +- 3 months and now all of a sudden this happens.
It would just count pulses without me even letting water run through it. I then started looking for the problem and saw that it counts without even being connected to anything, when I removed the wire completely it went away. But some wires does not alwayse trigger the pulses like others do.