Arduino LCD Thermometer with LM35 Temp Sensor

 by WWC
This is as the title implies, An Arduino powered LCD monitored thermometer that uses an LM35 temp sensor for the temp readings. If you have never worked with an LCD before like me some things can be a little confusing such as: the first line, the top line is line 0. The second line, bottom line is line 1. But no matter once some of these things are figured out its easier to move on.

These run one time at power up:

First display line 0 is Waynes World 
First display line 1 is Thermometer 
Second display line 0 is LCD Displayed
Second display line 1 is Averaged Temp

These run over and over in the loop:

Third display line 0 is Current Temp is:
Third display line 1 is Celius [ tempC displayed ]
Fourth display line 0 is Current Temp is:
fourth display line 1 is Fahrenheit [ tempF displayed]

So the information that changes every 3 seconds on the display is it changes on line 1 from display three to display four. Celcius  tempC] to Fahrenheit  [tempF] 

LCD's  have one big plus that makes it easier for us to work with them. The LCD library.
When you download and install the Arduino program that is just one of the many libraries that are included.
 
While this LCD is after-after market it still utilizes the extremely common HD44780 parallel interface chipset. Lucky for me.
It can be used in 4-Bit or 8-Bit mode. We are using the 4-Bit mode here. That's why pins 7,8,9 and 10 of the LCD are not used.
If you are using 8-Bit mode then those pins will be used also.

This is the second time i have written this sketch. The first time i deleted it right after i finished it. Woops!
It' s good really, i need all the practice i can get for coding.  

 YouTube video link.

 
Remove these adsRemove these ads by Signing Up
iceng says: Oct 25, 2012. 6:34 PM
Eloquently straight forward wiring, good coding nice project..

Am I imagining your C° scale only does even numbers ??

A
WWC (author) in reply to icengOct 25, 2012. 6:57 PM
Thank A.
This is quite a bit better than my first coding projects.

It seams to be displaying an odd number in the tens, ones and tenths places, if i understand you question correctly.

But there is a difference in the C compared to the F. I think you spotted it. I haven't been able to fix it. The C will display to the second temp changes. You can watch the numbers change on the display, while the F will display a single temp value. No change visible on current display showing.
All that is hard to explain.
If you watch the video you can see what the C value does compared to the F value.
iceng in reply to WWCOct 25, 2012. 8:19 PM
I did watch it but the first time though I did not pay attention till half way through.

On the second watching .... Yes, there are two odd number C° values.

Sorry to cast aspersions half cocked :-)

WWC (author) in reply to icengOct 25, 2012. 8:28 PM
Magnanimous
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!