Lcd is not working on pcb board

I have a circuit that I designed for my project. everything works on breadboard and pcb board.
Only just lcd works on breadboard but not on pcb.


#include <math.h>
#include <Wire.h>
#include <DHT11.h>
#include <LiquidCrystal.h>
#define led 3
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
const int ldrPin = A0;
int DHT11_pin=2,kontrol=0;
double isik,lux,direnc; 
DHT11 dht11(2);
void setup ()
{
  attachInterrupt(digitalPinToInterrupt(led),kesme,CHANGE);
  pinMode(ldrPin,INPUT);
  pinMode(led,OUTPUT);
  lcd.begin(16,2);
  lcd.setCursor(0,0);
  lcd.print("  vitreus  ");
  lcd.setCursor(0,1);
  lcd.print("   yellow  ");
  delay(1000);
   lcd.clear();
   }
void loop ()
{
  int ldrValue = analogRead(ldrPin);
  isik =analogRead(ldrPin);
  direnc = ((1023/isik)-1)*10000;
  lux = (1.25e7)*pow(direnc,-1.4059);
 
  lcd.setCursor(0,0);
 
   if (lux<50)
  {
    digitalWrite(led,HIGH);
  }
  if (lux>=50)
  {
   digitalWrite(led,LOW); 
    }
  lcd.print("Lux = ");
  lcd.print(lux);
  if(kontrol)
  {
    int humidity=dht11.readHumidity();
    int temperature=dht11.readTemperature();
    lcd.setCursor(0,1);
    lcd.print("Nem:%");
    lcd.print(humidity);
    lcd.print(" Temp:");
    lcd.print(temperature);
    lcd.print("C");
    
}
else
{
  lcd.setCursor(0,1);
  lcd.print("Led Yanmiyor    ");
}
  delay(500);
  
}

void kesme()
{
if(!kontrol)

 kontrol=1;
 else 
  kontrol=0;
}```

Check your pin mapping and for a bad solder connections. From the picture I would expect a cold solder joint.

Some of your soldering looks very iffy. A couple of the LCD data lines don't look like they have any solder on the pins at all. And it's hard to say for certain, but whatever that row of pins that the LCD traces connect to look to have shorts between some of the pins. Is an Uno supposed to plug into that somehow?

Also, it's again hard to say for certain from the photo but it looks like there's a spare pin or two on the right side of the LCD socket in the third picture.

i tested all traces and pins with multimeter, there is no shorts between them. And yes an plugs into pcb. this lcd connection works fine on breadboard also

Red arrow: could be a short circuit;
Blue arrows, could be "cold" solder.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.