Project showcase
Digital Thermometer [For Beginners!]

Digital Thermometer [For Beginners!] © CC BY-NC

A digital thermometer which measures temperature in Celsius. Big thanks to Elegoo for their products and their electronic guide!

  • 1,350 views
  • 5 comments
  • 6 respects

Components and supplies

Apps and online services

About this project

I am a complete beginner in the Arduniverse, and this is a great result from a brainwave that got me hooked on this project. I have started "walking" my way through Arduino, (while making many mistakes and making things that don't work), and went here with this project, hoping it would be useful for you! The only part that got me stuck for a day, was the programming of the LCD - I was still looking for help at the corner of the Project Hub... All you need is listed below. If you ever make this project, please contact me - or just sent me a picture. I would be glad to hear that someone made this, and I hope to other beginners to have a smooth start, just like me!

Code

Arduino IDEArduino
You just can copy & paste it later!
//www.elegoo.com
//2016.12.9

#include <LiquidCrystal.h>
int tempPin = 0;
//                BS  E  D4 D5  D6 D7
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
void setup()
{
  lcd.begin(16, 2);
}
void loop()
{
  int tempReading = analogRead(tempPin);
  // This is OK
  double tempK = log(10000.0 * ((1024.0 / tempReading - 1)));
  tempK = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * tempK * tempK )) * tempK );       //  Temp Kelvin
  float tempC = tempK - 273.15;            // Convert Kelvin to Celcius
  float tempF = (tempC * 9.0)/ 5.0 + 32.0; // Convert Celcius to Fahrenheit
  /*  replaced
    float tempVolts = tempReading * 5.0 / 1024.0;
    float tempC = (tempVolts - 0.5) * 10.0;
    float tempF = tempC * 9.0 / 5.0 + 32.0;
  */
  // Display Temperature in C
  lcd.setCursor(0, 0);
  lcd.print("Temp         C  ");
  // Display Temperature in F
  //lcd.print("Temp         F  ");
  lcd.setCursor(6, 0);
  // Display Temperature in C
  lcd.print(tempC);
  // Display Temperature in F
  //lcd.print(tempF);
  delay(500);
}

Custom parts and enclosures

Here is an image of the project!
Project thermometer1 s965wm2ylg

Schematics

This is the Wiring Diagram [It show how to connect the wires]
By just looking at it you can build the whole circuit!
Project thermometerwiring 8hyuttjspz

Comments

Similar projects you might like

Easy Thermometer v1

Project tutorial by hixel

  • 1,362 views
  • 1 comment
  • 3 respects

Complete Digital Clock Including Alarm and Motion Sensor

Project tutorial by LAGSILVA

  • 19,197 views
  • 21 comments
  • 65 respects

Arduino Based IR Thermometer with TFT Display and TMP006

Project tutorial by antiElectron

  • 3,190 views
  • 0 comments
  • 9 respects

Digital Level

Project showcase by elegoo-arduino

  • 1,447 views
  • 0 comments
  • 5 respects

LCD Thermometer With LEDs And Alarm Signal

Project showcase by GioMac

  • 7,019 views
  • 6 comments
  • 28 respects

Simple Arduino Digital Clock Without RTC

Project in progress by Annlee Fores

  • 116,864 views
  • 29 comments
  • 106 respects
Add projectSign up / Login