Go Down

Topic: 2 serial UART on 1 Arduino ? (Read 798 times) previous topic - next topic

moshik3

May 14, 2011, 02:37 pm Last Edit: May 14, 2011, 03:00 pm by moshik3 Reason: 1
Hi,

this is my first arduino project,
im OK with controllers, ive worked with another platform.

i need to be able to read and write data to 2 devices with 1 arduino
this one needs 38400 bps http://store.diydrones.com/ProductDetails.asp?ProductCode=MT3329-02
and this one also 38400 http://store.diydrones.com/ProductDetails.asp?ProductCode=BR-Dronecell-01

i've thought of this mini pro
http://store.diydrones.com/ProductDetails.asp?ProductCode=BR-DEV-09220

but as it seems it has only one serial TX and RX...

any suggestions ?


(on the other platform every digital input can be used to read or output serial data
is it the same here, or i must use the dedicated serial port ?)

PaulS

You can use NewSoftSerial, and use any pair of pins for a software serial port.

Or, you can get a Mega which has 4 hardware serial ports.

Si

Check the docs, I'm not sure the soft serial will go that fast.

But yes, the Mega has 3 UARTS.
--
My New Arduino Book: http://www.arduinobook.com

Grag38


PaulS

NewSoftSerial works up to 115200 baud.

Si

I guess I have just demonstrated the dangers of guessing ;)

I shall go and look at new soft serial - thats most impressive.

--
My New Arduino Book: http://www.arduinobook.com

Go Up