<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: LM35 Based Thermometer Display Temperature on LCD</title>
	<atom:link href="http://www.youritronics.com/lm35-based-thermometer-display-temperature-on-lcd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.youritronics.com/lm35-based-thermometer-display-temperature-on-lcd/</link>
	<description>DIY, Electronics, IT, Gadgets</description>
	<lastBuildDate>Sat, 28 Jan 2012 20:46:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Abdul Rehman</title>
		<link>http://www.youritronics.com/lm35-based-thermometer-display-temperature-on-lcd/comment-page-1/#comment-50093</link>
		<dc:creator>Abdul Rehman</dc:creator>
		<pubDate>Sun, 27 Nov 2011 18:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.youritronics.com/?p=1253#comment-50093</guid>
		<description>hi friends i am making project and in it i want to display LM35 temperature on 2x16 LCD. but im facing problem that LM35 gives data in Hexadecimal but dont know how to send it on LCD, the code is given below plz help me... thanxx

#include
#include
void delayu(unsigned int d)
		{
			_delay_us(d);
		}
void delaym(unsigned int d)
		{
			_delay_ms(d);
		}
void lcd_comd(unsigned char comd)
		{
			PORTD = (PORTD&amp;0x0F)&#124;(comd &amp; 0xF0);
			PORTD &amp;= ~(1&lt;&lt;0);
			PORTD &amp;= ~(1&lt;&lt;1);
			PORTD &#124;= (1&lt;&lt;2);
			delayu(1);
			PORTD &amp;= ~(1&lt;&lt;2);
			delayu(20);
			PORTD=(PORTD&amp;0x0F)&#124;(comd&lt;&lt;4);
			PORTD &#124;= (1&lt;&lt;2);
			delayu(1);
			PORTD &amp;=~(1&lt;&lt;2);
		}
void lcd_data(unsigned char data)
		{
			PORTD=(PORTD&amp;0x0F)&#124;(data &amp; 0xF0);
			PORTD&#124;= (1&lt;&lt;0);
			PORTD &amp;= ~(1&lt;&lt;1);
			PORTD &#124;= (1&lt;&lt;2);
			delayu(1);
			PORTD &amp;= ~(1&lt;&lt;2);
			delayu(20);
			PORTD=(PORTD &amp; 0x0F)&#124;(data&lt;&lt;4);
			PORTD &#124;= (1&lt;&lt;2);
			delayu(1);
			PORTD &amp;= ~(1&lt;&lt;2);	
		}
void lcd_init()
		{
			PORTD=0xFF;
			PORTD &amp;= ~(1&lt;&lt;2);
			delaym(2);
			lcd_comd(0x33);
			delayu(100);
			lcd_comd(0x32);
			delayu(100);
			lcd_comd(0x28);
			delayu(100);
		//	lcd_comd(0x0f);
		//	delayu(100);
			
			lcd_comd(0x0c);
			delayu(100);
			lcd_comd(0x01);
			delayu(2000);
			lcd_comd(0x06);
			delayu(100);
		//	lcd_comd(0x1c);
		//	delayu(100);
		//	lcd_comd(0x05);
		//	delayu(100);
		}
void lcd_xy(unsigned char x,unsigned char y)
		{	
			unsigned char pos[]={0x80,0xC0};
			lcd_comd(pos[y-1]+ x-1);
			delayu(100);
		}
void print(char *str)
		{
			unsigned char i=0;
			while(str[i]!=0)
				{
					lcd_data(str[i]);
					i++;
					delaym(200);
				}
		}



adc()
{
DDRA = 0;		// make Port A an input
	ADCSRA = 0x87;	// make ADC enable and select ck/128
	ADMUX = 0xE0;	// 2.56V Vref and ADCO
	 DDRC = DDRC &#124; 0b00000111;
	  unsigned char temp; 


		ADCSRA &#124;= (1&lt;&lt;ADSC) ;  //start conversion
		while( (ADCSRA&amp;(1&lt;0x18) &amp; (temp0x1E) &amp; (temp0x23)
		{
		PORTC = PORTC &#124; 0b00000011;
		
		}
		 
		
		else if(temp&lt;0x15)
        {
		PORTC = PORTC &#124; 0b00000100;  
		} 
		else
		{PORTC = PORTC &amp; 0b11111000;
		}





unsigned char ADCH1,ADCH2;
		ADCH1=ADCH&amp;0x0F;
		ADCH1=ADCH1&#124;0x30;
			ADCH2=ADCH&amp;0xF0;
			ADCH2=ADCH2&lt;&lt;4;
			ADCH2=ADCH2&#124;0x30;
		
		lcd_data(ADCH2);
		lcd_data(ADCH1);
        

}






int main(void)
		{		
		DDRD=0xFF;
			lcd_init();



          

   





			while(1)
				{


					lcd_xy(1,1);
					print(&quot;TEMP : &quot;);
					adc();
					
					
					
				
				}
				
	
		return(0);
		}</description>
		<content:encoded><![CDATA[<p>hi friends i am making project and in it i want to display LM35 temperature on 2&#215;16 LCD. but im facing problem that LM35 gives data in Hexadecimal but dont know how to send it on LCD, the code is given below plz help me&#8230; thanxx</p>
<p>#include<br />
#include<br />
void delayu(unsigned int d)<br />
		{<br />
			_delay_us(d);<br />
		}<br />
void delaym(unsigned int d)<br />
		{<br />
			_delay_ms(d);<br />
		}<br />
void lcd_comd(unsigned char comd)<br />
		{<br />
			PORTD = (PORTD&amp;0x0F)|(comd &amp; 0xF0);<br />
			PORTD &amp;= ~(1&lt;&lt;0);<br />
			PORTD &amp;= ~(1&lt;&lt;1);<br />
			PORTD |= (1&lt;&lt;2);<br />
			delayu(1);<br />
			PORTD &amp;= ~(1&lt;&lt;2);<br />
			delayu(20);<br />
			PORTD=(PORTD&amp;0x0F)|(comd&lt;&lt;4);<br />
			PORTD |= (1&lt;&lt;2);<br />
			delayu(1);<br />
			PORTD &amp;=~(1&lt;&lt;2);<br />
		}<br />
void lcd_data(unsigned char data)<br />
		{<br />
			PORTD=(PORTD&amp;0x0F)|(data &amp; 0xF0);<br />
			PORTD|= (1&lt;&lt;0);<br />
			PORTD &amp;= ~(1&lt;&lt;1);<br />
			PORTD |= (1&lt;&lt;2);<br />
			delayu(1);<br />
			PORTD &amp;= ~(1&lt;&lt;2);<br />
			delayu(20);<br />
			PORTD=(PORTD &amp; 0x0F)|(data&lt;&lt;4);<br />
			PORTD |= (1&lt;&lt;2);<br />
			delayu(1);<br />
			PORTD &amp;= ~(1&lt;&lt;2);<br />
		}<br />
void lcd_init()<br />
		{<br />
			PORTD=0xFF;<br />
			PORTD &amp;= ~(1&lt;&lt;2);<br />
			delaym(2);<br />
			lcd_comd(0&#215;33);<br />
			delayu(100);<br />
			lcd_comd(0&#215;32);<br />
			delayu(100);<br />
			lcd_comd(0&#215;28);<br />
			delayu(100);<br />
		//	lcd_comd(0x0f);<br />
		//	delayu(100);</p>
<p>			lcd_comd(0x0c);<br />
			delayu(100);<br />
			lcd_comd(0&#215;01);<br />
			delayu(2000);<br />
			lcd_comd(0&#215;06);<br />
			delayu(100);<br />
		//	lcd_comd(0x1c);<br />
		//	delayu(100);<br />
		//	lcd_comd(0&#215;05);<br />
		//	delayu(100);<br />
		}<br />
void lcd_xy(unsigned char x,unsigned char y)<br />
		{<br />
			unsigned char pos[]={0&#215;80,0xC0};<br />
			lcd_comd(pos[y-1]+ x-1);<br />
			delayu(100);<br />
		}<br />
void print(char *str)<br />
		{<br />
			unsigned char i=0;<br />
			while(str[i]!=0)<br />
				{<br />
					lcd_data(str[i]);<br />
					i++;<br />
					delaym(200);<br />
				}<br />
		}</p>
<p>adc()<br />
{<br />
DDRA = 0;		// make Port A an input<br />
	ADCSRA = 0&#215;87;	// make ADC enable and select ck/128<br />
	ADMUX = 0xE0;	// 2.56V Vref and ADCO<br />
	 DDRC = DDRC | 0b00000111;<br />
	  unsigned char temp; </p>
<p>		ADCSRA |= (1&lt;&lt;ADSC) ;  //start conversion<br />
		while( (ADCSRA&amp;(1&lt;0&#215;18) &amp; (temp0x1E) &amp; (temp0x23)<br />
		{<br />
		PORTC = PORTC | 0b00000011;</p>
<p>		}</p>
<p>		else if(temp&lt;0&#215;15)<br />
        {<br />
		PORTC = PORTC | 0b00000100;<br />
		}<br />
		else<br />
		{PORTC = PORTC &amp; 0b11111000;<br />
		}</p>
<p>unsigned char ADCH1,ADCH2;<br />
		ADCH1=ADCH&amp;0x0F;<br />
		ADCH1=ADCH1|0&#215;30;<br />
			ADCH2=ADCH&amp;0xF0;<br />
			ADCH2=ADCH2&lt;&lt;4;<br />
			ADCH2=ADCH2|0&#215;30;</p>
<p>		lcd_data(ADCH2);<br />
		lcd_data(ADCH1);</p>
<p>}</p>
<p>int main(void)<br />
		{<br />
		DDRD=0xFF;<br />
			lcd_init();</p>
<p>			while(1)<br />
				{</p>
<p>					lcd_xy(1,1);<br />
					print(&quot;TEMP : &quot;);<br />
					adc();</p>
<p>				}</p>
<p>		return(0);<br />
		}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hossein_almasi</title>
		<link>http://www.youritronics.com/lm35-based-thermometer-display-temperature-on-lcd/comment-page-1/#comment-48410</link>
		<dc:creator>hossein_almasi</dc:creator>
		<pubDate>Mon, 24 Oct 2011 11:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.youritronics.com/?p=1253#comment-48410</guid>
		<description>thanks</description>
		<content:encoded><![CDATA[<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kanika</title>
		<link>http://www.youritronics.com/lm35-based-thermometer-display-temperature-on-lcd/comment-page-1/#comment-40095</link>
		<dc:creator>kanika</dc:creator>
		<pubDate>Sat, 02 Jul 2011 05:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.youritronics.com/?p=1253#comment-40095</guid>
		<description>I wnted details about how to display room temperature on a 16*2 lcd using lm35...pls help asap</description>
		<content:encoded><![CDATA[<p>I wnted details about how to display room temperature on a 16*2 lcd using lm35&#8230;pls help asap</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: florinciobanu</title>
		<link>http://www.youritronics.com/lm35-based-thermometer-display-temperature-on-lcd/comment-page-1/#comment-12017</link>
		<dc:creator>florinciobanu</dc:creator>
		<pubDate>Sat, 12 Jun 2010 07:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.youritronics.com/?p=1253#comment-12017</guid>
		<description>http://www.avrprojects.net/index.php?option=com_attachments&amp;task=download&amp;id=10</description>
		<content:encoded><![CDATA[<p><a href="http://www.avrprojects.net/index.php?option=com_attachments&#038;task=download&#038;id=10" rel="nofollow">http://www.avrprojects.net/index.php?option=com_attachments&#038;task=download&#038;id=10</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NAINA</title>
		<link>http://www.youritronics.com/lm35-based-thermometer-display-temperature-on-lcd/comment-page-1/#comment-11944</link>
		<dc:creator>NAINA</dc:creator>
		<pubDate>Sun, 06 Jun 2010 07:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.youritronics.com/?p=1253#comment-11944</guid>
		<description>i need embedded C programing for lcd thermometer using lm 35.
plz help me....</description>
		<content:encoded><![CDATA[<p>i need embedded C programing for lcd thermometer using lm 35.<br />
plz help me&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamran</title>
		<link>http://www.youritronics.com/lm35-based-thermometer-display-temperature-on-lcd/comment-page-1/#comment-9297</link>
		<dc:creator>kamran</dc:creator>
		<pubDate>Thu, 28 Jan 2010 18:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.youritronics.com/?p=1253#comment-9297</guid>
		<description>// ***********************************************************
// Project:
// Author:
// Module description:
// ***********************************************************

#include               // Most basic include files
#include       // Add the necessary ones
#include           // here
#include 
#define F_CPU 1000000

// Define here the global static variables
//
int My_global;
const char enable = 0x08;


void lcd_init(void);
void write_inst(char val);
void write_data(char val);
void write_text( unsigned char* aray );
          // Prototype for Keys_comb, with one input argument

// Interrupt handler example for INT0
//
SIGNAL(SIG_INTERRUPT0) {

}

// It is recommended to use this coding style to
// follow better the mixed C-assembly code in the
// Program Memory window
//
void my_function(void) {  // Put the open brace &#039;{&#039; here

            // Inline assembly example

}



// ***********************************************************
// Main program
//
int main(void) {




                //Configuring DDRB for Output, to view the key pressed

              // my_function();      //Calling my_function




  DDRC = 0xFF;
  DDRD = 0x0C;
  DDRB = 0x01;
  DDRA = 0xFF;

  PORTC = 0x00;
  lcd_init();
  write_text(&quot;WELCOME......!&quot;);


  while(1) {            // Infinite loop; define here the


  }

}


void lcd_init(void)
{
    _delay_ms(15);
    write_inst(0x30);
    write_inst(0x30);
    write_inst(0x30);
    write_inst(0x36); //Set interface length
    write_inst(0x08); //Enable Display/Cursor off for now
    write_inst(0x01); //Clear Display
    write_inst(0x06); //set curser move
    write_inst(0x0F); //Enable Display
    
}

void write_inst(char val)
{
    PORTB = 0x00;
    PORTC = 0x01;
    PORTA = val;
    PORTC = 0x00;
    _delay_ms(15);    
}

void write_data(char val)
{
    PORTB = 0x01;
    PORTC = 0x01;
    PORTA = val;
    PORTC = 0x00;
    _delay_ms(1);
}

void write_text( unsigned char* aray )
{
    unsigned char i=0;
  while(aray[i] != &#039;&#039;)
  {
      write_data(aray[i]);
      i++;
      if(i==19)
      {
          write_inst(0xc0);  //new linge
      }
    }
}</description>
		<content:encoded><![CDATA[<p>// ***********************************************************<br />
// Project:<br />
// Author:<br />
// Module description:<br />
// ***********************************************************</p>
<p>#include               // Most basic include files<br />
#include       // Add the necessary ones<br />
#include           // here<br />
#include<br />
#define F_CPU 1000000</p>
<p>// Define here the global static variables<br />
//<br />
int My_global;<br />
const char enable = 0&#215;08;</p>
<p>void lcd_init(void);<br />
void write_inst(char val);<br />
void write_data(char val);<br />
void write_text( unsigned char* aray );<br />
          // Prototype for Keys_comb, with one input argument</p>
<p>// Interrupt handler example for INT0<br />
//<br />
SIGNAL(SIG_INTERRUPT0) {</p>
<p>}</p>
<p>// It is recommended to use this coding style to<br />
// follow better the mixed C-assembly code in the<br />
// Program Memory window<br />
//<br />
void my_function(void) {  // Put the open brace &#8216;{&#8216; here</p>
<p>            // Inline assembly example</p>
<p>}</p>
<p>// ***********************************************************<br />
// Main program<br />
//<br />
int main(void) {</p>
<p>                //Configuring DDRB for Output, to view the key pressed</p>
<p>              // my_function();      //Calling my_function</p>
<p>  DDRC = 0xFF;<br />
  DDRD = 0x0C;<br />
  DDRB = 0&#215;01;<br />
  DDRA = 0xFF;</p>
<p>  PORTC = 0&#215;00;<br />
  lcd_init();<br />
  write_text(&#8220;WELCOME&#8230;&#8230;!&#8221;);</p>
<p>  while(1) {            // Infinite loop; define here the</p>
<p>  }</p>
<p>}</p>
<p>void lcd_init(void)<br />
{<br />
    _delay_ms(15);<br />
    write_inst(0&#215;30);<br />
    write_inst(0&#215;30);<br />
    write_inst(0&#215;30);<br />
    write_inst(0&#215;36); //Set interface length<br />
    write_inst(0&#215;08); //Enable Display/Cursor off for now<br />
    write_inst(0&#215;01); //Clear Display<br />
    write_inst(0&#215;06); //set curser move<br />
    write_inst(0x0F); //Enable Display</p>
<p>}</p>
<p>void write_inst(char val)<br />
{<br />
    PORTB = 0&#215;00;<br />
    PORTC = 0&#215;01;<br />
    PORTA = val;<br />
    PORTC = 0&#215;00;<br />
    _delay_ms(15);<br />
}</p>
<p>void write_data(char val)<br />
{<br />
    PORTB = 0&#215;01;<br />
    PORTC = 0&#215;01;<br />
    PORTA = val;<br />
    PORTC = 0&#215;00;<br />
    _delay_ms(1);<br />
}</p>
<p>void write_text( unsigned char* aray )<br />
{<br />
    unsigned char i=0;<br />
  while(aray[i] != &#8221;)<br />
  {<br />
      write_data(aray[i]);<br />
      i++;<br />
      if(i==19)<br />
      {<br />
          write_inst(0xc0);  //new linge<br />
      }<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alirezaz</title>
		<link>http://www.youritronics.com/lm35-based-thermometer-display-temperature-on-lcd/comment-page-1/#comment-6110</link>
		<dc:creator>alirezaz</dc:creator>
		<pubDate>Sat, 07 Mar 2009 17:02:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.youritronics.com/?p=1253#comment-6110</guid>
		<description>hello .  me name is alireza me need progeram lcd for damasanj im very need send to e mail good bye</description>
		<content:encoded><![CDATA[<p>hello .  me name is alireza me need progeram lcd for damasanj im very need send to e mail good bye</p>
]]></content:encoded>
	</item>
</channel>
</rss>

