Arduino Nano - Hello World

Hardware Preparation

1×Arduino Nano
1×USB A to Mini-B USB cable
1×(Recommended) Screw Terminal Expansion Board for Arduino Nano
1×(Recommended) Breakout Expansion Board 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.
Additionally, some of these links are for products from our own brand, DIYables.

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.
COM6
Send
Hello World!
Autoscroll Show timestamp
Clear output
9600 baud  
Newline  

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.
COM6
Send
Arduino Nano Get Started
Autoscroll Show timestamp
Clear output
9600 baud  
Newline  

Video Tutorial

Function References

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

※ OUR MESSAGES

  • 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!