Before you can experiment with Arduino you will need to set up the environment in which we will make sketches (program code). Once you completed this tutorial, you are ready to upload your first program on the Arduino board. However, it is recommended to read the getting started tutorials before you upload your first program. After these beginning tutorials, you will be able to write some simple code. Let us take a look at the installation of Arduino.
Things you will need
- Arduino Uno Board
- Arduino Software
Step 1: Arduino Hardware
Before you can start with the Arduino installation, we need to have an Arduino Uno board and a USB cable. In the case of the Arduino Uno board which we will use a lot in the tutorials, you need a standard USB Cable ( A plug to B plug). Furthermore, you need a computer to link the Arduino too.
In the case of the Arduino Nano board, you will have to use the A to Mini B Cable such as the picture below
Step 2 Download the software
To be able to run the sketch from your board you should download the IDE Arduino IDE software. You can download it from their own homepage https://www.arduino.cc/en/Main/Software
After downloading and installing the software restart the computer.
Step 3 Power Up and connect your board
After you installed the Arduino IDE software you should connect the Arduino Board with the computer. The operating system of your computer will look for drivers, it should find the right drivers since you installed the IDE software. However, there could be problems with the driver. In case of problems with the drivers (the board is not recognized by your pc) go to the Arduino forums for support. Most of the time if the board is not recognized just switch to another USB port and that will hopefully solve the problem.
STEP 4 Launch and open the IDE
Once the Arduino Board is connected to the pc it is finally time to launch the IDE. Once the software is started you can either create a new project or open an existing project/example. The toolbar below has some interesting shortcuts. You can hover on the buttons to see the actions that they perform.
STEP 5 Choose Board and Serial Port
To avoid errors while uploading your sketch to the Arduino board, you must select the correct board which matches with the board that you connected into your computer. In our example, we are using an Arduino Uno board. You can go to TOOL à Board and then select your connected board.
STEP 6 you can upload your sketch
After selecting the board and serial port you are now ready to upload your first sketch. We will use an example sketch from Arduino IDE named blink.
After you click the upload button the SOFTWARE uploads / compiles your sketch. If there are no errors the message “done uploading” will appear in the status bar. After a few seconds after the upload is finished you should see the PIN 13 LED on the Arduino Uno board to blink, in orange. If it does, CONGRATULATIONS!!! You are ready to start with the basic tutorials.