RS232 Sound Module

Hello,

I am a new "happy" convert from the Basic Stamp and so far encountered NO problems. Until now that is. I am migrating a project from the Stamp to Arduino that require sending serial command in ASCII format. Here is the command in the Stamp:

SEROUT TXPin,n9600,[1,"p+",1,3]

How is this done in Arduino? I tried different way and couldn't get it to work.

Thanks in advance.

Al

Serial

Mark

Not sure what you mean. I use the Mega with Serial1 port. The TX of the Mega is connected to the RX of the sound module and ground lines are connected. Again, this worked perfectly in the Basic Stamp II and I am looking for duplicating it in the Arduino.

I tried the following ways of sending the command and none works:

serial1.write("1p+013");
or
serial1.write("1 p+ 01 3");
or
serial1.write(1);
serial1.write("p+");
serial1.write(01);
serial1.write(3);

You need to have
Serial.begin(9600);
in your setup()

Serial.write("p+");
Serial.print("p+");
will knock out a p and a +

Arduino doesn't have "true" and "inverted" baudmodes.