Languages
[Edit]
EN

Arduino UNO first application

14 points
Created by:
Noname
2430

This is the "hello world" example application for Arduino UNO board. You will learn how to create and upload first sketch (project) to the microcontroller.

 

Step 1. Download and install the Arduino IDE.

Arduino IDE can be downloaded from this web page.

Step 2. Open the Arduino IDE and write the example code.

Arduino projects are basically divided into two parts (functions):

  • setup() - put code here to run it only once, at the beginning of the program.
  • loop() - everything putted here will be repeated many times until you turn off the Arduino.

The example code (bellow) enables communication between Arduino and PC (setup function) and next writes "hello world !" in infinite loop in every one second.

void setup() {
  // enable serial communication
  // between Arduino and PC, via USB cable 
  Serial.begin(9600);
}

void loop() {
  // print (send) text "Hello world !"
  Serial.println("Hello world !");

  // wait 1 s (1000 ms)
  delay(1000);
}

 

Arduino hello world application
Arduino hello world application.

 

Step 3. Save sketch.

Step 4. Connect Arduino UNO and PC via USB cable.

At the first time required drivers will be installed automaticly.

Step 5. Check COM port settings.

Go to Arduino IDE -> Tools -> Port and select proper COM port (containing the "Arduino UNO" text):

Arduino COM port selection.
Arduino COM port selection.

 

Step 6. Compile and upload project: Arduino IDE -> Sketch -> Upload.

Step 7. Open serial port monitor: Arduino IDE -> Tools -> Serial Monitor.

If everything is ok you will see new window with the text lines "Hello world!":

Arduino Serial Monitor.
Arduino Serial Monitor.

Alternative titles

  1. Arduino hello world
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Arduino

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join