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


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top