Arduino Tutorial 02: Getting Started


Hello guys!!! this is our second tutorial of arduino tutorial series. In our previous tutorial we already had an overview of Arduino Uno R3 Board. Now, in this tutorial we are going one step further, this time we are going to start making projects on our Arduino uno R3 board. So, in our very first project we are going to start with digital input/output pins of uno R3 board, means we are going to learn how to program input/output pins of this microcontroller board.

Arduino Uno R3 board has 14 digital i/o(input/output) and each of them will work as input as well as output pin. You can program these pins individually. Before going to programming we have to setup some basic requirements. If you follow our previous tutorial then i am considering that you have already downloaded and install Arduino IDE software, but if not then please check it out our Arduino Tutorial 01 for software installation and technical details of arduino uno r3.


  • 1 x Arduino Uno R3 Board
  • 1 x Laptop or pc
  • 1 x Bread board full size
  • 1 x Led(Red,5mm or 3mm)
  • 1 x 330E (330 ohm) Resistor
  • 1 x USB cable
  •  Jumper wires

Ok, once you have all these thing as mention above, now you are ready to start your first project, which is “Led blinking using arduino uno r3”.

Connection Diagram


Please click on the connection diagram image to check the hardware connections.

Source Code

/* ========================================================
       Project : Led Blinking
        Author : Jordan
       Created : 19st Nov 2015
   Description : A Led Blinking program
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
 // initialize the digital pin as an output.
 pinMode(led, OUTPUT);
// the loop routine runs over and over again forever:
void loop() {
 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
 delay(1000); // wait for a second
 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
 delay(1000); // wait for a second

Sketch Uploading

Programs you develop in arduino ide is also knows as sketch. One of the advantage of arduino platform is that, to upload your program in any other microcontroller you have to use a special hardware which also known as programmer. But with arduino no need of programmer or any kind of special hardware to upload the program. You can upload your sketch or program just by clicking a single button.

Before going to upload your program you have to do some basic setting in Arduino IDE. You have to select your arduino board and serial port in arduino ide. For this please follow below mention steps:

Step 1: Connect your arduino uno board with you laptop or pc with the help of usb cable. Wait for some time until you computer detects you arduino uno board.


Step 2: Open your Arduino IDE.


Step 3: Goto Tools>>Board>>Arduino Uno

Step 4: Then, goto Tools>>Port>>COM15 (this is my COM port and it will be different in your pc)

Step 5: Finally, click on Upload button.


Finally your program is uploaded in your uno board. Led is blinking Enjoy!!!!!!!!!!!!!

Now, After that your first project is successfully complete. Hope you like the tutorial.

In the next tutorial we will do more projects on Arduino uno.


comments powered by Disqus

how can we help you?

Please leave your contact details, Our customer relationship manager will assist you.

get in contact
Be the Campus Ambassador of ELAN IIT Hyderabad!