Hi,
I'd like to be able to communicate via serial on multiple pins, so that I can connect to multiple devices. Is there any way to do this, or would it require modification of the Arduino board?
Hi,
I'd like to be able to communicate via serial on multiple pins, so that I can connect to multiple devices. Is there any way to do this, or would it require modification of the Arduino board?
You can only use the built in serial comm. on the default pins (0 and 1).
But you can use the softserial library to communicate on other pinns.
The soft serial library does have some shortcomings, most notably the lack of the SerialAvailable() function.
Thanks, this is exactly what I needed :-).
The lack of Serial.available() isn't too bad, output is more important for my project than input.
I don't have an oscilloscope or a serial device to test it, so I plugged the soft serial output into a small 0.3W speaker and compared it to the normal serial output. I guess the pitch of the sound is proportional to the baud rate, and the outputs sound different to me, so I'll investigate with the speaker until I have a serial device to test it with.
Thanks again,
--Appleton.