Arduino Due tutorial – Blinking LED

This tutorial show how to blink LED using Arduino Due. This is the first tutorial on Arduino Due.

In this Arduino Due tutorial we show to blink LED using Arduino Due. Arduino Due is a powerful microcontroller board that uses the 32 bit ATSAM3X8E microcontroller. Simply turning on and off a LED is perhaps not the best utilization of such powerful system. But the idea here is to illustrate how to get started with Arduino Due, check whether the board is working or not, check whether you have configured the Arduino IDE correctly or not.

Step 1: Install Arduino SAM Board Core

The first step is to install Arduino SAM Board Core. To install it go to Tools > Boards > Board Manager. In the list that appears select Arduino SAM Board(32-bit ARM Cortex-M3) and install it.

The following shows how to install arduino SAM board core.

Install Arduino SAM Board Core

Step 2: Connect Arduino Due to PC

After installation, restart Arduino IDE. Now connect Arduino DUE to your PC. There are two microUSB connector on Arduino DUE. Use the one that is closer to the Power Supply pin. Once you have plugged in your PC should automatically detect the board and assign a COM port. If you don’t find the COM port, go the Device Manager and look for Arduino Due Programming Port(COM4), where you can have different com port. See the following example picture.

Connect Arduino Due to PC

At this point, your Arduino Due board is recognized by the PC.

Step 3: Verify Arduino Due Board and COM Port

The next step is to verify that the Board and Com Port are being used. For this go to Tools in the toolbar and see that the Board selected is the Arduino Due Programming Port and that COM port is also the correct one, in this example COM4.

See the following to know how to do this.

Verify Arduino Due Board and COM Port

Step 4: Write and Upload the Sketch

The final step is to write and upload the sketch. The following Arduino Due program will turn on and off a LED connected to the 13pin.

Now before moving on you should already have a LED connected to the pin 13 on the Arduino Due board.

Arduino Due tutorial - Blinking LED

Now Just Compile and Upload by clicking on the Upload button(Button with Arrow on it) on the top.  See the following on how to verify and upload the code.

Write and Upload the Sketch

You should see the LED blinking.

So in this way you can blink LED with Arduino Due. This is the first Arduino Due tutorial of many to come. If you like share it. Also subscribe to our blog.

For more tutorials check out the arduino UNO tutorials, some of which are below.

Leave a Reply

Your email address will not be published. Required fields are marked *