SlideShare a Scribd company logo
2
Most read
3
Most read
6
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

What's hot (20)

PPTX
Ardui no
Amol Sakhalkar
 
PPS
What is Arduino ?
Niket Chandrawanshi
 
PPTX
Introduction to Arduino
Omer Kilic
 
PPT
Arduino
vipin7vj
 
PPT
Embedded System Basics
Dr M Muruganandam Masilamani
 
PPTX
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Gaurav Pandey
 
PPTX
Arduino
Jerin John
 
ODP
Introduction to Arduino
Richard Rixham
 
PPT
ARDUINO AND ITS PIN CONFIGURATION
soma saikiran
 
PPTX
Lesson sample introduction to arduino
Betsy Eng
 
PPTX
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
PPT
Intro to Arduino
avikdhupar
 
PPTX
Basics of arduino uno
Rahat Sood
 
PPTX
Introduction to Arduino
Yong Heui Cho
 
PPTX
Arduino Microcontroller
Shyam Mohan
 
PDF
Introduction to Arduino Programming
James Lewis
 
PPT
arduino
jhcid
 
PPT
Arduino presentation by_warishusain
student
 
PDF
Arduino Workshop Day 2 - Advance Arduino & DIY
Vishnu
 
Ardui no
Amol Sakhalkar
 
What is Arduino ?
Niket Chandrawanshi
 
Introduction to Arduino
Omer Kilic
 
Arduino
vipin7vj
 
Embedded System Basics
Dr M Muruganandam Masilamani
 
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Gaurav Pandey
 
Arduino
Jerin John
 
Introduction to Arduino
Richard Rixham
 
ARDUINO AND ITS PIN CONFIGURATION
soma saikiran
 
Lesson sample introduction to arduino
Betsy Eng
 
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
Intro to Arduino
avikdhupar
 
Basics of arduino uno
Rahat Sood
 
Introduction to Arduino
Yong Heui Cho
 
Arduino Microcontroller
Shyam Mohan
 
Introduction to Arduino Programming
James Lewis
 
arduino
jhcid
 
Arduino presentation by_warishusain
student
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Vishnu
 

Similar to Arduino IDE (20)

PPTX
Ch_2_8,9,10.pptx
yosikit826
 
PDF
Lesson-4-Arduino-Programming-dsBasics.pdf
unicaeli2020
 
DOCX
Arduino and Circuits.docx
Ajay578679
 
PDF
Intro to Arduino Programming.pdf
HimanshuDon1
 
PPT
Arduino Platform with C programming.
Govind Jha
 
PPTX
Introduction to Arduino Microcontroller
Mujahid Hussain
 
PPTX
Q2 Arduino Draft Q2 Arduino Draft Q2 Arduino Draft
Kameshvra Dela Cruz
 
PPSX
Arduino by yogesh t s'
tsyogesh46
 
PPTX
ARUDINO-7.pptx
Kaushik Mohanty
 
PDF
Arduino - Module 1.pdf
razonclarence4
 
DOCX
Winter traning arduino report final
Govind Jha
 
PDF
Introduction to Arduino
Damien Magoni
 
PDF
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
Jayanthi Kannan MK
 
PDF
Arduino for Beginners
Sarwan Singh
 
PPTX
Fund. of IoT LAB - CO 252.pptx
y22co015
 
PPTX
Microcontroller Programming & Hardware Introduction
Joseph Sanchez
 
PDF
Arduino: Arduino starter kit
SANTIAGO PABLO ALBERTO
 
PDF
arduino
murbz
 
PDF
[Apostila] programação arduíno brian w. evans
Web-Desegner
 
PPTX
Introduction to Arduino
MasudurRahmanSourav
 
Ch_2_8,9,10.pptx
yosikit826
 
Lesson-4-Arduino-Programming-dsBasics.pdf
unicaeli2020
 
Arduino and Circuits.docx
Ajay578679
 
Intro to Arduino Programming.pdf
HimanshuDon1
 
Arduino Platform with C programming.
Govind Jha
 
Introduction to Arduino Microcontroller
Mujahid Hussain
 
Q2 Arduino Draft Q2 Arduino Draft Q2 Arduino Draft
Kameshvra Dela Cruz
 
Arduino by yogesh t s'
tsyogesh46
 
ARUDINO-7.pptx
Kaushik Mohanty
 
Arduino - Module 1.pdf
razonclarence4
 
Winter traning arduino report final
Govind Jha
 
Introduction to Arduino
Damien Magoni
 
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
Jayanthi Kannan MK
 
Arduino for Beginners
Sarwan Singh
 
Fund. of IoT LAB - CO 252.pptx
y22co015
 
Microcontroller Programming & Hardware Introduction
Joseph Sanchez
 
Arduino: Arduino starter kit
SANTIAGO PABLO ALBERTO
 
arduino
murbz
 
[Apostila] programação arduíno brian w. evans
Web-Desegner
 
Introduction to Arduino
MasudurRahmanSourav
 
Ad

More from Mrunal Deshkar (10)

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

Recently uploaded (20)

PPTX
Connecting Linear and Angular Quantities in Human Movement.pptx
AngeliqueTolentinoDe
 
PPTX
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
PDF
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
 
PPTX
ENGLISH 8 REVISED K-12 CURRICULUM QUARTER 1 WEEK 1
LeomarrYsraelArzadon
 
PPTX
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
PPTX
Building Powerful Agentic AI with Google ADK, MCP, RAG, and Ollama.pptx
Tamanna36
 
PDF
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
 
PDF
Supply Chain Security A Comprehensive Approach 1st Edition Arthur G. Arway
rxgnika452
 
PPTX
Lesson 1 Cell (Structures, Functions, and Theory).pptx
marvinnbustamante1
 
PPTX
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
PPTX
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
PPTX
Elo the Hero is an story about a young boy who became hero.
TeacherEmily1
 
PPTX
MATH 8 QUARTER 1 WEEK 1 LESSON 2 PRESENTATION
JohnGuillerNestalBah1
 
PDF
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PDF
Cooperative wireless communications 1st Edition Yan Zhang
jsphyftmkb123
 
PPTX
Parsing HTML read and write operations and OS Module.pptx
Ramakrishna Reddy Bijjam
 
PDF
Nanotechnology and Functional Foods Effective Delivery of Bioactive Ingredien...
rmswlwcxai8321
 
PDF
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
PDF
Quiz Night Live May 2025 - Intra Pragya Online General Quiz
Pragya - UEM Kolkata Quiz Club
 
Connecting Linear and Angular Quantities in Human Movement.pptx
AngeliqueTolentinoDe
 
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
 
ENGLISH 8 REVISED K-12 CURRICULUM QUARTER 1 WEEK 1
LeomarrYsraelArzadon
 
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
Building Powerful Agentic AI with Google ADK, MCP, RAG, and Ollama.pptx
Tamanna36
 
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
 
Supply Chain Security A Comprehensive Approach 1st Edition Arthur G. Arway
rxgnika452
 
Lesson 1 Cell (Structures, Functions, and Theory).pptx
marvinnbustamante1
 
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
Elo the Hero is an story about a young boy who became hero.
TeacherEmily1
 
MATH 8 QUARTER 1 WEEK 1 LESSON 2 PRESENTATION
JohnGuillerNestalBah1
 
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
Cooperative wireless communications 1st Edition Yan Zhang
jsphyftmkb123
 
Parsing HTML read and write operations and OS Module.pptx
Ramakrishna Reddy Bijjam
 
Nanotechnology and Functional Foods Effective Delivery of Bioactive Ingredien...
rmswlwcxai8321
 
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
Quiz Night Live May 2025 - Intra Pragya Online General Quiz
Pragya - UEM Kolkata Quiz Club
 

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.