STM32 Keypad Interfacing Issue.
Hi everyone,
I developed a custom board out of STM32F070CBT6 MCU. The board is supposed to handle a simple logic of a 5x4 matrix (similar to a 5x4 keypad).
The algorithm I've developed also involves the same logic used in a keypad that is,
- The rows are inputs and columns are push-pull outputs
- keep the rows pulled up
- Send GND (Low Logic) over columns periodically
- Scan the rows and light up an LED whenever the row reads GND.
The problem I'm facing is that this board works completely fine and the logic works perfectly over a test bench setup. However, I've to actually install this in a field where the input from 5x4 matrix comes from wires that are 1000ft away from my actual board. Now here, the board goes crazy and does not read the inputs properly.
Can anyone please help me out if it's an algorithm issue or a hardware issue?
Any help is highly appreciated. Thanks
