am i missing something ??

hello guys ,

I'm trying make a project that can read the temp (TEMP 36) and display it on LCD.

the code works , the wiring is good , but i get get random letters on LCD.
where is my mistake?

#include<LiquidCrystal.h>
LiquidCrystal lcd(7,6,5,4,3,2);

#define sensor A0

byte degree[8] = 
              {
                0b00011,
                0b00011,
                0b00000,
                0b00000,
                0b00000,
                0b00000,
                0b00000,
                0b00000
              };

void setup()
{
  lcd.begin(16,2);
  lcd.createChar(1, degree);
  lcd.setCursor(0,0);
  lcd.print("    Digital    ");
  lcd.setCursor(0,1);
  lcd.print("  Thermometer   ");
  delay(4000);
  lcd.clear();
  lcd.print(" Circuit Digest  ");
  delay(4000);
  lcd.clear();
}

void loop()
{
  /*---------Temperature-------*/
     float reading=analogRead(sensor);
     float temperature=reading*(5.0/1023.0)*100;
     delay(10);
  
  /*------Display Result------*/
    lcd.clear();
    lcd.setCursor(2,0);
    lcd.print("Temperature");
    lcd.setCursor(4,1);
    lcd.print(temperature);
    lcd.write(1);
    lcd.print("C");
    delay(1000);
}

hellllllooo

Hello World.

Just adding the picture for other people:

EDIT:
Just guessing. Try to display something more trivial, e.g. without the value. HW problem? Damaged display? Problem with wiring? Try to display complete character set.

Yes, you are missing several items.

  1. You are missing the wiring diagram see we can understand the program
  2. You are missing the list what hardware you are using and where you got it from
  3. You missing the tests using the example sketches that are known to work for the LCD

All of which are covered in the How To Use this Forum post on the main page.

Great title for a post! I did not even have to look at your post to know that the answer is yes, many things.

See the "How to use this forum" post for hints on, yes, how to use this forum.

LiquidCrystal lcd(7,6,5,4,3,2);

This does not match the wiring in the photo, it's backwards and there is a gap between the data bits and rs & enable in the actual wiring.

A reminder: the parameters are (rs, enable, d4, d5, d6, d7).