Arduino Setup Guide: Install Arduino IDE Software and test setup by uploading Blink Example Code

This guide will go through each steps to ensure that your Computer Setup is ready for Getting Started on Arduino.

If you bought arduino for first time, it will also help you to check whether your development environment is all set to get started on Arduino preferably Arduino UNO.

Arduino Uno

Power On the Arduino Board

  1. Connect the Arduino Board to Computer via USB Cable
    • Green LED on Arduino board should turn on

If Green LED is on, Arduino is working.

How to install Arduino IDE Software ?

Arduino IDE is software package that acts as Code Editor / Compiler / Uploader for Arduino programming language. It can be used to program Arduino Uno, Mega, Due, Zero, Nano, STM32, ESP32, ESP8266 and many more micro controllers.

You can install IDE in any OS like Windows 10, Ubuntu, Mac.

Arduino IDE

To install Arduino IDE software, visit below links -

For Windows 10

For Mac

For Ubuntu

How to install USB Driver for Arduino Board ?

Arduino Board is a Hardware. To connect any hardware to a computer, you need to install its driver. So which driver we need to install depends on what board you have.

The goal here is to specify IDE which USB Serial Port is Arduino connected to -

  1. In Arduino IDE, click on Tools and check if Port option lists serial ports like COM3 / COM4 (for Windows) or like /USB/tty0 or /USB/tty1 for Linux
Arduino IDE

This Port belongs to any hardware that is connected to your computer. To confirm the Serial Port of Arduino, disconnect the USB Cable and check if the Port list changes. If it changes, then the missing port belongs to the Arduino. Connect back the USB Cable to same USB port and it will appear again.

Important Note for FIrst Time Users - If you don't see port change in above step, it means that you did not install the USB Driver applicable for the board.

For boards bought from https://noobtronics.ltd, we use CH340G as USB to UART converter for which drivers can be found on below link -

https://noobtronics.ltd/download/ch340g/

Once you confirm the port of Arduino, lets keep it selected (tickmarked) in the Tools menu.

Step 4:

The goal here is to specify IDE which Arduino board you want to program.

100s of different boards from Arduino or Third Party vendors (like us 😜) can be programmed via Arduino IDE, so it is important that we specify which board that you want to program.

If it is Arduino UNO board running on ATmega328P MCU, you can specify it by selecting in

  • Tools -> Board -> "Arduino Genuino / Uno"

If it is Smartduino UNO board running on ATmega328PB MCU, you can specify it by selecting in

  • Tools -> Board -> "Smartduino Uno 16Mhz"

  • Tools -> Processor -> ATmega328PB

    • (Note - You need to add Smartduino Library in the Boards Manager to be able to see this board)

Step 5:

The goal here is to specify IDE which Arduino Code that you want to program Arduino with.

As the blog title suggest, we will be uploading Blink Example code to the Arduino.

Open the Blink code by going to File -> Examples -> 01.Basics -> Blink

Open Blink Example Code in Arduino IDE

The code in Blink Example will look as follows -

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

Step 6:

The goal here is to command IDE to upload the Code to Arduino.

Its simple, Just Click the Upload icon.

Arduino IDE Upload Button

Once you click it,

IDE will compile the code into binary (1s and 0s) and the binary will be uploaded to Arduino.

Step 7:

If it results in 'Done Uploading' it means that Mission is Accomplished. Congratulations !

Arduino IDE Done Uploading

Your Arduino LED should blink as follows -Smartduino Uno Blinking

If somehow, 'Done Uploading' does not appears or it say 'Uploading Failed' then something must be wrong.

You can turn on the Debug Logs in Arduino IDE by following steps -

  • Open Preferences from File menu
  • Ensuer that 'compilation' and 'upload' options for 'Show verbose output during' is tickmarked
Arduino IDE Preferences

Now retry the above test and read the debug logs to identify the issue.

Common Problems for 'Uploading Failed'

  • USB Cable not Connected
  • USB Cable connected but faulty
  • Code does not Compile (Do not modify Example codes)
  • Wrong Boards Selected
  • Wrong Serial Port is Selected
  • Your ATmega MCU on the board is Fried
  • USB to UART Communication is Failing

Since so many things can go wrong here, at https://noobtronics.ltd we check our Arduino Boards first before they are delivered to you and provide Assured Quality by doing following extensive tests -

  • USB Serial Communication Test
  • Timing Accuracy of millis() and micros() functions in aduino
  • Functional Test of all I/O Pins Digital and Analog
  • Arduino Blink Example Program Test with same USB cable that will ship with it.

Hope you like this post 😊