- Download the Arduino IDE
- Installation of the environment
- Check if it works correctly
DOWNLOAD AND INSTALLATION OF THE ARDUINO IDE.
Let’s download and install the Arduino Integrated Development Environment (IDE) and test whether it is successfully set up. To do so, we will go to the download page:
We will download the latest version of the IDE. Up to date it is the beta version 1.6.48, which is stable enough to be used in normal conditions.
- This version supports the Arduino DUE and Yun boards and they are mandatory if you want to use them
We have to choose the version that correspond to our system (we recommend the installer version in Windows) and be patient because it is moderately bulky.
Once finished, execute the downloaded file and answer the installation options.
- To accept the default options of the installation is a reasonable option, just in case you are not sure about the answers to the questions,
After a few minutes the installation will end and the Arduino IDE icon will appear in the desktop of your computer.
Once the IDE has been installed we are going to check whether it recognizes our Arduino correctly and if we are able to program it. To do so, connect your Arduino to your computer via the USB cable.
- Check whether the Arduino lights are lit, showing that it is in fact powered.
Then our computer must detect the new USB device and install the correct driver.
Pay attention, the number of the serial port that is installed may vary from which is shown on the picture, depending on the features of the computer.
- In Linux it will create also a port \dev\ttyx and you will have to create an account in the USB users group.
- In Mac it should install it without any problems
If our model is a DCcduino UNO, as the shown in the picture, most computers will need an additional driver that can be downloaded from here:
Unzip it with Winrar and execute the file. It will install a driver that will solve the problem.
Now we can start by double-clicking on the Arduino icon in our desktop, setup the Arduino model and confirm to which serial port it is connected. We can choose the exact model of our Arduino navigating through Tools\Board. In our case we choose Arduino/Genuino Uno:
Navigating through Tools\Port we can check that we have a port assigned and that is has a selection mark. In our case the port selected is COM12 but in your case it will be different.
It is important to setup the port and Arduino model in order the IDE to work properly. The selection mark must be ticked. Now let’s upload an example sketch to the Arduino board:
By clicking in File\Samples\01.Basics\Blink there will appear a bunch of texts in the IDE that we will ignore for the moment. Click the orange button (the upload button) and you will see a progress bar growing. The IDE compiles the sketch first and then uploads it to the Arduino board :
If all went well, we will see a message in the lower part of the IDE:
This white text shows that we have successfully uploaded the sketch and therefore we should see the Arduino on-board LED blinking.
If you can see the Arduino on-board LED blinking… congratulations! The IDE is properly installed and setup, so we can skip to the next chapter.