0

My digital inputs are behaving as if they were floating, even though I've properly connected them with a resistor. I've tried the pull-down configuration pictured below, as well as a internal pull-up.

By using digitalRead() and serial.pintln() I've collected the state of each input tested (0 to 10) and they all do the same: random 0's and 1's. When I change a state (press or release the button), they seem to work for a second or two, then, they go crazy again. Sometimes, they even work backwards (showing HIGH when it's supposed to be LOW) for a couple of seconds.

Is my two-day old Arduino UNO fried?

Arduino UNO diagram

asked Nov 14, 2017 at 0:35
2
  • I'm voting to close this question as off-topic because it's a defective hardware problem, not applicable to anyone else Commented Nov 14, 2017 at 8:36
  • Have you confirmed that the signal at the pin-headers are accurate using a known-good test tool, like a multimeter? Commented Nov 15, 2017 at 2:31

1 Answer 1

3

Solved it, but here is the solution, so there is an answer available for anyone who might encounter the same problem...

Quality check your protoboards. This is making me feel stupid. The protoboard I used had a faulty connection on the blue line I was using, causing an inevitable floating input. So relieved I found the problem, and yet so annoyed!

Take care you all.

answered Nov 14, 2017 at 0:57
1
  • Some solderless breadboards have a split right in the middle of the red and blue lines. These sometimes have an interrupted red/blue line. Commented Nov 14, 2017 at 19:16

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.