Serial Port... overload?
Hey All,
So I've been working with an Arduino Uno and Mega separately, sending data from Arduino to Max via the serial object.
I've just connected the Uno to the Mega, both using the same serial port, and now my Max serial object can no longer read anything from the serial port. The correct serial port is selected, and the baud rate is set.
I can't get my head round this, can you guys?
Cheers!
J.
Unless I misunderstand you, you can only have one Arduino connected to each serial port.
Unless I misunderstand you, you can only have one Arduino connected to each serial port.
Correct
how ever the Mega has more than one serial port
try to set up the mega to listen in a X port and send data to Y port
{correct me if I am wrong } but I think you need to share the ground with the arduinos to be able to send data via tx rx
indeed one serial port can only be opened by one device. if you need to get the data into max through a single entry point you could try to send the data via i2c from one arduino to the other and only connect one arduino to max.
another option is to work with ethernet shields/arduino ethernet and use osc instead of the serial port. this has several advantages: much higher speed, better stabilty (serial ports tend to crash under some circumstances), you can send from as many sources as you want, almosy no limits in distance between the arduinos and the comput and and and :)