Why Does a Button Fail When Its Cable Gets Longer?
A long button cable adds capacitance and picks up electrical interference.
The key idea
A long button cable adds capacitance and picks up electrical interference. A weak pull-up can leave a slow or noisy signal near the input switching threshold.
What to remember
- Inspect the waveform at the controller input
- Distinguish contact bounce from cable pickup
Check your understanding
Why might software debounce alone fail to solve the problem?
Show the explanation
A sustained disturbance can resemble a valid button state.