how to test Arduino Due? | applied electronics engineering

Latest

how to test Arduino Due?

By Applied Electronics - Friday, February 10, 2017 No Comments
In this Arduino Due tutorial we show how to test Arduino Due for the first time. It shows how to connect a LED to the Arduino Due board, how to write and upload program to simply turn ON and OFF the LED.

There are few setup we have to do before we can use the Arduino Due with Arduino IDE. First you need to install the Arduino SAM board core. Second setup is the driver for the Arduino Due which uses the port.

Installing Arduino SAM board core


Go to Tools > Boards > Boards Manager

From there select the Arduino SAM Board(32-bit ARM Cortex-M3). This will install the board core. See below how to do this.


Installing Arduino SAM board core


Now check that the board Arduino Due(Programming Port) is visible under the Board:"Arduino Due(Programming Port)" as shown below.

how to test Arduino Due?

Installation of Arduino Due Driver


Just plug in the Ardunio Due connected USB to your Computer. The computer should search and install the USB driver automatically. After successful install you should see Com Port in your Arduino IDE as shown below.

how to test Arduino Due?

Circuit Diagram


Now we have to connect a LED to the Arduino Due board. Put the positive terminal to the 13th pin and the negative terminal to the ground as shown below.






Programming Arduino Due


If the board and port has been successfully configured and the LED is connected as shown above, you are ready for programming the Arduino Due.

Programming Arduino Due is same as Arduino UNO. The same Arduino IDE is used to write program and compile/upload the program Arduino Due microcontroller- the 32-bit ARM Cortex-M3 microprocessor.

The following is the sketch or the program code.

void setup(){
    pinMode(13, OUTPUT);
  }

void loop(){
    digitalWrite(13, HIGH);
    delay(100);
    digitalWrite(13, LOW);
    delay(100);
  }

This is the same code that would have worked with Arduino UNO. See Arduino digitalWrite and digitalRead for example and explanation of the above code.

So in this Arduino Due tutorial we showed you how to test Arduino Due board if you working with it for the first time. This simple LED blinking tutorial is simple enough to ensure that your Arduino Due board is working properly and that it is not damaged.


No Comment to " how to test Arduino Due? "