SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
-- by Prof. M.K.Deshkar
Arduino IDE
Arduino is a prototype platform (open-source) based on an easy-to-use
hardware and software. It consists of a circuit board, which can be
programed (referred to as a microcontroller) and a ready-made software
called Arduino IDE (Integrated Development Environment), which is used
to write and upload the computer code to the physical board.
The key features are −
•Arduino boards are able to read analog or digital input signals from
different sensors and turn it into an output such as activating a motor,
turning LED on/off, connect to the cloud and many other actions.
•control your board functions by sending a set of instructions to the
microcontroller on the board via Arduino IDE (referred to as uploading
software).
•Unlike most previous programmable circuit boards, Arduino does not
need an extra piece of hardware (called a programmer) in order to load a
new code onto the board. You can simply use a USB cable.
•The Arduino IDE uses a simplified version of C++, making it easier to
learn to program.
• Arduino provides a standard form factor that breaks the functions of the
micro-controller into a more accessible package.
Arduino programs are written in the Arduino Integrated Development
Environment (IDE). Arduino IDE is a special software running on your system
that allows you to write sketches (synonym for program in Arduino language)
for different Arduino boards. The Arduino programming language is based on a
very simple hardware programming language called processing, which is
similar to the C language. After the sketch is written in the Arduino IDE, it
should be uploaded on the Arduino board for execution.
Arduino programming Concepts
Main parts
• Structure
•Values (variables and constants) 
•Functions. 
structure consist of two main functions −
Setup( ) function
Loop( ) function
Void setup ( ) {
 
}
PURPOSE − The setup() function is called when a sketch starts. Use it to initialize the
variables, pin modes, start using libraries, etc. The setup function will only run once, after
each power up or reset of the Arduino board.
INPUT − -
OUTPUT − -
RETURN − -
Void Loop ( ) {
 
}
PURPOSE − After creating a setup() function, which initializes and sets the initial
values, the loop() function does precisely what its name suggests, and loops
consecutively, allowing your program to change and respond. Use it to actively control
the Arduino board.
INPUT − -
OUTPUT − -
Structure
Void
The void keyword is used only in function
declarations. It indicates that the function is
expected to return no information to the function
from which it was called.
Variables in C programming language, which Arduino uses, have a property called
scope. A scope is a region of the program and there are three places where
variables can be declared. They are −
Inside a function or a block, which is called local variables.
In the definition of function parameters, which is called formal parameters.
Outside of all functions, which is called global variables.
Variables
Functions allow structuring the programs in segments of code to perform individual
tasks. The typical case for creating a function is when one needs to perform the same
action multiple times in a program.
Function
There are two required functions in an Arduino sketch or a program i.e. setup () and
loop(). Other functions must be created outside the brackets of these two functions.
The most common syntax to define a function is −
Control Statements
S.NO Control Statement & Description
1
If statement: It takes an expression in parenthesis and a statement
or block of statements. If the expression is true then the statement
or block of statements gets executed otherwise these statements
are skipped.
2
If …else statement: An if statement can be followed by an optional
else statement, which executes when the expression is false.
3
If…else if …else statement: The if statement can be followed by an
optional else if...else statement, which is very useful to test various
conditions using single if...else if statement.
4
switch case statement: Similar to the if
statements, switch...case controls the flow of programs by allowing
the programmers to specify different codes that should be executed
in various conditions.
5
Conditional Operator ? :The conditional operator ? : is the only
ternary operator in C.
THANK YOU

More Related Content

PPTX
Introduction to arduino
PDF
Business Model
PDF
Introduction to Arduino Programming
PPTX
Arduino IDE
PPTX
Raspberry pi complete setup
PDF
Reverse Engineering
PDF
Arduino- Serial communication
PPTX
Robotics presentation
Introduction to arduino
Business Model
Introduction to Arduino Programming
Arduino IDE
Raspberry pi complete setup
Reverse Engineering
Arduino- Serial communication
Robotics presentation

What's hot (20)

PPTX
microcontroller vs microprocessor
PDF
1. Introduction to Embedded Systems & IoT
PPTX
Introduction to Arduino Hardware and Programming
PPTX
PPT ON Arduino
PDF
Arduino Workshop Day 1 - Basic Arduino
PDF
Esp8266 basics
PPS
What is Arduino ?
PPT
Arduino
PDF
Arduino programming part1
PPTX
ARM Processors
PPT
Embedded System Presentation
PPTX
Basics of arduino uno
PPTX
PIC Microcontrollers
PPT
Intro to Arduino
PPTX
Wi-Fi Esp8266 nodemcu
PPTX
Arduino and its hw architecture
PDF
Unit II Arm 7 Introduction
PPTX
Introduction to FPGAs
PPTX
Introduction to Arduino
microcontroller vs microprocessor
1. Introduction to Embedded Systems & IoT
Introduction to Arduino Hardware and Programming
PPT ON Arduino
Arduino Workshop Day 1 - Basic Arduino
Esp8266 basics
What is Arduino ?
Arduino
Arduino programming part1
ARM Processors
Embedded System Presentation
Basics of arduino uno
PIC Microcontrollers
Intro to Arduino
Wi-Fi Esp8266 nodemcu
Arduino and its hw architecture
Unit II Arm 7 Introduction
Introduction to FPGAs
Introduction to Arduino
Ad

Similar to Arduino IDE (20)

DOCX
Arduino and Circuits.docx
PPTX
Ch_2_8,9,10.pptx
DOCX
Lab Manual Arduino UNO Microcontrollar.docx
PPTX
Microcontroller Programming & Hardware Introduction
PPTX
Programming with arduino
PPT
Embedded system programming using Arduino microcontroller
PDF
Lab 2_ Programming an Arduino.pdf
PPTX
Fund. of IoT LAB - CO 252.pptx
PDF
arduinocourse-180308074529 (1).pdf
PPTX
Arduino course
PPTX
6-MicrocontrollersSystemLessonOneSix.pptx
PPTX
Introduction to Arduino.pptx
PDF
Lesson-4-Arduino-Programming-dsBasics.pdf
PPTX
Arduino & NodeMcu
PDF
Report on arduino
PPTX
Getting Started with the NodeMCU- NodeMCU Programming (By Akshet Patel)
PDF
arduino
PDF
Ardx eg-spar-web-rev10
PDF
Getting Started With Arduino_Tutorial
Arduino and Circuits.docx
Ch_2_8,9,10.pptx
Lab Manual Arduino UNO Microcontrollar.docx
Microcontroller Programming & Hardware Introduction
Programming with arduino
Embedded system programming using Arduino microcontroller
Lab 2_ Programming an Arduino.pdf
Fund. of IoT LAB - CO 252.pptx
arduinocourse-180308074529 (1).pdf
Arduino course
6-MicrocontrollersSystemLessonOneSix.pptx
Introduction to Arduino.pptx
Lesson-4-Arduino-Programming-dsBasics.pdf
Arduino & NodeMcu
Report on arduino
Getting Started with the NodeMCU- NodeMCU Programming (By Akshet Patel)
arduino
Ardx eg-spar-web-rev10
Getting Started With Arduino_Tutorial
Ad

More from Mrunal Deshkar (10)

PDF
Serial communication
PDF
LCD interfacing with arduino
PDF
Arduino Interfacing LED
PDF
Atmega 328p
PDF
Embedded system and its platforms
PDF
Overview of microcontroller and microprocessor
PDF
Bode plot
PDF
Nyquist plot
PDF
Polar plot
PDF
Frequency response analysis I
Serial communication
LCD interfacing with arduino
Arduino Interfacing LED
Atmega 328p
Embedded system and its platforms
Overview of microcontroller and microprocessor
Bode plot
Nyquist plot
Polar plot
Frequency response analysis I

Recently uploaded (20)

PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Cell Types and Its function , kingdom of life
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Institutional Correction lecture only . . .
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Insiders guide to clinical Medicine.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Lesson notes of climatology university.
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Microbial disease of the cardiovascular and lymphatic systems
Renaissance Architecture: A Journey from Faith to Humanism
Cell Types and Its function , kingdom of life
Anesthesia in Laparoscopic Surgery in India
STATICS OF THE RIGID BODIES Hibbelers.pdf
Classroom Observation Tools for Teachers
human mycosis Human fungal infections are called human mycosis..pptx
Institutional Correction lecture only . . .
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Pre independence Education in Inndia.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
RMMM.pdf make it easy to upload and study
Sports Quiz easy sports quiz sports quiz
Microbial diseases, their pathogenesis and prophylaxis
Insiders guide to clinical Medicine.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Lesson notes of climatology university.
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx

Arduino IDE

  • 1. -- by Prof. M.K.Deshkar Arduino IDE
  • 2. Arduino is a prototype platform (open-source) based on an easy-to-use hardware and software. It consists of a circuit board, which can be programed (referred to as a microcontroller) and a ready-made software called Arduino IDE (Integrated Development Environment), which is used to write and upload the computer code to the physical board. The key features are − •Arduino boards are able to read analog or digital input signals from different sensors and turn it into an output such as activating a motor, turning LED on/off, connect to the cloud and many other actions. •control your board functions by sending a set of instructions to the microcontroller on the board via Arduino IDE (referred to as uploading software). •Unlike most previous programmable circuit boards, Arduino does not need an extra piece of hardware (called a programmer) in order to load a new code onto the board. You can simply use a USB cable. •The Arduino IDE uses a simplified version of C++, making it easier to learn to program. • Arduino provides a standard form factor that breaks the functions of the micro-controller into a more accessible package.
  • 3. Arduino programs are written in the Arduino Integrated Development Environment (IDE). Arduino IDE is a special software running on your system that allows you to write sketches (synonym for program in Arduino language) for different Arduino boards. The Arduino programming language is based on a very simple hardware programming language called processing, which is similar to the C language. After the sketch is written in the Arduino IDE, it should be uploaded on the Arduino board for execution. Arduino programming Concepts Main parts • Structure •Values (variables and constants)  •Functions. 
  • 4. structure consist of two main functions − Setup( ) function Loop( ) function Void setup ( ) {   } PURPOSE − The setup() function is called when a sketch starts. Use it to initialize the variables, pin modes, start using libraries, etc. The setup function will only run once, after each power up or reset of the Arduino board. INPUT − - OUTPUT − - RETURN − - Void Loop ( ) {   } PURPOSE − After creating a setup() function, which initializes and sets the initial values, the loop() function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond. Use it to actively control the Arduino board. INPUT − - OUTPUT − - Structure Void The void keyword is used only in function declarations. It indicates that the function is expected to return no information to the function from which it was called.
  • 5. Variables in C programming language, which Arduino uses, have a property called scope. A scope is a region of the program and there are three places where variables can be declared. They are − Inside a function or a block, which is called local variables. In the definition of function parameters, which is called formal parameters. Outside of all functions, which is called global variables. Variables
  • 6. Functions allow structuring the programs in segments of code to perform individual tasks. The typical case for creating a function is when one needs to perform the same action multiple times in a program. Function There are two required functions in an Arduino sketch or a program i.e. setup () and loop(). Other functions must be created outside the brackets of these two functions. The most common syntax to define a function is −
  • 7. Control Statements S.NO Control Statement & Description 1 If statement: It takes an expression in parenthesis and a statement or block of statements. If the expression is true then the statement or block of statements gets executed otherwise these statements are skipped. 2 If …else statement: An if statement can be followed by an optional else statement, which executes when the expression is false. 3 If…else if …else statement: The if statement can be followed by an optional else if...else statement, which is very useful to test various conditions using single if...else if statement. 4 switch case statement: Similar to the if statements, switch...case controls the flow of programs by allowing the programmers to specify different codes that should be executed in various conditions. 5 Conditional Operator ? :The conditional operator ? : is the only ternary operator in C.