I want to communicate the arduino with a Basic Stamp using Serial1 command, but it doesn't work. I don't know where is the problem, in Arduino or BS code. Here is my code. "Hello world" works well, but no signal received at the receiving port of BS from Serial1. Is the code correct? Can anybody help me?
void setup()
{
Serial.begin(9600);
Serial1.begin(4800);
}
void loop()
{
Serial.println("hello world");
Serial1.write(45); // send a byte with the value 45
}
}