gpop1:
op if you have the keypad and some 10k resistors to make pulldowns on the 7 input pins can you run this and see what happens please.
//a 11000000
//b 00011000//+5v on pin 5 hardwired
//c 01100000
//d 01000001
//e 01000010
//f 00100010
//g 10000001
//h 00001100
//i 00000011
//if 1 high when 2 output theres a A
//if 4 high theres a B
//if 3 high when 2 output theres a c
//if 8 high when 2 output theres a d
//if 7 high when 2 output theres a e
//if 7 high when 3 output theres a f
//if 1 high when 8 output theres a g
//if 6 high theres a H
//if 7 high when 8 output theres a i
//pins 1, 2, 3, 4, 6, 7, 8 all need pull downs
//pin 5 is = 5vdc (not a input)
#define pin1 2
#define pin2 3
#define pin3 4
#define pin4 5
#define pin6 7
#define pin7 8
#define pin8 9
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode (pin1, INPUT);
pinMode (pin2, INPUT);
pinMode (pin3, INPUT);
pinMode (pin4, INPUT);
pinMode (pin6, INPUT);
pinMode (pin7, INPUT);
pinMode (pin8, INPUT);
}
void loop() {
// put your main code here, to run repeatedly
Serial.println("start of key scan");
pinMode (pin2, OUTPUT);
digitalWrite(pin2, HIGH);
if (digitalRead (pin1) == HIGH) {
Serial.println("letter a is pressed");
}
if (digitalRead (pin2) == HIGH) {
Serial.println("letter b is pressed");
}
if (digitalRead (pin3) == HIGH) {
Serial.println("letter c is pressed");
}
if (digitalRead (pin8) == HIGH) {
Serial.println("letter d is pressed");
}
if (digitalRead (pin7) == HIGH) {
Serial.println("letter e is pressed");
}
pinMode (pin2, INPUT);
pinMode (pin3, OUTPUT);
digitalWrite(pin3, HIGH);
if (digitalRead (pin7) == HIGH) {
Serial.println("letter f is pressed");
}
pinMode (pin2, INPUT);
pinMode (pin8, OUTPUT);
digitalWrite(pin8, HIGH);
if (digitalRead (pin1) == HIGH) {
Serial.println("letter g is pressed");
}
if (digitalRead (pin6) == HIGH) {
Serial.println("letter h is pressed");
}
if (digitalRead (pin7) == HIGH) {
Serial.println("letter i is pressed");
}
pinMode (pin8, INPUT);
Serial.println("end of key scan");
}
i will get to this back on monday, (there's only 1 keypad for available for testing and we take turns on having it,). Thank you soo much for your time, really much appreciated.