I am new to the world of Arduino and decided to attempt to duplicate a project off of Instructibles.com. I have the entire project connected properly (I believe) after reading the schematic. The only problem that I seem to be having is that my keypad is not registering the 2, 5, 8, 0, 4, 5, and 6. I attempted to do some research into this 4x3 keypad and noticed that pin out 1 and 7 are related to the keys that are not operational. I have pinout 1 connected to analog pin A0 and pinout 7 connected to analog pin A5. The following is the code that I am using:
const byte ROWS = 4; //four rows
const byte COLS = 3; //three columns
char keys[ROWS][COLS] = {
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'}
};
byte rowPins[ROWS] = {5, A5, A4, A2}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {A1, A0, A3}; //connect to the column pinouts of the keypad
Sorry for the late reply but you will probably get more replies if you move your message to the Programming forum.
ZooPlankton:
The only problem that I seem to be having is that my keypad is not registering the 2, 5, 8, 0, 4, 5, and 6.
It sounds like you are saying that nothing happens at all when you press those keys. Do you see any output at all? It could help me determine if it's a wiring problem or something else.
I attempted to do some research into this 4x3 keypad...
Try the keypad tutorial in the playground, Arduino Playground - HomePage. It may provide you with some additional insight into solving your problem. Most of the problems I see like this are due to wiring errors.
I am new to Arduino so bear with me. If any further code is needed to understand my problem, please advise. Any assistance is appreciated in advance!
Actually, how about some photos? Close-ups of your wiring might help if they are clear enough.
I am utilizing a LCD with this particular project. I am receiving output on the LCD when I press the 1, 3, 7, 9, *, and # buttons, however when I press the 2, 5, 8, 0, 4, 5, and 6 buttons I am not receiving any output on the display. I am new to the Arduino and circuitry, so I imagine that this is a wiring issue
The particular library that I am utilizing is the one associated with the 4x3 keypad that I have wired up. Would it be an issue if I am using this library as opposed to the one that code designer added with the zip file? I tried to use the other one and numbers did not match the output as the shorts were not associated with the particular wiring I had set up. However, even utilizing this other library, I was still unable to get output for 6 keys.
Mine was displaying content from the previous column when pressing any button in the second column. It was a stupid issue, the male-male headers I was using were pressed in too far into the female headers that were attached to the ribbon cable of the keypad itself. Wiggling them and pulling them out a bit helped. The problem might be at the same point for you as well (I didn't see your keypad or the connections in the pictures, so might not be).
Which wires are going to the keypad? Have you tested the keypad using the digital pins, to make sure it works that way? If the digital pins don't work then it could be faulty wiring or just a bad keypad. Test with the serial monitor, no LCD and digital pins just to be sure.
Here's a picture illustrating what wires that I have going from the keypad to the breadboard then to the ports on the Arduino. I ordered a new keypad in case there was a hardware issue, however, it seems that a membrane keypad gave me the same results when tested.
Hopefully by Thursday I will be able to attempt to check the wiring issue into the keypad as well as attempt to print to serial monitor when the new keypad comes in.