SlideShare a Scribd company logo
Arduino
an Introduction
Eng. : Mohamed ElKenany
Contoso
S u i t e s
2
 A microcontroller board, contains on-board power supply, USB port to
communicate with PC, and an Atmel microcontroller chip
Arduino:-
 It simplify the process of creating any control
system by providing the standard board that
can be programmed and connected to the system
without the need to any sophisticated PCB design
and implementation
 It is an open source hardware, any one can
get the details of its design and modify it or
make his own one himself
Contoso
S u i t e s
3
Data type:-
 Used for declaring variables or functions of different types.
 The type of a variable determines how much space it occupies in the storage
and how the bit pattern stored is interpreted
 Void
 Only in function declarations indicates that the function return no information
 EX : Void Loop ( )
{ // rest of the code
}
Contoso
S u i t e s
4
Data type:-
 Boolean
 one of two values, true or false. Each Boolean variable occupies one byte of
memory.
 EX : boolean val = false
boolean state = true ;
 Char
 Takes up one byte of memory
 stores a character value
 (Char) single quotes ‘A’
 (strings) double quotes: "ABC"
 EX : Char chr_a = ‘a’
Char chr_c = 97 ;
Contoso
S u i t e s
5
Data type:-
 unsigned char
 unsigned data type that occupies one byte of memory
 The unsigned char data type encodes numbers from 0 to 255.
 EX :
 byte
 A byte stores an 8-bit unsigned number, from 0 to 255.
 EX :
Unsigned Char chr = 121 ;
byte var = 25 ;
 Int
 EX : Int var = 50 ; The primary data-type for number storage.
 Int stores a 16-bit (2-byte) value ,This yields
a range of -32,768 to 32,767
 The int size varies from board to board
int counter = 32
Contoso
S u i t e s
6
Data type:-
 Unsigned int
 store a 2 byte value.
 Instead of storing negative numbers,, only store positive values,
 yielding a useful range of 0 to 65,535 (2^16) - 1)..
 EX : Unsigned int var = 121 ;
 Word
 EX : Word var = 100 ;
 stores a 16-bit unsigned number.
 On the Due and Zero, it stores a 32-bit unsigned number
int counter = 32
 Long
 EX : Long var = 554 ;
 store 32 bits (4 bytes), from -2,147,483,648 to
Contoso
S u i t e s
7
Data type:-
 Unsigned Long
 Number storage and store 32 bits (4 bytes).
 range from 0 to 4,294,967,295 (2^32 - 1).
 EX : Unsigned long var = 545 ;
 Short
 EX : Short var = 82 ;
 short is a 16-bit data-type (2-byte) value.
 Range from -32,768 to 32,767.
int counter = 32
 float
 EX : float var = 52.54 ;
 Data type for floating-point number is a number that has a decimal point.
 used to approximate the analog and continuous values
 They are stored as 32 bits (4 bytes) of information.
Contoso
S u i t e s
8
Data type:-
 Double
 Double precision floating-point number occupies four bytes.
 exactly the same as the float.
 On the Arduino Due, doubles have 8-byte (64 bit) precision.
 EX : Double var = 545.21 ;
int counter = 32
Contoso
S u i t e s
9
Data type:-
Contoso
S u i t e s
10
Input :-
Contoso
S u i t e s
11
Input :-
Thank You
Mohamed El-Kenany
01094997870
muhamed.abdelghaffar@gmail.com

More Related Content

What's hot

Identification of ports & cables adapter cards
Identification of ports & cables adapter cardsIdentification of ports & cables adapter cards
Identification of ports & cables adapter cardsprakasa mani
 
Ports and connectors
Ports and connectorsPorts and connectors
Ports and connectors
chrispaul8676
 
 multiplexer 
 multiplexer  multiplexer 
 multiplexer 
rounak077
 
System Unit
System UnitSystem Unit
System Unit
Fareeha Jabeen
 
input output ports
input output portsinput output ports
input output ports
aslamslides
 
Arduino IDE
Arduino IDEArduino IDE
Arduino IDE
creatjet3d labs
 
Ports and Connectors
Ports and ConnectorsPorts and Connectors
Ports and Connectors
dipaknandankar
 
ESP8266 Wifi Nodemcu
ESP8266 Wifi Nodemcu ESP8266 Wifi Nodemcu
ESP8266 Wifi Nodemcu
creatjet3d labs
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Mahmoud Salheen
 
Comp ports
Comp portsComp ports
Comp ports
Archit Vora
 
Multiplexer & de multiplexer
Multiplexer & de multiplexerMultiplexer & de multiplexer
Multiplexer & de multiplexer
vishalgohel12195
 
Stm32 f4 first touch
Stm32 f4 first touchStm32 f4 first touch
Stm32 f4 first touch
Benux Wei
 
Parts of a Computer: Cables
Parts of a Computer: CablesParts of a Computer: Cables
Parts of a Computer: Cables
Luz Divina Alguno
 
multiplexer 4 input
multiplexer 4 inputmultiplexer 4 input
multiplexer 4 input
Ankit Mistry
 
Chapter 5 Questions
Chapter 5 QuestionsChapter 5 Questions
Chapter 5 Questionsguest1689620
 
Chapter 2- Ports and Connections A+ 801 802 PREP
Chapter 2- Ports and Connections A+ 801 802 PREPChapter 2- Ports and Connections A+ 801 802 PREP
Chapter 2- Ports and Connections A+ 801 802 PREP
Jessie Harris
 
Chapter 5 Processors
Chapter 5 ProcessorsChapter 5 Processors
Chapter 5 ProcessorsPatty Ramsey
 

What's hot (20)

Identification of ports & cables adapter cards
Identification of ports & cables adapter cardsIdentification of ports & cables adapter cards
Identification of ports & cables adapter cards
 
Ports and connectors
Ports and connectorsPorts and connectors
Ports and connectors
 
 multiplexer 
 multiplexer  multiplexer 
 multiplexer 
 
System Unit
System UnitSystem Unit
System Unit
 
input output ports
input output portsinput output ports
input output ports
 
Arduino IDE
Arduino IDEArduino IDE
Arduino IDE
 
Ports and Connectors
Ports and ConnectorsPorts and Connectors
Ports and Connectors
 
Sample computer
Sample computerSample computer
Sample computer
 
Ports of Mother Board
Ports of Mother BoardPorts of Mother Board
Ports of Mother Board
 
ESP8266 Wifi Nodemcu
ESP8266 Wifi Nodemcu ESP8266 Wifi Nodemcu
ESP8266 Wifi Nodemcu
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Comp ports
Comp portsComp ports
Comp ports
 
Multiplexer & de multiplexer
Multiplexer & de multiplexerMultiplexer & de multiplexer
Multiplexer & de multiplexer
 
Stm32 f4 first touch
Stm32 f4 first touchStm32 f4 first touch
Stm32 f4 first touch
 
Parts of a Computer: Cables
Parts of a Computer: CablesParts of a Computer: Cables
Parts of a Computer: Cables
 
multiplexer 4 input
multiplexer 4 inputmultiplexer 4 input
multiplexer 4 input
 
raushan
raushanraushan
raushan
 
Chapter 5 Questions
Chapter 5 QuestionsChapter 5 Questions
Chapter 5 Questions
 
Chapter 2- Ports and Connections A+ 801 802 PREP
Chapter 2- Ports and Connections A+ 801 802 PREPChapter 2- Ports and Connections A+ 801 802 PREP
Chapter 2- Ports and Connections A+ 801 802 PREP
 
Chapter 5 Processors
Chapter 5 ProcessorsChapter 5 Processors
Chapter 5 Processors
 

Similar to Arduino lec 2

Programming Fundamentals lecture 6
Programming Fundamentals lecture 6Programming Fundamentals lecture 6
Programming Fundamentals lecture 6
REHAN IJAZ
 
Bt0068 computer organization and architecture 2
Bt0068 computer organization and architecture 2Bt0068 computer organization and architecture 2
Bt0068 computer organization and architecture 2
Techglyphs
 
Renas Rajab Asaad
Renas Rajab AsaadRenas Rajab Asaad
Renas Rajab Asaad
Renas Rekany
 
N_Asm Assembly arithmetic instructions (sol)
N_Asm Assembly arithmetic instructions (sol)N_Asm Assembly arithmetic instructions (sol)
N_Asm Assembly arithmetic instructions (sol)
Selomon birhane
 
A combined approach using triple des and blowfish
A combined approach using triple des and blowfishA combined approach using triple des and blowfish
A combined approach using triple des and blowfish
eSAT Publishing House
 
A combined approach using triple des and blowfish research area
A combined approach using triple des and blowfish research areaA combined approach using triple des and blowfish research area
A combined approach using triple des and blowfish research area
eSAT Journals
 
Lesson 11. Pattern 3. Shift operations
Lesson 11. Pattern 3. Shift operationsLesson 11. Pattern 3. Shift operations
Lesson 11. Pattern 3. Shift operations
PVS-Studio
 
Data types
Data typesData types
Data types
nehajhala4
 
Enhancement of DES Algorithm with Multi State Logic
Enhancement of DES Algorithm with Multi State LogicEnhancement of DES Algorithm with Multi State Logic
Enhancement of DES Algorithm with Multi State Logic
IJORCS
 
02. Primitive Data Types and Variables
02. Primitive Data Types and Variables02. Primitive Data Types and Variables
02. Primitive Data Types and Variables
Intro C# Book
 
Data types in c++
Data types in c++ Data types in c++
Data types in c++
RushikeshGaikwad28
 
chap3.pdf
chap3.pdfchap3.pdf
chap3.pdf
NickySanthosh1
 
DConf 2016: Bitpacking Like a Madman by Amaury Sechet
DConf 2016: Bitpacking Like a Madman by Amaury SechetDConf 2016: Bitpacking Like a Madman by Amaury Sechet
DConf 2016: Bitpacking Like a Madman by Amaury Sechet
Andrei Alexandrescu
 
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxUNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
KaameshwaranKaameshw
 
Cryptographic Algorithms: DES and RSA
Cryptographic Algorithms: DES and RSACryptographic Algorithms: DES and RSA
Cryptographic Algorithms: DES and RSA
aritraranjan
 
Performance Analysis of Data Encryption Standard DES
Performance Analysis of Data Encryption Standard DESPerformance Analysis of Data Encryption Standard DES
Performance Analysis of Data Encryption Standard DES
ijtsrd
 
Theory1&2
Theory1&2Theory1&2
JAVA PROGRAMMING : Data types
JAVA PROGRAMMING : Data typesJAVA PROGRAMMING : Data types
JAVA PROGRAMMING : Data types
Kongu Engineering College, Perundurai, Erode
 
Module 1-ppt System programming
Module 1-ppt System programmingModule 1-ppt System programming
Module 1-ppt System programming
vishnu sankar
 

Similar to Arduino lec 2 (20)

Programming Fundamentals lecture 6
Programming Fundamentals lecture 6Programming Fundamentals lecture 6
Programming Fundamentals lecture 6
 
Bt0068 computer organization and architecture 2
Bt0068 computer organization and architecture 2Bt0068 computer organization and architecture 2
Bt0068 computer organization and architecture 2
 
Renas Rajab Asaad
Renas Rajab AsaadRenas Rajab Asaad
Renas Rajab Asaad
 
N_Asm Assembly arithmetic instructions (sol)
N_Asm Assembly arithmetic instructions (sol)N_Asm Assembly arithmetic instructions (sol)
N_Asm Assembly arithmetic instructions (sol)
 
A combined approach using triple des and blowfish
A combined approach using triple des and blowfishA combined approach using triple des and blowfish
A combined approach using triple des and blowfish
 
A combined approach using triple des and blowfish research area
A combined approach using triple des and blowfish research areaA combined approach using triple des and blowfish research area
A combined approach using triple des and blowfish research area
 
Lesson 11. Pattern 3. Shift operations
Lesson 11. Pattern 3. Shift operationsLesson 11. Pattern 3. Shift operations
Lesson 11. Pattern 3. Shift operations
 
Data types
Data typesData types
Data types
 
Enhancement of DES Algorithm with Multi State Logic
Enhancement of DES Algorithm with Multi State LogicEnhancement of DES Algorithm with Multi State Logic
Enhancement of DES Algorithm with Multi State Logic
 
02. Primitive Data Types and Variables
02. Primitive Data Types and Variables02. Primitive Data Types and Variables
02. Primitive Data Types and Variables
 
Data types in c++
Data types in c++ Data types in c++
Data types in c++
 
chap3.pdf
chap3.pdfchap3.pdf
chap3.pdf
 
DConf 2016: Bitpacking Like a Madman by Amaury Sechet
DConf 2016: Bitpacking Like a Madman by Amaury SechetDConf 2016: Bitpacking Like a Madman by Amaury Sechet
DConf 2016: Bitpacking Like a Madman by Amaury Sechet
 
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxUNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
 
Cryptographic Algorithms: DES and RSA
Cryptographic Algorithms: DES and RSACryptographic Algorithms: DES and RSA
Cryptographic Algorithms: DES and RSA
 
Performance Analysis of Data Encryption Standard DES
Performance Analysis of Data Encryption Standard DESPerformance Analysis of Data Encryption Standard DES
Performance Analysis of Data Encryption Standard DES
 
Theory1&2
Theory1&2Theory1&2
Theory1&2
 
Al2ed chapter15
Al2ed chapter15Al2ed chapter15
Al2ed chapter15
 
JAVA PROGRAMMING : Data types
JAVA PROGRAMMING : Data typesJAVA PROGRAMMING : Data types
JAVA PROGRAMMING : Data types
 
Module 1-ppt System programming
Module 1-ppt System programmingModule 1-ppt System programming
Module 1-ppt System programming
 

More from Mohamed Abd Elghaffar

Classic control lec 4
Classic control   lec 4Classic control   lec 4
Classic control lec 4
Mohamed Abd Elghaffar
 
Arduino lec 4
Arduino lec 4 Arduino lec 4
Arduino lec 4
Mohamed Abd Elghaffar
 
Arduino lec 3
Arduino lec 3Arduino lec 3
Arduino lec 3
Mohamed Abd Elghaffar
 
Electronics lec 12
Electronics lec 12Electronics lec 12
Electronics lec 12
Mohamed Abd Elghaffar
 
Electronics lec 11
Electronics lec 11Electronics lec 11
Electronics lec 11
Mohamed Abd Elghaffar
 
Electronics lec 10
Electronics lec 10Electronics lec 10
Electronics lec 10
Mohamed Abd Elghaffar
 
Electronics lec 8
Electronics lec 8Electronics lec 8
Electronics lec 8
Mohamed Abd Elghaffar
 
Electronics lec 7
Electronics lec 7Electronics lec 7
Electronics lec 7
Mohamed Abd Elghaffar
 
Electronics lec 6
Electronics lec 6Electronics lec 6
Electronics lec 6
Mohamed Abd Elghaffar
 
Electronics lec 4
Electronics lec 4Electronics lec 4
Electronics lec 4
Mohamed Abd Elghaffar
 
Classic control lec 3
Classic control   lec 3Classic control   lec 3
Classic control lec 3
Mohamed Abd Elghaffar
 
Electronics lec 2
Electronics lec 2 Electronics lec 2
Electronics lec 2
Mohamed Abd Elghaffar
 
Classic control lec 2
Classic control   lec 2Classic control   lec 2
Classic control lec 2
Mohamed Abd Elghaffar
 
Electronics
ElectronicsElectronics
Classic control lec 1
Classic control   lec 1Classic control   lec 1
Classic control lec 1
Mohamed Abd Elghaffar
 

More from Mohamed Abd Elghaffar (15)

Classic control lec 4
Classic control   lec 4Classic control   lec 4
Classic control lec 4
 
Arduino lec 4
Arduino lec 4 Arduino lec 4
Arduino lec 4
 
Arduino lec 3
Arduino lec 3Arduino lec 3
Arduino lec 3
 
Electronics lec 12
Electronics lec 12Electronics lec 12
Electronics lec 12
 
Electronics lec 11
Electronics lec 11Electronics lec 11
Electronics lec 11
 
Electronics lec 10
Electronics lec 10Electronics lec 10
Electronics lec 10
 
Electronics lec 8
Electronics lec 8Electronics lec 8
Electronics lec 8
 
Electronics lec 7
Electronics lec 7Electronics lec 7
Electronics lec 7
 
Electronics lec 6
Electronics lec 6Electronics lec 6
Electronics lec 6
 
Electronics lec 4
Electronics lec 4Electronics lec 4
Electronics lec 4
 
Classic control lec 3
Classic control   lec 3Classic control   lec 3
Classic control lec 3
 
Electronics lec 2
Electronics lec 2 Electronics lec 2
Electronics lec 2
 
Classic control lec 2
Classic control   lec 2Classic control   lec 2
Classic control lec 2
 
Electronics
ElectronicsElectronics
Electronics
 
Classic control lec 1
Classic control   lec 1Classic control   lec 1
Classic control lec 1
 

Recently uploaded

English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
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
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
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
AhmedHussein950959
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 

Recently uploaded (20)

English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
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
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
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
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 

Arduino lec 2

  • 2. Contoso S u i t e s 2  A microcontroller board, contains on-board power supply, USB port to communicate with PC, and an Atmel microcontroller chip Arduino:-  It simplify the process of creating any control system by providing the standard board that can be programmed and connected to the system without the need to any sophisticated PCB design and implementation  It is an open source hardware, any one can get the details of its design and modify it or make his own one himself
  • 3. Contoso S u i t e s 3 Data type:-  Used for declaring variables or functions of different types.  The type of a variable determines how much space it occupies in the storage and how the bit pattern stored is interpreted  Void  Only in function declarations indicates that the function return no information  EX : Void Loop ( ) { // rest of the code }
  • 4. Contoso S u i t e s 4 Data type:-  Boolean  one of two values, true or false. Each Boolean variable occupies one byte of memory.  EX : boolean val = false boolean state = true ;  Char  Takes up one byte of memory  stores a character value  (Char) single quotes ‘A’  (strings) double quotes: "ABC"  EX : Char chr_a = ‘a’ Char chr_c = 97 ;
  • 5. Contoso S u i t e s 5 Data type:-  unsigned char  unsigned data type that occupies one byte of memory  The unsigned char data type encodes numbers from 0 to 255.  EX :  byte  A byte stores an 8-bit unsigned number, from 0 to 255.  EX : Unsigned Char chr = 121 ; byte var = 25 ;  Int  EX : Int var = 50 ; The primary data-type for number storage.  Int stores a 16-bit (2-byte) value ,This yields a range of -32,768 to 32,767  The int size varies from board to board int counter = 32
  • 6. Contoso S u i t e s 6 Data type:-  Unsigned int  store a 2 byte value.  Instead of storing negative numbers,, only store positive values,  yielding a useful range of 0 to 65,535 (2^16) - 1)..  EX : Unsigned int var = 121 ;  Word  EX : Word var = 100 ;  stores a 16-bit unsigned number.  On the Due and Zero, it stores a 32-bit unsigned number int counter = 32  Long  EX : Long var = 554 ;  store 32 bits (4 bytes), from -2,147,483,648 to
  • 7. Contoso S u i t e s 7 Data type:-  Unsigned Long  Number storage and store 32 bits (4 bytes).  range from 0 to 4,294,967,295 (2^32 - 1).  EX : Unsigned long var = 545 ;  Short  EX : Short var = 82 ;  short is a 16-bit data-type (2-byte) value.  Range from -32,768 to 32,767. int counter = 32  float  EX : float var = 52.54 ;  Data type for floating-point number is a number that has a decimal point.  used to approximate the analog and continuous values  They are stored as 32 bits (4 bytes) of information.
  • 8. Contoso S u i t e s 8 Data type:-  Double  Double precision floating-point number occupies four bytes.  exactly the same as the float.  On the Arduino Due, doubles have 8-byte (64 bit) precision.  EX : Double var = 545.21 ; int counter = 32
  • 9. Contoso S u i t e s 9 Data type:-
  • 10. Contoso S u i t e s 10 Input :-
  • 11. Contoso S u i t e s 11 Input :-