SlideShare a Scribd company logo
1
07-ADC (Analog to
Digital Converter).
By : Mohamed Fawzy
Programming AVR Microcontrollers
© Mohamed F.A.B 2015
Lecture Notes:
2
o Set Your Phone To Vibration Mode.
o Ask any time.
o During labs, Feel Free To Check Any Materials or
Internet.
o Slides are self content.
o Feel Free To Share This Materials With Your Friends.
o Work Hard For Achieving Most Of This Course.
© Mohamed F.A.B 2015
3
Don't Forget !!!!
© Mohamed F.A.B 2015
Any Expert Was Once A Beginner

4
Lesson(12).
© Mohamed F.A.B 2015
Lesson (12):
Analogue to Digital Conversion.
5
Lesson (12) Topics.
© Mohamed F.A.B 2015
► What and Why ADC.
► Characteristics of ADC.
► Interfacing LM35 temperature sensor.
6
What & Why ADC?
© Mohamed F.A.B 2015
 Digital Computers uses binary values, but in physical
world everything is analog.
 Temperature, Pressure, humidity, and velocity are
examples of physical quantities.
 A physical quantity is converted to electrical signals
(voltage or current) using device called sensor.
 So, we need Analog-to-Digital Converter to translate
the analog signal to digital numbers so that micro-
controller can read and process them.
7
Example.
© Mohamed F.A.B 2015
Analog
Digital
0
1
1
0
0
0
0
1
8
Characteristics of ADC.
© Mohamed F.A.B 2015
 The resolution of ADC is the number of bits at which
converted data stored in such as 8, 10, 16 or even 24-bit.
Resolution
Vref
 It is an input voltage used for voltage reference.
𝑠𝑡𝑒𝑝 𝑠𝑖𝑧𝑒 =
[(𝑉𝑟𝑒𝑓+) − (𝑉𝑟𝑒𝑓−)]
2 𝐵𝑖𝑡 𝑛𝑜
𝑠𝑡𝑒𝑝 𝑠𝑖𝑧𝑒 =
[5 −0 ]
210 =
5
1024
=0.00488 V*1000=4.88 mv
 Higher resolution ADCs means smaller step size and high accuracy.
 Smaller Vref ADCs means smaller step size and high accuracy.
NOTES:
9
Characteristics of ADC. Cont’
© Mohamed F.A.B 2015
Conversion Time:
Conversion time is the time it takes to convert the
single analogue sample to digital.
o Example.
Digital Output=
𝑉_𝐼𝑛𝑝𝑢𝑡
𝑆𝑡𝑒𝑝_𝑆𝑖𝑧𝑒
10
ADC Features of ATMEGA32.
© Mohamed F.A.B 2015
 10 bit ADC.
 It has 8 analog input channels.
 Converted output binary data is held by two
registers ADCL and ADCH.
 Three options for Vref (VCC or 2.56V or External
AREF pin).
 Conversion time is defined by crystal frequency
connected to XTAL pins and ADPS0:2.
11
ADC registers in ATMEGA32.
© Mohamed F.A.B 2015
12
ADC registers in ATMEGA32. cont’
© Mohamed F.A.B 2015
13
ADC registers in ATMEGA32. cont’
© Mohamed F.A.B 2015
• Bit 7 – ADEN : ADC Enable.
• Bit 6 – ADSC :ADC Start Conversion.
• Bit 5 – ADATE :ADC Auto Trigger Enable.
• Bit 4 – ADIF:ADC Interrupt Flag.
• Bit 3 – ADIE:ADC Interrupt Enable.
• Bit 2:0 – ADPS2:0: ADC Prescaler Select Bits.
14
ADC conversion time.
© Mohamed F.A.B 2015
15
ADC in ATMEGA32.
© Mohamed F.A.B 2015
We need to make digital voltmeter to measure 5 volt power supply.
What about 12V or 24V 
Exercise (1).
We need to make temperature controller using LM35
Temperature sensor.
Exercise (2).
16
Questions:
© Mohamed F.A.B 2015
Thank You All 
17
mo7amed.fawzy33@gmail.com
01006032792
fawzy.fab@gmail.com
© Mohamed F.A.B 2015

More Related Content

What's hot

Analog to digital converter
Analog to digital converterAnalog to digital converter
Adc
AdcAdc
Dac
DacDac
M-TECH 4th SEM PRESENTATION
M-TECH 4th SEM PRESENTATIONM-TECH 4th SEM PRESENTATION
M-TECH 4th SEM PRESENTATION
Subhajit Shaw
 
Digital to analog convertor
Digital to analog convertorDigital to analog convertor
Digital to analog convertor
sartaj ahmed
 
Prese000
Prese000Prese000
Prese000
Waed Shagareen
 
ADC and DAC Best Ever Pers
ADC and DAC Best Ever PersADC and DAC Best Ever Pers
ADC and DAC Best Ever Pers
Eng Ahmed Salad Osman
 
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTERANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
Sripati Mahapatra
 
Digital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsDigital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE students
Mitul Lakhani
 
Ad and da convertor
Ad and da convertorAd and da convertor
Ad and da convertor
Sandeep Kamath
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
PRADEEP
 
Ditial to Analog Converter
Ditial to Analog ConverterDitial to Analog Converter
Ditial to Analog Converter
Gauravsinh Parmar
 
Data convertors
Data convertorsData convertors
Data convertors
Priyansh Thakar
 
Adc.pptx ashvani 151503
Adc.pptx ashvani 151503Adc.pptx ashvani 151503
Adc.pptx ashvani 151503
Ashvani Shukla
 
Adc
AdcAdc
Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)
Daman Singh
 
Digital to analog conversion
Digital to analog                    conversionDigital to analog                    conversion
Digital to analog conversion
kaavyabalachandran
 
Analog to Digital Converters
Analog to Digital ConvertersAnalog to Digital Converters
Analog to Digital Converters
Anas Smarty
 
Adc and dac
Adc and dacAdc and dac
Adc and dac
boarddk1
 
Dac s05
Dac s05Dac s05

What's hot (20)

Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converter
 
Adc
AdcAdc
Adc
 
Dac
DacDac
Dac
 
M-TECH 4th SEM PRESENTATION
M-TECH 4th SEM PRESENTATIONM-TECH 4th SEM PRESENTATION
M-TECH 4th SEM PRESENTATION
 
Digital to analog convertor
Digital to analog convertorDigital to analog convertor
Digital to analog convertor
 
Prese000
Prese000Prese000
Prese000
 
ADC and DAC Best Ever Pers
ADC and DAC Best Ever PersADC and DAC Best Ever Pers
ADC and DAC Best Ever Pers
 
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTERANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
 
Digital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsDigital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE students
 
Ad and da convertor
Ad and da convertorAd and da convertor
Ad and da convertor
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
 
Ditial to Analog Converter
Ditial to Analog ConverterDitial to Analog Converter
Ditial to Analog Converter
 
Data convertors
Data convertorsData convertors
Data convertors
 
Adc.pptx ashvani 151503
Adc.pptx ashvani 151503Adc.pptx ashvani 151503
Adc.pptx ashvani 151503
 
Adc
AdcAdc
Adc
 
Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)
 
Digital to analog conversion
Digital to analog                    conversionDigital to analog                    conversion
Digital to analog conversion
 
Analog to Digital Converters
Analog to Digital ConvertersAnalog to Digital Converters
Analog to Digital Converters
 
Adc and dac
Adc and dacAdc and dac
Adc and dac
 
Dac s05
Dac s05Dac s05
Dac s05
 

Viewers also liked

DAC , Digital to analog Converter
DAC , Digital to analog ConverterDAC , Digital to analog Converter
DAC , Digital to analog Converter
Hossam Zein
 
أزاى تروح فى داهيه !!!
أزاى تروح فى داهيه !!!أزاى تروح فى داهيه !!!
أزاى تروح فى داهيه !!!
Mohamed Fawzy
 
Analogue to digital conversion
Analogue to digital conversionAnalogue to digital conversion
Analogue to digital conversion
simonandisa
 
Servo motor and AVR Atmel Atmega 16
Servo motor and AVR  Atmel Atmega 16Servo motor and AVR  Atmel Atmega 16
Servo motor and AVR Atmel Atmega 16
Robo India
 
ADC F28x
ADC F28xADC F28x
Digital conv keep britain tidy & the distillery
Digital conv keep britain tidy & the distilleryDigital conv keep britain tidy & the distillery
Digital conv keep britain tidy & the distillery
Kirstie Buchanan
 
Dsp U Lec03 Analogue To Digital Converters
Dsp U   Lec03 Analogue To Digital ConvertersDsp U   Lec03 Analogue To Digital Converters
Dsp U Lec03 Analogue To Digital Converters
taha25
 
L293d(nonanimated)
L293d(nonanimated)L293d(nonanimated)
L293d(nonanimated)
Utsav Jain
 
L298 Motor Driver
L298 Motor DriverL298 Motor Driver
L298 Motor Driver
Raghav Shetty
 
Invering and non inverting amplifiers
Invering and non inverting amplifiersInvering and non inverting amplifiers
Invering and non inverting amplifiers
Muhammad Mohsin
 
Analog to digital conversion
Analog to digital conversionAnalog to digital conversion
Analog to digital conversion
Firman Bachtiar
 
Basic electronics component
Basic electronics componentBasic electronics component
Basic electronics component
ABHISHEK MAURYA
 
Motor driver IC L293D
Motor driver IC L293DMotor driver IC L293D
Motor driver IC L293D
Amit kumar
 
Advance Microcontroller AVR
Advance Microcontroller AVRAdvance Microcontroller AVR
Advance Microcontroller AVR
Daksh Raj Chopra
 
The analog to digital conversion process
The analog to digital conversion processThe analog to digital conversion process
The analog to digital conversion process
DJNila
 
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
AVR_Course_Day6 external hardware  interrupts and analogue to digital converterAVR_Course_Day6 external hardware  interrupts and analogue to digital converter
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
Mohamed Ali
 
AVR Fundamentals
AVR FundamentalsAVR Fundamentals
AVR Fundamentals
Vinit Vyas
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
Mahmoud Sadat
 
Analogue & Digital
Analogue & DigitalAnalogue & Digital
Analogue & Digital
k13086
 
Sensors And Actuators
Sensors And ActuatorsSensors And Actuators
Sensors And Actuators
Jinesh Patel
 

Viewers also liked (20)

DAC , Digital to analog Converter
DAC , Digital to analog ConverterDAC , Digital to analog Converter
DAC , Digital to analog Converter
 
أزاى تروح فى داهيه !!!
أزاى تروح فى داهيه !!!أزاى تروح فى داهيه !!!
أزاى تروح فى داهيه !!!
 
Analogue to digital conversion
Analogue to digital conversionAnalogue to digital conversion
Analogue to digital conversion
 
Servo motor and AVR Atmel Atmega 16
Servo motor and AVR  Atmel Atmega 16Servo motor and AVR  Atmel Atmega 16
Servo motor and AVR Atmel Atmega 16
 
ADC F28x
ADC F28xADC F28x
ADC F28x
 
Digital conv keep britain tidy & the distillery
Digital conv keep britain tidy & the distilleryDigital conv keep britain tidy & the distillery
Digital conv keep britain tidy & the distillery
 
Dsp U Lec03 Analogue To Digital Converters
Dsp U   Lec03 Analogue To Digital ConvertersDsp U   Lec03 Analogue To Digital Converters
Dsp U Lec03 Analogue To Digital Converters
 
L293d(nonanimated)
L293d(nonanimated)L293d(nonanimated)
L293d(nonanimated)
 
L298 Motor Driver
L298 Motor DriverL298 Motor Driver
L298 Motor Driver
 
Invering and non inverting amplifiers
Invering and non inverting amplifiersInvering and non inverting amplifiers
Invering and non inverting amplifiers
 
Analog to digital conversion
Analog to digital conversionAnalog to digital conversion
Analog to digital conversion
 
Basic electronics component
Basic electronics componentBasic electronics component
Basic electronics component
 
Motor driver IC L293D
Motor driver IC L293DMotor driver IC L293D
Motor driver IC L293D
 
Advance Microcontroller AVR
Advance Microcontroller AVRAdvance Microcontroller AVR
Advance Microcontroller AVR
 
The analog to digital conversion process
The analog to digital conversion processThe analog to digital conversion process
The analog to digital conversion process
 
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
AVR_Course_Day6 external hardware  interrupts and analogue to digital converterAVR_Course_Day6 external hardware  interrupts and analogue to digital converter
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
 
AVR Fundamentals
AVR FundamentalsAVR Fundamentals
AVR Fundamentals
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
 
Analogue & Digital
Analogue & DigitalAnalogue & Digital
Analogue & Digital
 
Sensors And Actuators
Sensors And ActuatorsSensors And Actuators
Sensors And Actuators
 

Similar to 07 Analogue to Digital Converter(ADC).2016

Digital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontrollerDigital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontroller
Saylee joshi
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
VikasMahor3
 
analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
DrVikasMahor
 
analog to digital converter.ppt
analog to digital converter.pptanalog to digital converter.ppt
analog to digital converter.ppt
Dreamers6
 
Analog to digital converter (ACD)
Analog to digital converter (ACD)Analog to digital converter (ACD)
Analog to digital converter (ACD)
Luckysaw
 
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
UNIT 4 & 5 - I         nterfacing_Lecture7.pptxUNIT 4 & 5 - I         nterfacing_Lecture7.pptx
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
naveen088888
 
Presentation1 (1)
Presentation1 (1)Presentation1 (1)
Presentation1 (1)
Debopriya Gupta
 
Analog to digital converters, adc
Analog to digital converters, adcAnalog to digital converters, adc
Analog to digital converters, adc
Saumya Ranjan Behura
 
ANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTORANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTOR
Anil Yadav
 
digi mul ppt
digi mul pptdigi mul ppt
digi mul ppt
rahul kumar
 
Nsac l2 r1-adc-servos_battery
Nsac l2 r1-adc-servos_batteryNsac l2 r1-adc-servos_battery
Nsac l2 r1-adc-servos_battery
Marc Cortes-Fargas
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
Pallavi Bharti
 
Módulo adc 18f4550
Módulo adc   18f4550Módulo adc   18f4550
Módulo adc 18f4550
David Narváez
 
Mixed Signal Verification of a Voltage Regulator using a State Space approach...
Mixed Signal Verification of a Voltage Regulator using a State Space approach...Mixed Signal Verification of a Voltage Regulator using a State Space approach...
Mixed Signal Verification of a Voltage Regulator using a State Space approach...
Raj Mitra
 
ANTENNA (new)LLL.pptx
ANTENNA (new)LLL.pptxANTENNA (new)LLL.pptx
ANTENNA (new)LLL.pptx
Muhammed Abdulmahdi
 
Ricardo DC-DC Converter Presentation for NMI
Ricardo DC-DC Converter Presentation for NMIRicardo DC-DC Converter Presentation for NMI
Ricardo DC-DC Converter Presentation for NMI
Frank Warnes
 
lab_ADC.pdf
lab_ADC.pdflab_ADC.pdf
lab_ADC.pdf
boukomra
 
A 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADCA 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADC
QuEST Global (erstwhile NeST Software)
 
Wireless Gesture Controlled Tank Toy- Transmitter
Wireless Gesture Controlled Tank Toy- TransmitterWireless Gesture Controlled Tank Toy- Transmitter
Wireless Gesture Controlled Tank Toy- Transmitter
Neeraj Purohit
 
Anup2
Anup2Anup2
Anup2
David Gyle
 

Similar to 07 Analogue to Digital Converter(ADC).2016 (20)

Digital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontrollerDigital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontroller
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
 
analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
 
analog to digital converter.ppt
analog to digital converter.pptanalog to digital converter.ppt
analog to digital converter.ppt
 
Analog to digital converter (ACD)
Analog to digital converter (ACD)Analog to digital converter (ACD)
Analog to digital converter (ACD)
 
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
UNIT 4 & 5 - I         nterfacing_Lecture7.pptxUNIT 4 & 5 - I         nterfacing_Lecture7.pptx
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
 
Presentation1 (1)
Presentation1 (1)Presentation1 (1)
Presentation1 (1)
 
Analog to digital converters, adc
Analog to digital converters, adcAnalog to digital converters, adc
Analog to digital converters, adc
 
ANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTORANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTOR
 
digi mul ppt
digi mul pptdigi mul ppt
digi mul ppt
 
Nsac l2 r1-adc-servos_battery
Nsac l2 r1-adc-servos_batteryNsac l2 r1-adc-servos_battery
Nsac l2 r1-adc-servos_battery
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
 
Módulo adc 18f4550
Módulo adc   18f4550Módulo adc   18f4550
Módulo adc 18f4550
 
Mixed Signal Verification of a Voltage Regulator using a State Space approach...
Mixed Signal Verification of a Voltage Regulator using a State Space approach...Mixed Signal Verification of a Voltage Regulator using a State Space approach...
Mixed Signal Verification of a Voltage Regulator using a State Space approach...
 
ANTENNA (new)LLL.pptx
ANTENNA (new)LLL.pptxANTENNA (new)LLL.pptx
ANTENNA (new)LLL.pptx
 
Ricardo DC-DC Converter Presentation for NMI
Ricardo DC-DC Converter Presentation for NMIRicardo DC-DC Converter Presentation for NMI
Ricardo DC-DC Converter Presentation for NMI
 
lab_ADC.pdf
lab_ADC.pdflab_ADC.pdf
lab_ADC.pdf
 
A 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADCA 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADC
 
Wireless Gesture Controlled Tank Toy- Transmitter
Wireless Gesture Controlled Tank Toy- TransmitterWireless Gesture Controlled Tank Toy- Transmitter
Wireless Gesture Controlled Tank Toy- Transmitter
 
Anup2
Anup2Anup2
Anup2
 

More from Mohamed Fawzy

06 Interfacing Keypad 4x4.2016
06 Interfacing Keypad 4x4.201606 Interfacing Keypad 4x4.2016
06 Interfacing Keypad 4x4.2016
Mohamed Fawzy
 
05 EEPROM memory.2016
05 EEPROM memory.201605 EEPROM memory.2016
05 EEPROM memory.2016
Mohamed Fawzy
 
04 Interfacing LCD Displays.2016
04 Interfacing LCD Displays.201604 Interfacing LCD Displays.2016
04 Interfacing LCD Displays.2016
Mohamed Fawzy
 
01 GPIO||General Purpose Input Output.2016
01 GPIO||General Purpose Input Output.201601 GPIO||General Purpose Input Output.2016
01 GPIO||General Purpose Input Output.2016
Mohamed Fawzy
 
00 let us get started.2016
00 let us get started.201600 let us get started.2016
00 let us get started.2016
Mohamed Fawzy
 
Ce from a to z
Ce from a to zCe from a to z
Ce from a to z
Mohamed Fawzy
 
Taqa
TaqaTaqa
C programming day#2.
C programming day#2.C programming day#2.
C programming day#2.
Mohamed Fawzy
 
C programming day#3.
C programming day#3.C programming day#3.
C programming day#3.
Mohamed Fawzy
 
C programming day#1
C programming day#1C programming day#1
C programming day#1
Mohamed Fawzy
 

More from Mohamed Fawzy (10)

06 Interfacing Keypad 4x4.2016
06 Interfacing Keypad 4x4.201606 Interfacing Keypad 4x4.2016
06 Interfacing Keypad 4x4.2016
 
05 EEPROM memory.2016
05 EEPROM memory.201605 EEPROM memory.2016
05 EEPROM memory.2016
 
04 Interfacing LCD Displays.2016
04 Interfacing LCD Displays.201604 Interfacing LCD Displays.2016
04 Interfacing LCD Displays.2016
 
01 GPIO||General Purpose Input Output.2016
01 GPIO||General Purpose Input Output.201601 GPIO||General Purpose Input Output.2016
01 GPIO||General Purpose Input Output.2016
 
00 let us get started.2016
00 let us get started.201600 let us get started.2016
00 let us get started.2016
 
Ce from a to z
Ce from a to zCe from a to z
Ce from a to z
 
Taqa
TaqaTaqa
Taqa
 
C programming day#2.
C programming day#2.C programming day#2.
C programming day#2.
 
C programming day#3.
C programming day#3.C programming day#3.
C programming day#3.
 
C programming day#1
C programming day#1C programming day#1
C programming day#1
 

Recently uploaded

2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
PuktoonEngr
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
Wearable antenna for antenna applications
Wearable antenna for antenna applicationsWearable antenna for antenna applications
Wearable antenna for antenna applications
Madhumitha Jayaram
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 

Recently uploaded (20)

2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
Wearable antenna for antenna applications
Wearable antenna for antenna applicationsWearable antenna for antenna applications
Wearable antenna for antenna applications
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 

07 Analogue to Digital Converter(ADC).2016

  • 1. 1 07-ADC (Analog to Digital Converter). By : Mohamed Fawzy Programming AVR Microcontrollers © Mohamed F.A.B 2015
  • 2. Lecture Notes: 2 o Set Your Phone To Vibration Mode. o Ask any time. o During labs, Feel Free To Check Any Materials or Internet. o Slides are self content. o Feel Free To Share This Materials With Your Friends. o Work Hard For Achieving Most Of This Course. © Mohamed F.A.B 2015
  • 3. 3 Don't Forget !!!! © Mohamed F.A.B 2015 Any Expert Was Once A Beginner 
  • 4. 4 Lesson(12). © Mohamed F.A.B 2015 Lesson (12): Analogue to Digital Conversion.
  • 5. 5 Lesson (12) Topics. © Mohamed F.A.B 2015 ► What and Why ADC. ► Characteristics of ADC. ► Interfacing LM35 temperature sensor.
  • 6. 6 What & Why ADC? © Mohamed F.A.B 2015  Digital Computers uses binary values, but in physical world everything is analog.  Temperature, Pressure, humidity, and velocity are examples of physical quantities.  A physical quantity is converted to electrical signals (voltage or current) using device called sensor.  So, we need Analog-to-Digital Converter to translate the analog signal to digital numbers so that micro- controller can read and process them.
  • 7. 7 Example. © Mohamed F.A.B 2015 Analog Digital 0 1 1 0 0 0 0 1
  • 8. 8 Characteristics of ADC. © Mohamed F.A.B 2015  The resolution of ADC is the number of bits at which converted data stored in such as 8, 10, 16 or even 24-bit. Resolution Vref  It is an input voltage used for voltage reference. 𝑠𝑡𝑒𝑝 𝑠𝑖𝑧𝑒 = [(𝑉𝑟𝑒𝑓+) − (𝑉𝑟𝑒𝑓−)] 2 𝐵𝑖𝑡 𝑛𝑜 𝑠𝑡𝑒𝑝 𝑠𝑖𝑧𝑒 = [5 −0 ] 210 = 5 1024 =0.00488 V*1000=4.88 mv  Higher resolution ADCs means smaller step size and high accuracy.  Smaller Vref ADCs means smaller step size and high accuracy. NOTES:
  • 9. 9 Characteristics of ADC. Cont’ © Mohamed F.A.B 2015 Conversion Time: Conversion time is the time it takes to convert the single analogue sample to digital. o Example. Digital Output= 𝑉_𝐼𝑛𝑝𝑢𝑡 𝑆𝑡𝑒𝑝_𝑆𝑖𝑧𝑒
  • 10. 10 ADC Features of ATMEGA32. © Mohamed F.A.B 2015  10 bit ADC.  It has 8 analog input channels.  Converted output binary data is held by two registers ADCL and ADCH.  Three options for Vref (VCC or 2.56V or External AREF pin).  Conversion time is defined by crystal frequency connected to XTAL pins and ADPS0:2.
  • 11. 11 ADC registers in ATMEGA32. © Mohamed F.A.B 2015
  • 12. 12 ADC registers in ATMEGA32. cont’ © Mohamed F.A.B 2015
  • 13. 13 ADC registers in ATMEGA32. cont’ © Mohamed F.A.B 2015 • Bit 7 – ADEN : ADC Enable. • Bit 6 – ADSC :ADC Start Conversion. • Bit 5 – ADATE :ADC Auto Trigger Enable. • Bit 4 – ADIF:ADC Interrupt Flag. • Bit 3 – ADIE:ADC Interrupt Enable. • Bit 2:0 – ADPS2:0: ADC Prescaler Select Bits.
  • 14. 14 ADC conversion time. © Mohamed F.A.B 2015
  • 15. 15 ADC in ATMEGA32. © Mohamed F.A.B 2015 We need to make digital voltmeter to measure 5 volt power supply. What about 12V or 24V  Exercise (1). We need to make temperature controller using LM35 Temperature sensor. Exercise (2).
  • 17. Thank You All  17 mo7amed.fawzy33@gmail.com 01006032792 fawzy.fab@gmail.com © Mohamed F.A.B 2015