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
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
Post a Comment