Board stopped reading digital inputs but will still read analog?

Hey everyone,

So I've built a personal project about 9 months ago that uses an Uno to control some step drivers/motors to move platforms and other objects back and forth using a simple control box interface with both analog and digital inputs. I've connected the board to custom PCB with screw terminal mount. The analog inputs read speed and distance pots and the digital inputs read buttons and switches for motor rotation direction and when to move. Yesterday I used it for the first time in probably 2 months due to busy-ness of life, and noticed nothing was working once everything had power. I ran a debug function to read status of all I/O and interestingly, the board would seemingly only read the analog inputs and none of the digital inputs through the serial monitor. I checked continuity of all the buttons and switches and they were fine. I have no idea what would have caused this because nothing of the board or connections has moved, it has sat in the same spot the entire time. Is it possible something on the board went toast and would no longer function to take digital inputs? Any better way to test this? TIA

Nor will we without seeing the schematic for your board as well as the complete code.

Welcome to the forum

I would disconnect the board from all external devices and run the Button example. Use a jumper between 5V and the button pin as the switch. Does the LED state follow that of the the input ?

If yes, then connect one of your buttons and test again. Change the pinMode() of the button pin to INPUT_PULLUP if that is how your project is wired

By the way, how are the inputs wired ?
Pullup, pulldown or floating ?

What wetting current is put through the buttons and switches?

Thanks, I will try that when I get a chance. Yeah I should have mentioned, they are all pulldown. Here's a schem, albeit not the most up-to-date
schem

If none of the switches work, maybe they have lost Vcc from the main board

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.