Pages: [1]   Go Down
Author Topic: communication with more than one uart  (Read 516 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

can any one worked on more than one uart?

i want to send and receive serial data from arduino by using more than one uart i:e i need to communicate with bluetooth, wifi, gsm, and also through internet please throw some light on this.. thanking you...
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27114
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

One way do that is to start & stop services as you need them.

i.e.
bluetooth.begin();
//do bluetooth stuff
bluetooth.end;

// start next service

wifi.begin();
// do wifi stuff
wifi.end;

etc.

Probably better off with multiple UARTs so any data that comes while you service another interface isn't lost.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: