(One intermediate revision by the same user not shown)
Line 23: Line 23:
  
 
=Downloads=
 
=Downloads=
 +
Download the complete project folder from the below link:
 +
https://github.com/ExploreEmbedded/AVR-MCU-Breakout-Board/archive/master.zip<br>
 +
 +
 +
 +
Have a opinion, suggestion , question or feedback about the article let it out here!
 +
{{DISQUS}}

Latest revision as of 10:19, 20 April 2016

In this tutorial we will set up and read the temperature from LM35 using ADC of Atmega32 AVR breakout.

Basics

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.

Hook Up LM35

0 Avrbreakout ADC temp.png Instead of LM35 temperature we can connect Pot to read the raw data from ADC.

Code to Read Voltage

Code to Read Temperature


To display the ADC value open the terminal connect the COM port, we will get output as shown in below image. ADC temp.PNG

Downloads

Download the complete project folder from the below link: https://github.com/ExploreEmbedded/AVR-MCU-Breakout-Board/archive/master.zip


Have a opinion, suggestion , question or feedback about the article let it out here!