Arduino mega serial1 serial2 etc..

akee-rf's icon

Hello,

Arduino mega got 4 different serials, as you can see here http://arduino.cc/en/Serial/Begin

if for example you set Serial1.begin and Serial2.begin, does anyone knows how to send message on each separate serial from max/msp using serial object ?

merci

pdelges's icon

Salut,

serial ports are hardware ports. If you want to send messages to 2 serial inputs on your arduino from the same computer, then you need a USB->serial interface plugged on your computer (does PCs still have a serial port?) and connect your arduino twice: one time over USB (this is Serial1), one time to the interface. Then you need to serial objects in Max

But this seems a very strange idea: why isn't 1 port enough to communicate between 2 devices. Or do I misunderstand something?

(je répond à ton PM de suite ;-)

p

akee-rf's icon

Patrick my arduino hero!

well as i was trying to send text to a lcd separating line 1, line 2 and controlling leds in same time, i though sending data for line 1 on serial1, line 2 to serial2 and leds on serial3 might maybe make it easier :)

pdelges's icon

It's the arduino who should parse the data it receives on serial 1 to the other serial ports.

p