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
PPTX
Introduction to Arduino.pptx
PPTX
Arduino : how to get started
PPTX
Introduction to Arduino
PPTX
Arduino Functions
PPTX
Arduino Interfacing with different sensors and motor
PPTX
Introduction to Arduino Microcontroller
PPTX
Arduino Workshop
Introduction to Arduino
Introduction to Arduino.pptx
Arduino : how to get started
Introduction to Arduino
Arduino Functions
Arduino Interfacing with different sensors and motor
Introduction to Arduino Microcontroller
Arduino Workshop

What's hot (20)

PPTX
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
PDF
Arduino Workshop Day 1 - Basic Arduino
PPTX
Introduction to Arduino Hardware and Programming
PPTX
Arduino slides
PPT
Embedded System Basics
PPT
Arduino
PDF
Arduino Workshop Day 2 - Advance Arduino & DIY
PPTX
Basics of arduino uno
PPTX
Ardui no
PPT
Intro to Arduino
PPTX
Wi-Fi Esp8266 nodemcu
PPTX
Microcontoller and Embedded System
PDF
Arduino Lecture 1 - Introducing the Arduino
PDF
Arduino presentation
PPT
Sensors and actuators
PPTX
Serial Communication in 8051
PDF
Embedded system introduction - Arduino Course
PPS
Arduino Uno Pin Description
PDF
ARM CORTEX M3 PPT
PPTX
Introduction to the Arduino
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino Workshop Day 1 - Basic Arduino
Introduction to Arduino Hardware and Programming
Arduino slides
Embedded System Basics
Arduino
Arduino Workshop Day 2 - Advance Arduino & DIY
Basics of arduino uno
Ardui no
Intro to Arduino
Wi-Fi Esp8266 nodemcu
Microcontoller and Embedded System
Arduino Lecture 1 - Introducing the Arduino
Arduino presentation
Sensors and actuators
Serial Communication in 8051
Embedded system introduction - Arduino Course
Arduino Uno Pin Description
ARM CORTEX M3 PPT
Introduction to the Arduino
Ad

Similar to Arduino IDE (20)

PPTX
Ch_2_8,9,10.pptx
PDF
Lesson-4-Arduino-Programming-dsBasics.pdf
DOCX
Arduino and Circuits.docx
PDF
Intro to Arduino Programming.pdf
PPT
Arduino Platform with C programming.
PPT
Arduino presentation by_warishusain
PPTX
Q2 Arduino Draft Q2 Arduino Draft Q2 Arduino Draft
PPSX
Arduino by yogesh t s'
PPTX
ARUDINO-7.pptx
PDF
Arduino - Module 1.pdf
DOCX
Winter traning arduino report final
PDF
Introduction to Arduino
PDF
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
PDF
Arduino for Beginners
PPTX
Fund. of IoT LAB - CO 252.pptx
PPTX
Microcontroller Programming & Hardware Introduction
PDF
Arduino: Arduino starter kit
PDF
arduino
PDF
[Apostila] programação arduíno brian w. evans
PPTX
Introduction to Arduino
Ch_2_8,9,10.pptx
Lesson-4-Arduino-Programming-dsBasics.pdf
Arduino and Circuits.docx
Intro to Arduino Programming.pdf
Arduino Platform with C programming.
Arduino presentation by_warishusain
Q2 Arduino Draft Q2 Arduino Draft Q2 Arduino Draft
Arduino by yogesh t s'
ARUDINO-7.pptx
Arduino - Module 1.pdf
Winter traning arduino report final
Introduction to Arduino
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
Arduino for Beginners
Fund. of IoT LAB - CO 252.pptx
Microcontroller Programming & Hardware Introduction
Arduino: Arduino starter kit
arduino
[Apostila] programação arduíno brian w. evans
Introduction to Arduino
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
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
PPTX
How to Manage Starshipit in Odoo 18 - Odoo Slides
DOCX
UPPER GASTRO INTESTINAL DISORDER.docx
PDF
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Open Quiz Monsoon Mind Game Final Set.pptx
PDF
English Language Teaching from Post-.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
PPTX
Onica Farming 24rsclub profitable farm business
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
PPTX
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
O5-L3 Freight Transport Ops (International) V1.pdf
human mycosis Human fungal infections are called human mycosis..pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
How to Manage Starshipit in Odoo 18 - Odoo Slides
UPPER GASTRO INTESTINAL DISORDER.docx
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Renaissance Architecture: A Journey from Faith to Humanism
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Open Quiz Monsoon Mind Game Final Set.pptx
English Language Teaching from Post-.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
Onica Farming 24rsclub profitable farm business
Pharma ospi slides which help in ospi learning
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.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.