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 ads by
Signing UpStep 1: Reference
Some things you will need:
An Arduino of some sort, I actual use an Aceduino. Philippines version of Arduino.
USB cable with type A and B ends.
LCD screen
Bread board
LM35 temp sensor
Assorted jumper wires
Computer
Arduino software
16x2 LCD.pdf272 KB




































Visit Our Store »
Go Pro Today »



Am I imagining your C° scale only does even numbers ??
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.
On the second watching .... Yes, there are two odd number C° values.
Sorry to cast aspersions half cocked :-)