Page 1 of 1

Serial Communication with Multiple Devices

Posted: Wed Jan 20, 2016 3:56 pm
by schoolsterz123
Hello,

I am working on a project that uses an Ardunio, a uLCD-70DT touch screen by 4D Systems, and a Sparkfun Bluetooth Mate Silver. From what I understand communication from the touchscreen can either be through the I/O pins on the back of the board (1 I/O pin could correspond to one button on the touchscreen) or through the TX and RX pins to the Arduino. The touchscreen interface will be quite complex so I don't believe using the I/O pins alone will work so it will need to communicate the information about what buttons are pressed and such over serial communication. As far as I know, the Bluetooth module also needs to run over the same TX and RX pins on the Arduino. How would it work using two devices that need to use these serial pins?

Thanks!

Re: Serial Communication with Multiple Devices

Posted: Thu Jan 21, 2016 10:30 am
by motopic
Use a softserial(bitbanged) for one (the slower one)
Use a I2C or SPI interface if possible. For example you could use a I2C pin expander to handle the TS IO.
Or add another hw serial port.
http://www.mouser.com/Semiconductors/In ... /_/N-45m1h

Re: Serial Communication with Multiple Devices

Posted: Thu Jan 21, 2016 11:41 am
by Ross Robotics
Use one on hardware serial and the other on software serial. Or you could find an Arduino board that has more than one hardware serial port, i.e., the Mega.