Saturday 18 June 2016

Tutorial 2: First program on Arduino board

In the first chapter we see the pin mapping of ATmega 168 to get idea about which pins are used in Arduino Uno. Now we are going to see the programming in Arduino IDE. You can download it from the official website of Arduino. Also you can learn the tutorial or libraries or keywords for programming.


Program 
1) It consists of two parts one is void setup () and another one is void loop(). 
2) First, void loop () get executed for only once,whereas void loop () is used to execute it continuously. 
3) for example :

void setup() 
{
Serial.begin(9600);
}
void loop() 
{
Serial.println("hello, world... ") ;
The above program will print hello world on serial monitor...!!!! 

In next tutorial we'll start with basics of Arduino IDE

No comments:

Post a Comment

How to Run JAVA Program in Ubuntu

HOW TO RUN A JAVA PROGRAM IN UBUNTU 18.04 LTS Check out our channel and Subscribe for more SPARKY HACKS