Arduino Serial Communication Code

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.

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.

[box color=”#985D00″ bg=”#FFF8CB” font=”verdana” fontsize=”14 ” radius=”20 ” border=”#985D12″ float=”right” head=”Major Components in Project” headbg=”#FFEB70″ headcolor=”#985D00″]Parts List;
1) 1x USB cable A-B
2) 1x Arduino[/box]

For more detail: Arduino Serial Communication Code

Leave a Comment

Your email address will not be published.

*
= 3 + 7

(Spamcheck Enabled)

Scroll to Top