Difference between revisions of "Reading Temperature with Starter AVR"
Line 1: | Line 1: | ||
[[category:Starter AVR]] | [[category:Starter AVR]] | ||
+ | In this tutorial we will set up and read the temperature from LM35 using ADC of Atmega32 AVR breakout. | ||
=Basic= | =Basic= | ||
+ | Initially we will read a raw data from ADC. Atmega32 comes with 10-bit 8-channel inbuilt ADC. We will connect 10k Pot to channel 0, vary it and read the raw voltage. After that we will connect the LM35 temperature sensor to channel 0 and read the temperature as shown in hook up. We will display the converted value on terminal.<br/> | ||
+ | Refer [[Reading Temperature with AVR ADC]] for basics of Atmega32 ADC and LM35 temperature sensor. | ||
=Hookup= | =Hookup= | ||
+ | Instead of LM35 temperature we can connect Pot to read the raw data from ADC. | ||
=Code= | =Code= | ||
=Downloads= | =Downloads= | ||
{{DISQUS}} | {{DISQUS}} |
Revision as of 17:57, 5 April 2016
In this tutorial we will set up and read the temperature from LM35 using ADC of Atmega32 AVR breakout.
Contents
Basic
Initially we will read a raw data from ADC. Atmega32 comes with 10-bit 8-channel inbuilt ADC. We will connect 10k Pot to channel 0, vary it and read the raw voltage. After that we will connect the LM35 temperature sensor to channel 0 and read the temperature as shown in hook up. We will display the converted value on terminal.
Refer Reading Temperature with AVR ADC for basics of Atmega32 ADC and LM35 temperature sensor.
Hookup
Instead of LM35 temperature we can connect Pot to read the raw data from ADC.
Code
Downloads