keypad troubles

hi I would like to use my dumilinove as a keypad controller. i would like the keypresses to be output thru tx (or is it rx?) at a baudrate of 4800. seria data format 8data bits no parity and 1 stop bit. I would like the chracters to be sent using standard ASCII values. how do I go about this? I have the pullup resistors and keypad. I used the available sketches from arduino playground but no joy . any help would be much appericiated!

Are you using the keypad library?

Post the Arduino code, so we have some idea what code you are using.

but no joy

Do you have a j key? An o key? A y key?

Well, no wonder you have no joy.

Or perhaps you meant something else, and were in a hurry, so you forgot to explain what is happening, or not happening.

thanks for your reply
what i want to do is type 1 on keypad and have 1 appear on the screen. ( keypad-arduino-max232-computer)
this is the code i used ,
#include <Keypad.h>

const byte ROWS = 4; // Four rows
const byte COLS = 3; // Three columns
// Define the Keymap
char keys[ROWS][COLS] = {
// Connect keypad ROW0, ROW1, ROW2 and ROW3 to these Arduino pins.
byte rowPins[ROWS] = { 9, 8, 7, 6 };// Connect keypad COL0, COL1 and COL2 to these Arduino pins.
byte colPins[COLS] = { 12, 11, 10 };

// Create the Keypad
Keypad kpd = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

#define ledpin 13

void setup()
digitalWrite(ledpin, HIGH);

void loop()
char key = kpd.getKey();
if(key) // same as if(key != NO_KEY)
switch (key)
case ‘*’:
digitalWrite(ledpin, LOW);
case ‘#’:
digitalWrite(ledpin, HIGH);

When posting code you need to use the # button in the edit field so that it posts properly. Just copy your code to the message editor. Then highlight it and click the # button and your all set.

When you run this code, does the led go on and off?

This looks just like my code that works, except for different pin assignments.

What is the max232 doing?

Double check that you know which pins on the keypad are row pins and which are column pins, and that you have the row pins connect to the proper Arduino pins, in the proper order, and that the column pins are connected correctly.

i need the max 232 to convert the ttl signalsfrom arduino tx to the rs232 on the computer? or is there another way to hyperterminal to connect to arduino.

I need the max 232 to convert the ttl signals from arduino tx to rs232 on the computer??? ideally i would love to avoid max232 altogether.
I am designing a meter readings logger. the logger only accepts rs232 data and logs data when I hit the # key. I could use an rs232 keyboard but these are expensive bulky and drain batteries. I want to test the arduino first with hyperterminal before placing order for logger.

What kind of Arduino do you have?

I have a couple promini 5v and dumilinove.

If you have the Duemilanove with the USB connection, you don't need the MAX232 at all.

Maybe in the future you need the MAX232, but not between the Arduino and the PC. Get that working first, then worry about getting the Arduino to talk to your logger.

Great Idea. I don’t know why that was not the first thing I did when I uploaded the sketch to the board! you assumption seems to be correct. but please humour me.
how do I modify the code to make the tx pin transmit key press data.

below is the code I used.

#include <Keypad.h>[

const byte ROWS = 4; //four rows
const byte COLS = 3; //four columns
char keys[ROWS][COLS] = {
byte rowPins[ROWS] = {5, 4, 3, 2}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {8, 7, 6}; //connect to the column pinouts of the keypad

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

void setup(){

void loop(){
  char key = keypad.getKey();

  if (key != NO_KEY){

If you have the keypad connected to the Arduino correctly, that code should display the key that was pressed in the Serial Monitor window.

If it doesn't, you need to look at how the keypad is wired.