serial communication

hi plz tell me that in arduino uno can i use external serial.by means of transeiver?not use with usb cord?if yes so plz give me idea plz

What do you main with a transceiver ? A wireless module or the TX signal ?

You can use pin 0 (RX) and pin 1 (TX) for other devices, but then you can's use the serial monitor anymore, and uploading a sketch is a problem.

The SoftwareSerial creates extra serial ports on other pins.

You can use that extra serial port for other devices.

hi
can i use arduino uno with serial communication with external ,without using usb cable

OP you have been warned in the past about multiple cross-posting.

DO NOT CROSS POST, IT WASTES TIME.

No more warnings.

Hi all,
I’m having a problem with serial communication. I’m using a Arduino Mega board, BT module, Ultra Sonic range measurement module and 9 Degrees of Freedom - Razor IMU. They all are sending a diferent kind of data and I want to display all incoming data in Serial Monitor at the same time. For all those devices I have seperate codes and now I want to put them in one code and display data. So is there a posibility to do that?

Yes

But how? I put the BT code and Ultra Sonic range measurement module code in one code and I only Ultra Sonic range measurement module’s data…

const int NUMBER_OF_FIELDS = 3; // how many comma-separated fields we expect
int fieldIndex = 0;             // the current field being received
float values[NUMBER_OF_FIELDS];   // array holding values for all the fields
//const int pingPin = 7;

void setup()
{
  Serial.begin(9600);
  Serial1.begin(115200); // Initialize serial port to send and receive at 9600 baud
  //Serial2.begin()
}

void loop()
{

  if( Serial1.available()) {
    for(fieldIndex = 0; fieldIndex  < 3; fieldIndex ++)
    {
      values[fieldIndex] = Serial1.parseFloat(); // get a numeric value

    }
    Serial.print( fieldIndex);
    Serial.println(" fields received:");
    for(int i=0; i <  fieldIndex; i++)
    {
       Serial.println(values[i]);
    }
    fieldIndex = 0;  // ready to start over
  }
  //long duration, cm;
 
  //pinMode(pingPin, OUTPUT);
  //digitalWrite(pingPin, LOW);
  //elayMicroseconds(2);
  //digitalWrite(pingPin, HIGH);
  //delayMicroseconds(5);
  //digitalWrite(pingPin, LOW);
 
  //pinMode(pingPin, INPUT);
  //duration = pulseIn(pingPin, HIGH);
 

  //cm = microsecondsToCentimeters(duration);
  
  //Serial.print(cm);
  //Serial.print("cm");
  //Serial.println();
 
  //delay(100);
//}
//long microsecondsToCentimeters(long microseconds)
//{
 // return microseconds / 29 / 2;
  
}