Download Arduino IDE
At this point, we’re ready to download the free software known as the IDE. The Arduino IDE is the interface where you will write the sketches that tell the board what to do.
You can find the latest version of this software on the Arduino IDE download page.
Once the software has been installed on your computer, go ahead and open it up. This is the Arduino IDE and is the place where all the programming will happen.
Take some time to look around and get comfortable with it.
- Menu Bar: Gives you access to the tools needed for creating and saving Arduino sketches.
- Verify Button: Compiles your code and checks for errors in spelling or syntax.
- Upload Button: Sends the code to the board that’s connected such as Arduino Uno in this case. Lights on the board will blink rapidly when uploading.
- New Sketch: Opens up a new window containing a blank sketch.
- Sketch Name: When the sketch is saved, the name of the sketch is displayed here.
- Open Existing Sketch: Allows you to open a saved sketch or one from the stored examples.
- Save Sketch: This saves the sketch you currently have open.
- Serial Monitor: When the board is connected, this will display the serial information of your Arduino
- Code Area: This area is where you compose the code of the sketch that tells the board what to do.
- Message Area: This area tells you the status on saving, code compiling, errors and more.
- Text Console: Shows the details of an error messages, size of the program that was compiled and additional info.
- Board and Serial Port: Tells you what board is being used and what serial port it’s connected to.
Chapter 2 : Connect Your Arduino Uno
At this point you are ready to connect your Arduino to your computer. Plug one end of the USB cable to the Arduino Uno and then the other end of the USB to your computer’s USB port.
Once the board is connected, you will need to go to Tools then Board then finally select Arduino Uno.
Next, you have to tell the Arduino which port you are using on your computer.
To select the port, go to Tools then Port then select the port that says Arduino.
Upload The Blink Sketch
Now it’s time to upload the sketch (program) to the Arduino and tell it what to do. In the IDE, there are built-in example sketches that you can use which make it easy for beginners.
To open the blink sketch, you will need to go to File > Examples > Basics > Blink
Chapter 3: Blink an LED
It’s finally time to do your first Arduino project. In this example, we are going to make your Arduino board blink an LED.
Connect The Parts
You can build your Arduino circuit by looking at the breadboard image above or by using the written description below. In the written description, we will use a letter/number combo that refers to the location of the component. If we mention H19 for example, that refers to column H, row 19 on the breadboard.
Step 1 – Insert black jumper wire into the GND (Ground) pin on the Arduino and then in the GND rail of the breadboard row 15
Step 2 – Insert red jumper wire into pin 13 on the Arduino and then the other end into F7 on the breadboard
Step 3 – Place the LONG leg of the LED into H7
Step 4 – Place the SHORT leg of the LED into H4
Step 5 – Bend both legs of a 220 Ohm resistor and place one leg in the GND rail around row 4 and other leg in I4
Step 6 – Connect the Arduino Uno to your computer via USB cable