Serial Monitor

The serial monitor is the 'tether' between the computer and your Arduino - it lets you send and receive text messages, handy for debugging and also controlling the Arduino from a keyboard!

Serial.begin(rate)

Opens serial port and set baud rate for serial data trasmission.Typically baud rate for communication with computer is 96000 although other speeds are supported.

Note:when using serial communication digital pins 0(RX) and 1(TX) cannot be used at the same time

Serial.println(data)

Print data to the serial port followed by an automatic carriage return and line feed .This command takes the same form as Serial.print(),but is easier for reading data on the Serial monitor.

Serial.println(Anything);

Arduino Code

Open the Arduino IDE and Copy paste the Arduino Code below

void setup()
{
Serial.begin(9600);             //Initiate Serial communication
Serial.println("Hello World");  // Print hello world in serial monitor
}
void loop()
{}
Free HTML5 Bootstrap Template by FreeHTML5.co

Next : LED -Digital Write