|
Digital Inputs
After a few days of frustration, I figured out what we were doing wrong with digital inputs. The digital inputs aren't "pulled down" so they read unpredictable values. Our button makes the input read "0" when pushed, which is fine, but when it's NOT pushed, the value fluctuates between 0 and 1. Is there any way we can make the "not pushed" value remain at a constant value?
We just have a switch hooked up to the signal and ground wires of a pwm cable.
Do we need resistors or something else?
|