Arduino 2 - Serial Communication between Arduino and PC

This post is for serial communication between the Arduino and PC connected through the USB Cable


Parts Required:
1.Arduino Uno
2. USB Cable A-B




Sketch:

//one-time initialization
void setup()
{
     Serial.begin(9600); //setting the baud rate to 9600
}

//infinite loop

void loop()
{
     Serial.write("Hello World"); //writing Hello world on the console
     delay(3000); //delay of 3 sec

}

To check the output , go to Tools and click on SerialBoard Monitor

Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

PR, PN and PV Variable in Yocto