IoT Hacks for IoT geeks. http://iot-hacks.com

Getting Started Programming with Arduino IDE Software

11:19 PM Posted by Gopal Lal No comments
Arduino IDE is the software to program the Arduino board. First you have to download the software from arduino website. You can simply download it from here. Choose your suitable version. Now you have to install this software in your computer or laptop. 
Programming with Arduino IDE
The basic sketch of Arduino IDE is looks like this. 

The sketch has two main parts:-

1.
void setup()
{
  // put your setup code here, to run once:
  
}

The part of program code written in void setup() section will run once only. In this section we generally put the code to define the functions of I/O pins, to initialize the serial communication etc that should be run only one time.
2.
 void loop()
{
  // put your main code here, to run repeatedly:
  
}

This part of code runs continuously again and again. We put the code in this section to repeat the code infinitely. It acts as a infinite loop.

The initialization of the variables, LCD, RF radio device etc are made before void setup() loop.
After complete the program just simply check the program by clicking on 'Verify' button and if there is no error the simply click on 'Upload' button and burn code on Arduino board. 


0 comments:

Post a Comment