Arduino 1.0.5 and Atmel templates for Qt Creator 3.0.1 and Ubuntu 14.04

This article explains how to install Arduino Templates for Qt-Creator. A previous version of this tutorial for Ubuntu 12.04 is available here. This tutorial is based on the following versions of software:

  • Ubuntu 14.04 LTS
  • Arduino 1.0.5
  • Qt Creator 3.0.1

Install packet

First, launch a terminal (ctrl-alt-t) and install Qt Creator:

sudo apt-get install qtcreator

Now install Arduino core:

sudo apt-get install arduino-core

Install Arduino Makefile:

sudo apt-get install arduino-mk

In the same way, install GTK terminal:

sudo apt-get install gtkterm

Installing the templates

Download and extract this archive:

Copy folders in the Qt Creator Template directory:

cd path/to/downloaded/archive
sudo cp -R atmega/ /usr/share/qtcreator/templates/wizards/
sudo cp -R arduino/ /usr/share/qtcreator/templates/wizards/

Change read-acess rights for any user to the template folder:

sudo chmod -R 755 /usr/share/qtcreator/templates/wizards/arduino/

Start or restart Qt Creator for the new templates to be available:

QtTemplate

USB rights

Some programming devices like AVRISPmkII requires rights on USB devices. This can be done by adding a rules file (provided in the archive):

sudo cp 60-avrisp.rules /etc/udev/rules.d/

For changes to be applied, restart USB services:

sudo service udev restart

Note that if an AVRISPmkII device is connected, unplug and replug.

Add the current user to the dialout group:

sudo usermod -a -G dialout $(whoami)

Close your session to apply changes.

Qt Creator project configuration

Previous steps have to be done only once. But the following has to be done every time a new project is created. Create a new Arduino project through the Wizard. Once the project is created, go in the menu Tools>Option, change the terminal to xterm :

terminal

In the project Tab (left of the screen) select Build Settings. Add /src at the end of the build directory :

GenericManager

In build steps (if it not already done) select make all:

BuildStepsIn Clean steps, select  make clean:

CleanSteps

Go to the second tab : Run Settings, and set the following parameters:

RunSettings

Click run, the program should compile and upload in the Arduino.

Acknoledgments

Thanks to Mauro Giampieri for his proposal and improvements.

10 thoughts on “Arduino 1.0.5 and Atmel templates for Qt Creator 3.0.1 and Ubuntu 14.04

  1. C'est magnifique!

    It also works with the new QtCreator 3.3.0. The screenshots are a little different and most of the things are already setup correctly, but everything seems to function as it should. If you're installing from the QtCreator installer instead of the Ubuntu bundle, just use the following path for copying the arduino and atmega templates instead:

    /opt/qtcreator-3.3.0/share/qtcreator/templates/wizards/
    (or similar, depending on how you installed it)

    Merci beaucoup!

  2. Hello.

    Are you plaining to update this to latest Arduino 1.6.9 and Qt Creator 4 ?
    There are about 10 instructions on the net, and all of them are 2-3 years out of date and do not work.

    I am surprised, AVR and Arduino wizards are not in Qt Creator by default after so many years.

    Regards.

Leave a Reply

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