SlideShare a Scribd company logo
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

CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
Kamal Acharya
 
School management system project report.pdf
School management system project report.pdfSchool management system project report.pdf
School management system project report.pdf
Kamal Acharya
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
Kamal Acharya
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
Atif Razi
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
Kamal Acharya
 

Recently uploaded (20)

Peek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdfPeek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
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
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 
School management system project report.pdf
School management system project report.pdfSchool management system project report.pdf
School management system project report.pdf
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdf
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.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