As I am about to install the Water valve with the feedback connections to confirm fully open or fully closed (it does this with micro switches at the endpoints of the travel on either open or closed) I see the RaspberryIO register Off - On - Off - On intermittently. Things I did to troubleshoot this:
Here is a debug log with NO CHANGES being made to the actual input at all... just leaving it alone over time... As you can see if goes off then on in the same second...
- First had Pullup resistor setting in plugin wired to GPIO pin and Ground
- Then tried switching to pull down resistor wired to GPIO pin and 3.3V
- Is there a reliability issue to using the internal pullup or pulldown resistors on the Pi for accurate readings on the Input status?
- Should I used an external Pull-up or Pull-down resistor instead for reliable readings?
- It seems like the voltage at the Input GPIO pins is floating and hits a threshold every so often and that triggers a state change in RaspberryIO even though nothing has changed on the real input at all.
- What could I do to make this very reliable and accurate?
Here is a debug log with NO CHANGES being made to the actual input at all... just leaving it alone over time... As you can see if goes off then on in the same second...
Code:
Dec-14 7:50:20 PM RaspberryIO DEBUG Pin17 value changed to On Dec-14 7:50:19 PM RaspberryIO DEBUG Pin17 value changed to Off Dec-14 7:39:37 PM RaspberryIO DEBUG Pin17 value changed to On Dec-14 7:39:37 PM RaspberryIO DEBUG Pin17 value changed to Off Dec-14 7:32:43 PM RaspberryIO DEBUG Pin4 value changed to Off Dec-14 7:32:43 PM RaspberryIO DEBUG Pin4 value changed to On Dec-14 7:31:49 PM RaspberryIO DEBUG Pin4 value changed to Off Dec-14 7:31:49 PM RaspberryIO DEBUG Pin4 value changed to On Dec-14 7:31:41 PM RaspberryIO DEBUG Pin4 value changed to Off Dec-14 7:31:41 PM RaspberryIO DEBUG Pin4 value changed to On Dec-14 7:31:29 PM RaspberryIO DEBUG Pin4 value changed to Off Dec-14 7:31:29 PM RaspberryIO DEBUG Pin4 value changed to On Dec-14 7:31:28 PM RaspberryIO DEBUG Pin4 value changed to Off Dec-14 7:31:28 PM RaspberryIO DEBUG Pin4 value changed to On Dec-14 7:31:18 PM RaspberryIO DEBUG Pin17 value changed to On Dec-14 7:31:18 PM RaspberryIO DEBUG Pin17 value changed to Off
Comment