Arduino - Hello World

Hardware Required

1×Arduino UNO or Genuino UNO
1×USB 2.0 cable type A/B
Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.

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 com port
  • 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
    Hello World!
    Autoscroll Show timestamp
    Clear output
    9600 baud  

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
    Arduino Get Started
    Autoscroll Show timestamp
    Clear output
    9600 baud  

Video Tutorial

We are considering to make the video tutorials. If you think the video tutorials are essential, please subscribe to our YouTube channel to give us motivation for making the videos.

Function References

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

The Best Arduino Starter Kit