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

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 6REHAN IJAZ
 
Bt0068 computer organization and architecture 2
Bt0068 computer organization and architecture 2Bt0068 computer organization and architecture 2
Bt0068 computer organization and architecture 2Techglyphs
 
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 blowfisheSAT 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 areaeSAT Journals
 
Lesson 11. Pattern 3. Shift operations
Lesson 11. Pattern 3. Shift operationsLesson 11. Pattern 3. Shift operations
Lesson 11. Pattern 3. Shift operationsPVS-Studio
 
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 LogicIJORCS
 
02. Primitive Data Types and Variables
02. Primitive Data Types and Variables02. Primitive Data Types and Variables
02. Primitive Data Types and VariablesIntro C# Book
 
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 SechetAndrei 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).pptxKaameshwaranKaameshw
 
Cryptographic Algorithms: DES and RSA
Cryptographic Algorithms: DES and RSACryptographic Algorithms: DES and RSA
Cryptographic Algorithms: DES and RSAaritraranjan
 
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 DESijtsrd
 
Module 1-ppt System programming
Module 1-ppt System programmingModule 1-ppt System programming
Module 1-ppt System programmingvishnu 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 (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

Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 

Recently uploaded (20)

Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 

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 :-