SlideShare a Scribd company logo
1 of 26
Introduction To Arduino
Masudur Rahman Sourav,
ID : IT-19025,
Session :2018-19,
MBSTU 1
What is Arduino ?
2
Arduino is an open-source electronics platform
based on easy-to-use hardware and software.
3
What is
● Open hardware ?
● Open software ?
● Arduino ?
4
Open Hardware
"Open hardware" or "open source
hardware," refers to the design
specifications of a physical object
which are licensed in such a way
that said object can be studied,
modified, created, and distributed by
anyone. "Open hardware" is a set of
design principles and legal practices,
not a specific type of object.
5
Open Software
Open-source software is computer
software that is released under a
license in which the copyright holder
grants users the rights to use, study,
change, and distribute the software
and its source code to anyone and for
any purpose. Open-source software
may be developed in a collaborative
public manner.
6
7
8
“Strong Friend” Created in Ivrea, Italy
in 2005 by Massimo Banzi & David Cuartielles
Processor
Coding is accessible & transferrable (C++, java)
Arduino boards are able to read inputs
- light on a sensor, a finger on a
button, or a Twitter message - and
turn it into an output - activating a
motor, turning on an LED, publishing
something online and much more ……..
9
Types of Arduino :
10
11
Getting Started with Arduino :
12
Arduino Mega
The Arduino Mega 2560 is a microcontroller board based on the
ATmega2560. It has 54 digital input/output pins (of which 15 can
be used as PWM outputs).
FLASH MEMORY : 256 KB of which 8 KB used by bootloader
SRAM : 8 KB
CLOCK SPEED : 16 MHz
13
Arduino Mega
14
Arduino Mega
15
Fig : Functional Pins of Arduino Mega
Installation
For giving instructions to our board we have to code for Arduino and
have to upload the code to our board . For writing and uploading the
code we have to download a software (Arduino IDE) and have to
install in our Desktop/Laptop . The software download link :
https://www.arduino.cc/en/software
16
Arduino Coding :
17
Data Types
Integer : used with integer variables with value between 2147483647 and -
2147483647.
Ex: int x=1200;
Character: used with single character, represent value from - 127 to 128.
Ex: char c=‘r’;
Long: Long variables are extended size variables for number storage, and store 32
bits (4 bytes), from -2,147,483,648 to 2,147,483,647.
Ex. long u=199203;
Floating-point: Numbers can be as large as 3.4028235E+38 and as low as -
3.4028235E+38. They are stored as 32 bits (4 bytes) of information.
Ex. float num=1.291;
18
Statement and Operators
Statement represents a command, it ends with ;
Ex: int x;
x=13;
Operators are symbols that used to indicate a specific function:
- Math operators: [+,-,*,/,%,^]
- Logic operators: [==, !=, &&, ||]
- Comparison operators: [==, >, <, !=, <=, >=]
Syntax:
; Semicolon,
{} curly braces,
//single line comment,
/*Multi-line comments*/
19
Statement and Operators
Compound Operators:
++ (increment)
-- (decrement)
+= (compound addition)
-= (compound subtraction)
*= (compound multiplication)
/= (compound division)
20
Control statements
If Conditioning:
if(condition) {
Statements-1;
… Statement-N;
}
else if(condition2) {
Statements;
}
else{
Statements;
}
21
Control statements
Switch case:
switch (var) {
case 1: //do something when var equals 1
break;
case 2: //do something when var equals 2
break;
default: // if nothing else matches, do the default // default is optional
}
22
Loop statements
Do… while:
do {
Statements;
} while(condition); // the statements are run at least once.
While:
while(condition) {
Statements;
}
For:
for (int i=0; i <= val; i++){
statements;
}
23
Loop statements
Do… while:
do {
Statements;
} while(condition); // the statements are run at least once.
While:
while(condition) {
Statements;
}
For:
for (int i=0; i <= val; i++){
statements;
}
24
Code structure
Void setup(){}
//Used to indicate the initial values of system on starting.
Void loop(){}
//Contains the statements that will run whenever the system is
powered after setup.
25
26
The End

More Related Content

Similar to Introduction to Arduino

Similar to Introduction to Arduino (20)

Winter traning arduino report final
Winter traning arduino report finalWinter traning arduino report final
Winter traning arduino report final
 
RAHUL NASKAR IOT.ppt
RAHUL NASKAR IOT.pptRAHUL NASKAR IOT.ppt
RAHUL NASKAR IOT.ppt
 
Arduino Programming Software Development
Arduino Programming Software DevelopmentArduino Programming Software Development
Arduino Programming Software Development
 
Report on arduino
Report on arduinoReport on arduino
Report on arduino
 
IEEE College of Technology MAES SE 2020 - Coding Fun
IEEE College of Technology MAES SE 2020 - Coding FunIEEE College of Technology MAES SE 2020 - Coding Fun
IEEE College of Technology MAES SE 2020 - Coding Fun
 
A Project Report On Heartbeat Sensor using Arduino.pdf
A Project Report On Heartbeat Sensor using Arduino.pdfA Project Report On Heartbeat Sensor using Arduino.pdf
A Project Report On Heartbeat Sensor using Arduino.pdf
 
PIR sensing with arduino
PIR sensing  with  arduinoPIR sensing  with  arduino
PIR sensing with arduino
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
 
The arduino and iot
The arduino and iotThe arduino and iot
The arduino and iot
 
ESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started GuideESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started Guide
 
Advanced View Arduino Projects List - Use Arduino for Projects-2.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-2.pdfAdvanced View Arduino Projects List - Use Arduino for Projects-2.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-2.pdf
 
Arduino Teaching Program
Arduino Teaching ProgramArduino Teaching Program
Arduino Teaching Program
 
What is arduino
What is arduinoWhat is arduino
What is arduino
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Arduino by yogesh t s'
Arduino by yogesh t s'Arduino by yogesh t s'
Arduino by yogesh t s'
 
Taller IoT en la Actualidad
Taller IoT en la ActualidadTaller IoT en la Actualidad
Taller IoT en la Actualidad
 
Aurdino presentation
Aurdino presentationAurdino presentation
Aurdino presentation
 
Towards secure smart cities: design and implementation of smart home digital ...
Towards secure smart cities: design and implementation of smart home digital ...Towards secure smart cities: design and implementation of smart home digital ...
Towards secure smart cities: design and implementation of smart home digital ...
 
B1_25Jan21.pptx
B1_25Jan21.pptxB1_25Jan21.pptx
B1_25Jan21.pptx
 
Microcontroller arduino uno board
Microcontroller arduino uno boardMicrocontroller arduino uno board
Microcontroller arduino uno board
 

Recently uploaded

Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Lovely Professional University
 
Teachers record management system project report..pdf
Teachers record management system project report..pdfTeachers record management system project report..pdf
Teachers record management system project report..pdf
Kamal Acharya
 
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DrGurudutt
 

Recently uploaded (20)

Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGBRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
Introduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and ApplicationsIntroduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and Applications
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission line
 
Artificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian ReasoningArtificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian Reasoning
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdf
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent Acts
 
Introduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AIIntroduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AI
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
 
Lesson no16 application of Induction Generator in Wind.ppsx
Lesson no16 application of Induction Generator in Wind.ppsxLesson no16 application of Induction Generator in Wind.ppsx
Lesson no16 application of Induction Generator in Wind.ppsx
 
Lab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docxLab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docx
 
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
 
Online book store management system project.pdf
Online book store management system project.pdfOnline book store management system project.pdf
Online book store management system project.pdf
 
Teachers record management system project report..pdf
Teachers record management system project report..pdfTeachers record management system project report..pdf
Teachers record management system project report..pdf
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
 
Dairy management system project report..pdf
Dairy management system project report..pdfDairy management system project report..pdf
Dairy management system project report..pdf
 
E-Commerce Shopping using MERN Stack where different modules are present
E-Commerce Shopping using MERN Stack where different modules are presentE-Commerce Shopping using MERN Stack where different modules are present
E-Commerce Shopping using MERN Stack where different modules are present
 
ROAD CONSTRUCTION PRESENTATION.PPTX.pptx
ROAD CONSTRUCTION PRESENTATION.PPTX.pptxROAD CONSTRUCTION PRESENTATION.PPTX.pptx
ROAD CONSTRUCTION PRESENTATION.PPTX.pptx
 

Introduction to Arduino

  • 1. Introduction To Arduino Masudur Rahman Sourav, ID : IT-19025, Session :2018-19, MBSTU 1
  • 3. Arduino is an open-source electronics platform based on easy-to-use hardware and software. 3
  • 4. What is ● Open hardware ? ● Open software ? ● Arduino ? 4
  • 5. Open Hardware "Open hardware" or "open source hardware," refers to the design specifications of a physical object which are licensed in such a way that said object can be studied, modified, created, and distributed by anyone. "Open hardware" is a set of design principles and legal practices, not a specific type of object. 5
  • 6. Open Software Open-source software is computer software that is released under a license in which the copyright holder grants users the rights to use, study, change, and distribute the software and its source code to anyone and for any purpose. Open-source software may be developed in a collaborative public manner. 6
  • 7. 7
  • 8. 8 “Strong Friend” Created in Ivrea, Italy in 2005 by Massimo Banzi & David Cuartielles Processor Coding is accessible & transferrable (C++, java)
  • 9. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing something online and much more …….. 9
  • 11. 11
  • 12. Getting Started with Arduino : 12
  • 13. Arduino Mega The Arduino Mega 2560 is a microcontroller board based on the ATmega2560. It has 54 digital input/output pins (of which 15 can be used as PWM outputs). FLASH MEMORY : 256 KB of which 8 KB used by bootloader SRAM : 8 KB CLOCK SPEED : 16 MHz 13
  • 15. Arduino Mega 15 Fig : Functional Pins of Arduino Mega
  • 16. Installation For giving instructions to our board we have to code for Arduino and have to upload the code to our board . For writing and uploading the code we have to download a software (Arduino IDE) and have to install in our Desktop/Laptop . The software download link : https://www.arduino.cc/en/software 16
  • 18. Data Types Integer : used with integer variables with value between 2147483647 and - 2147483647. Ex: int x=1200; Character: used with single character, represent value from - 127 to 128. Ex: char c=‘r’; Long: Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from -2,147,483,648 to 2,147,483,647. Ex. long u=199203; Floating-point: Numbers can be as large as 3.4028235E+38 and as low as - 3.4028235E+38. They are stored as 32 bits (4 bytes) of information. Ex. float num=1.291; 18
  • 19. Statement and Operators Statement represents a command, it ends with ; Ex: int x; x=13; Operators are symbols that used to indicate a specific function: - Math operators: [+,-,*,/,%,^] - Logic operators: [==, !=, &&, ||] - Comparison operators: [==, >, <, !=, <=, >=] Syntax: ; Semicolon, {} curly braces, //single line comment, /*Multi-line comments*/ 19
  • 20. Statement and Operators Compound Operators: ++ (increment) -- (decrement) += (compound addition) -= (compound subtraction) *= (compound multiplication) /= (compound division) 20
  • 21. Control statements If Conditioning: if(condition) { Statements-1; … Statement-N; } else if(condition2) { Statements; } else{ Statements; } 21
  • 22. Control statements Switch case: switch (var) { case 1: //do something when var equals 1 break; case 2: //do something when var equals 2 break; default: // if nothing else matches, do the default // default is optional } 22
  • 23. Loop statements Do… while: do { Statements; } while(condition); // the statements are run at least once. While: while(condition) { Statements; } For: for (int i=0; i <= val; i++){ statements; } 23
  • 24. Loop statements Do… while: do { Statements; } while(condition); // the statements are run at least once. While: while(condition) { Statements; } For: for (int i=0; i <= val; i++){ statements; } 24
  • 25. Code structure Void setup(){} //Used to indicate the initial values of system on starting. Void loop(){} //Contains the statements that will run whenever the system is powered after setup. 25