Arduino Nano - Hello World

Hardware Preparation

1×Arduino Nano
1×USB A to Mini-B USB cable
1×(Optional) 9V Power Adapter for Arduino Nano
1×(Recommended) Screw Terminal Adapter for Arduino Nano

Or you can buy the following sensor kits:

1×DIYables Sensor Kit (30 sensors/displays)
1×DIYables Sensor Kit (18 sensors/displays)
Disclosure: Some of the links provided in this section are Amazon affiliate links. We may receive a commission for any purchases made through these links at no additional cost to you. We appreciate your support.

Detailed Instructions

  • Connect the Arduino Nano to your computer using a USB cable.
  • Launch the Arduino IDE.
  • Choose the type of Arduino Nano board by clicking on board selection box as below:
Arduino IDE - How to select Arduino Nano board
  • Type arduino nano, select the Arduino Nano board and the serial port of your Arduino Nano (the number may vary).
Arduino IDE - How to select com port
  • In the terminal:
  • Enter this code in the terminal:
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 the Upload button on the Arduino IDE to compile and upload the code to the Arduino Nano board.
How to upload code to Arduino Nano
  • Click on the Serial Monitor icon to open it.
Arduino IDE - How to open serial monitor
  • View the output on the Serial Monitor.
Hello World!
Autoscroll Show timestamp
Clear output
9600 baud  

Modifying Arduino Nano Code

  • Swap out “Hello World!” with any other text, like “Arduino Nano Get Started”.
  • Then, upload the code to the Arduino Nano.
  • Finally, view the output on the Serial Monitor.
Arduino Nano Get Started
Autoscroll Show timestamp
Clear output
9600 baud  

Video Tutorial

Function References

. Congratulations!
. You have just achieved the initial step in your Arduino Nano learning experience. Keep going!


  • As freelancers, We are AVAILABLE for HIRE. See how to outsource your project to us
  • Please feel free to share the link of this tutorial. However, Please do not use our content on any other websites. We invested a lot of effort and time to create the content, please respect our work!