Install the Arduino IDE software
In this section you will be invited to download, install, and test Arduino software (also called Arduino IDE-an acronym for Integrated Development Environment). Before installation there are a few that you will need:
— A computer (Windows, Mac or Linux).
— An Arduino board.
— A-to-B USB cable.
First go to the Arduino page download software and get the latest version of Arduino software that is already release and stable. Make sure the downloaded version corresponds to your computer’s operating system.
The installation process is quite easy, but adapted to the operating system on your computer. Here are some tips to help you.
The Windows version of the Arduino software provides two options: an installer or a zip file. The Installer is very easy just by downloading it then run the executable file to start the installation then follow it step by step until it is finished.
If you choose to download a zip version of the file from the Arduino software. You need to extract the files to the folder location you chose, and the Arduino software can be used directly without having to do the installation.
When you finish installing the Arduino software if you use an Arduino Uno version that uses CH340 as
USB to serial chip then you need to install additional drivers so that your Arduino board can be read by the computer, whereas if you are using a version of Arduino Uno R3 that uses Atmega16U2 as a USB to serial chip then your Arduino board can be directly Used and read by the computer.
The Arduino Software for the MAC version only includes a zip version of the file. Once done download it, then double-click. zip file to extract it.
Next you need to copy the Arduino application into the Application folder to complete the installation process.
As a Linux user no wonder anymore if there are many versions of Linux distributions, each with a different installation process. Check out the Linux section of the Arduino installation tutorial on the Arduino site for some links that can help for a variety of Linux distributions.
For Ubuntu and Debian users, installation can be done as easily as executing “apt-get “, with commands such as:
sudo apt-get update & & sudo apt-get install Arduino Arduino-Core
And for other Linux distros is not too much different from that.
Finally now it’s time to open the Arduino software. You will be shown with an interface window looking like the following:
Let’s try uploading a Blink sketch to make sure that the Arduino setup really works. Go to the File menu on the Arduino,
Before we can send the program code to the Arduino, there are some settings that need to be done.
Select Board Type
This step is required to tell the Arduino IDE, what kind of board we are currently using. Go to the Tools menu. Then highlight the Board and make sure Arduino UNO is selected.
Select Serial Port
Then we need to tell the Arduino IDE, which serial port to use that has been connected between the Arduino and the computer. Go to Tools, then highlight the Serial Port and select the COM port that is connected to the Arduino.
Once you’re done with the settings, now you’re ready to upload the program code! Click the Upload icon (right arrow) and let IDE compile and Upload your code. This usually takes 10-20 seconds to complete the process. When the code has successfully filled into the Arduino, you’ll see a view like this:
And if you look at the board of the Arduino, you’ll see an LED connected to the pin 13 lit for one second, dying for one second, burning for one second, and continuing like that over and over again. If you want to set a pause time when the LED flashes, try to change the value of “1000” in the line Code delay (1000);.
Something is wrong?
The uphs! If you don’t get the message “Done Uploading”, and there is an error, there are a few that we need to check again.
If you get a avrdude: stk500_getsync () error description: Not in sync: resp = 0x00 in the console window.
Possible selection of boards and serial ports that do not match. Make sure the Arduino UNO type has been selected (on the “Tools > Board” menu). Usually a serial port is a frequent cause of the error, is the serial port correctly selected (on the “Tools > Serial Port” menu)? Has drivers been installed successfully? To check if the selected serial port is the one connected to the Arduino, it can be seen in the menu when the boar is connected, then release it and the serial port of which is missing. If no port is missing, you need to go back to install the drivers correctly.