Pages: [1]   Go Down
Author Topic: 2 serial UART on 1 Arduino ?  (Read 721 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?)
« Last Edit: May 14, 2011, 08:00:41 am by moshik3 » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 610
Posts: 48993
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

UK
Offline Offline
God Member
*****
Karma: 13
Posts: 903
Twitter: @simonmonk2
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

But yes, the Mega has 3 UARTS.
Logged

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

France
Offline Offline
Sr. Member
****
Karma: 2
Posts: 380
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

4 uarts !
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 610
Posts: 48993
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

NewSoftSerial works up to 115200 baud.
Logged

UK
Offline Offline
God Member
*****
Karma: 13
Posts: 903
Twitter: @simonmonk2
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I guess I have just demonstrated the dangers of guessing smiley-wink

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

Logged

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

Pages: [1]   Go Up
Jump to: