Arduino - Hello World

Quick Steps

  • Connect Arduino to PC via USB cable.
  • Open Arduino IDE.
  • Select Arduino board
  • Arduino IDE - How to select Arduino board
  • Select Arduino serial port (number may be different)
  • Arduino IDE - How to select Arduino board
  • Type the following code
void setup() { // put your setup code here, to run once: Serial.begin(9600); Serial.println("Hello World!"); } void loop() { // put your main code here, to run repeatedly: }
  • Click Upload button on Arduino IDE to upload code to Arduino
  • Arduino IDE - How to Upload Code
  • Open Serial Monitor by clicking the Serial Monitor icon
  • Arduino IDE - How to open serial monitor
  • See the result on Serial Monitor:
  • COM6
    Send
    Hello World!
    Autoscroll Show timestamp
    Clear output
    9600 baud  
    Newline  

Modifying Arduino Code

  • Replace “Hello World!” by any text, for example, “Arduino Get Started”.
  • Upload the code to Arduino
  • See the result on Serial Monitor
  • COM6
    Send
    Arduino Get Started
    Autoscroll Show timestamp
    Clear output
    9600 baud  
    Newline  

Video

incoming

Congratulations!
You have just successfully taken the first step on the Arduino learning journey. Go ahead!