G
goose
Guest
Hello all
I have a microntroller connected to a keypad. It only
reliably works when I use a resistor to ground on each
pin on the uC that connects to the pins on the keypad.
the keypad works as follows:
1. 3 pins are connected to each column.
2. 4 pins are connected to each row.
3. 1 pin seems to be bridged to everything.
[1] & [2] above is expected for a matrix keypad.
[3] supplys power (+5v).
I supply +5v to the power pin of the keypad, and
read the other 7 pins. when any key is pressed,
a pin for the column and a pin for the row goes
high.
each pin is wired as follows:
uC pin ---------+----------- keypad pin
|
|
R1
|
|
gnd
my question is what resistor should I choose for R1?
As I understand it, the smaller the resistance, the
greater the leakage current, no? I initially intended
to use 4,7k resistors (which is what I tested with),
but I now suspect that I should choose a larger
resistor (a coupe of mega ohms?).
tia
goose
I have a microntroller connected to a keypad. It only
reliably works when I use a resistor to ground on each
pin on the uC that connects to the pins on the keypad.
the keypad works as follows:
1. 3 pins are connected to each column.
2. 4 pins are connected to each row.
3. 1 pin seems to be bridged to everything.
[1] & [2] above is expected for a matrix keypad.
[3] supplys power (+5v).
I supply +5v to the power pin of the keypad, and
read the other 7 pins. when any key is pressed,
a pin for the column and a pin for the row goes
high.
each pin is wired as follows:
uC pin ---------+----------- keypad pin
|
|
R1
|
|
gnd
my question is what resistor should I choose for R1?
As I understand it, the smaller the resistance, the
greater the leakage current, no? I initially intended
to use 4,7k resistors (which is what I tested with),
but I now suspect that I should choose a larger
resistor (a coupe of mega ohms?).
tia
goose