Pages: [1]   Go Down
Author Topic: 2 serial ports  (Read 360 times)
0 Members and 1 Guest are viewing this topic.
berlin
Offline Offline
Full Member
***
Karma: 0
Posts: 154
fubbi.com
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I would like to send/receive serial from a roomba over the tx/rx pins on a bluetooth arduino and use the bluetooth connection to send me serial monitor feedback.

Is it possible to write serial commands to two different outputs? And how do I address them individually?

thank you

fubbi
Logged

0
Offline Offline
God Member
*****
Karma: 2
Posts: 596
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Look for SoftwareSerial, or use a Mega board, which has 4 hardware serial ports.

HTH
Logged

berlin
Offline Offline
Full Member
***
Karma: 0
Posts: 154
fubbi.com
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

Is mega the only board that can do multiple serial?

thanks

fubbi
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In hardware, yes.
Logged

berlin
Offline Offline
Full Member
***
Karma: 0
Posts: 154
fubbi.com
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

I looked at the (new)softWareSerial, that would do the trick I suppose.

So the BT interface and the tx/rx pins on a bluetooth arduino just mirrors each other?

Maybe somebody can recommend the right solution:

I need to send and receive serial from the roomba over a cable and pass on commands and feedback wirelessly to/from my computer.

I thought a BT arduino would be perfect, but maybe better with a Mega with a zigBee or BT shield?

thank you

fubbi
« Last Edit: February 17, 2012, 08:13:58 am by fubbi » Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I can't see any reason why software serial wouldn't work for this application.
Logged

Pages: [1]   Go Up
Jump to: