pin 0 serial port

I am trying to read and display RS232 readable ascii data. I am converting the RS232 to TTL through a MAX 232 to the serial port 0 on the Arduino and display it on my LCD. I am just sending characters “RY” for testing right now at 2.4k with coding of 8N1 data to port 0 RX. I am using a simple code below. I see data come in but its all garble Is there more I need to set up this port 0?

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{
lcd.init(); // initialize the lcd
lcd.backlight();
Serial.begin(2400);
}

void loop()
{
// when characters arrive over the serial port…
if (Serial.available()) {
// wait a bit for the entire message to arrive
delay(100);
// clear the screen
lcd.clear();
// read all the available characters
while (Serial.available() > 0) {
// display each character to the LCD
lcd.write(Serial.read());
}
}
}

test.txt (661 Bytes)

PLease use code tags when posting code (it is the # button)

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{
  lcd.init();                      // initialize the lcd 
  lcd.backlight();
  Serial.begin(2400);

  lcd.print("start");    // <<<<<<<<<<<<<<< DOES THIS WORK?
}

void loop()
{
  // when characters arrive over the serial port...
  if (Serial.available()) {
    // wait a bit for the entire message to arrive
    delay(100);
    // clear the screen
    lcd.clear();
    // read all the available characters
    while (Serial.available() > 0) {
      // display each character to the LCD
      lcd.print(Serial.read());  // <<<<<<<<<<<<<<<<<<<<<<<<< CHANGED TO PRINT
    }
  }
}

does this help?