Arduino Serial Communication

by Rezz on October 4, 2011

Arduino can send output through serial communication to your computer over USB. The output can be anything such as status, text, sensor reading, value, number etc. You can view the status output by clicking Serial Monitor button at Arduino Environment software.

Parts List;
1) 1x USB cable A-B
2) 1x Arduino

Instruction;
1) Connect your arduino to your computer using USB cable A plug to B plug.

Upload this code to your arduino

/*
  Serial Communication
  Arduino can send output through serial communication to your computer over USB.
 
  Coded by: arduinoprojects101.com
*/
 
void setup() {
  Serial.begin(9600);
}
 
void loop() {
  Serial.println("output text send through serial print");
  Serial.println("delay 3 seconds");
  delay(3000);
}

Serial.begin(9600);
Instruct arduino to start serial communication with 9600 bits of data per second.

Serial.println(“output text send through serial print”);
This is an example output text data send through serial communication

delay(3000);
Delay for 3 seconds before repeating the loop.

To view this serial communication, you have to click Serial Monitor button at Arduino Environment software.

Leave a Comment

Previous post:

Next post: