Temperature Sensor(LM35) With LCD(JHD162A)

Introduction: Temperature Sensor(LM35) With LCD(JHD162A)

Hey guys!
moxigen here. Since the summer's out here it's been scorching hot and has made me wonder what would be the temperature. Hence, I decided to put together some stuff to create a temperature sensor.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Materials Required

You would require the following parts:
1. A 16x2 LCD screen(JHD162A used in my case.

2. A 10k potentiometer.

3. LM35 temperature sensor

4. jumper wires

5.A breadboard

6. A Arduino Prototype( Arduino Mega 2560 used in my case)

Step 2: Wire It Up

Connect the LCD and LM35 as shown.

Step 3: Uploading the Code Via USB

#include
float temp;
int tempPin = 0;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup()
{
  Serial.begin(9600);
  lcd.begin(16, 2);
}

void loop()
{
  temp = analogRead(tempPin);
  temp = temp * 0.48828125;
  Serial.print("TEMPRATURE = ");
  Serial.print(temp);
  Serial.print("*C");
  Serial.println();
  lcd.setCursor(0,0);
  lcd.print("Temperature:");
  lcd.setCursor(0,1);
  lcd.print(temp);
  lcd.print("*c");
  delay(1000);
}

Step 4: Acknowledgements

Thank ya all for having a look at my instructable. I'm open to criticism, so feel free to comment.

Also, please follow my Instagram account if possible( moxigen)

Coded Creations

Participated in the
Coded Creations

Be the First to Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020

    11 Discussions

    0
    IvanC52
    IvanC52

    4 years ago

    ivan

    wire pin2 lcd stops in no ware

    0
    MokshJadhav
    MokshJadhav

    Reply 4 years ago

    Glad to know that :)

    0
    vijay612
    vijay612

    4 years ago

    i did all as above my lcd working well displaying but my lm35 getting heat and my arduino gets off may i know y

    0
    MokshJadhav
    MokshJadhav

    Reply 4 years ago

    Please recheck which temperature sensor model you're using and check the wiring.

    0
    rachitm96
    rachitm96

    4 years ago

    What if i replace the lcd screen with 7 segment displays?

    0
    MokshJadhav
    MokshJadhav

    Reply 4 years ago

    I'll have the code forwarded to you, I've already done that project.
    For assembling the stuff, check out my other instructable in which I've used 2 seven segment displays.

    Yo! Buddy I'm Ritik....I'm Also 15. Well this is a nice instructable...Really enjoyed it.

    But you could have used Backlight for the LCD,that would have looked very nice.

    0
    MokshJadhav
    MokshJadhav

    Reply 5 years ago

    @RitikBharadwaj
    connect the last pin on the right to GND and the 2nd last one to 3.3v(no resistor required) and the backlight would be on. I have shown it in my 3rd fritzing diagram.

    0
    Er SukhmanS
    Er SukhmanS

    Reply 4 years ago on Introduction

    SIR

    please send some electronics projects with their circuits hex file and equipments required at this email.... Sukhmandeol751@gmail.com

    0
    MokshJadhav
    MokshJadhav

    Reply 5 years ago

    Also, I'm really glad you liked it :)