Saturday, 31 January 2015

#6 First Program on Arduino Uno- Blinking LED Part 2 [How to Program Arduino]



(Click to enlarge)

This is 7th post on Arduino tutorial.
If you want the list of posts click here.


  • Assuming that you all are familiar with the basics of the C programming & little java lets proceed. [I will try explaining as much as possible for those who are new to programming :)
  • We have seen the basics of the IDE in the last post, now let us see the Bare Minimum code that always has to be there in coding of Arduino.
  • Refer the above picture [enlarge it], you can see two functions 
    1. void setup()
    2. void loop()
  • As the name suggest void setup() is a function in which we mention all the setup that is required for our work. We setup or Configure the board i.e. set the pins as either input/output and also mention whether pin is high or low. Many other configuration details are written in setup, about which we will see later. This function must always be there in code and this is the function that is executed first when Arduino is started/rebooted. void setup() is executed only once after the Arduino is shut ON.
  • void loop() is a function in which we write all the things that we want the Arduino board to do. We write the code to take inputs, process and then give outputs. This code is executed repeatedly until the Arduino board is shut OFF. This function must always be there in program.
  • If you see the picture more clearly you will see 'Done Compiling', this means after verification there was no syntax error and this code can be burned on chip.
  • Although this code will do nothing :-P 
  • Notice that this code is Bare Minimum code required in any program that you write for Arduino and for any Board.

SO GET READY FOR BLINKING LED PROGRAM ON ARDUINO, FIRST PROGRAM THAT WILL DO SOMETHING :-P 


Visit the next post on 'First Program on Arduino Uno - Blinking LED - Part 3'.
click here.

Follow the blog, 
Hit like on the Facebook page and stay tuned :)
Comments are welcomed :)
Thank You.