I bought an Elegoo Super Starter kit and I’m on the thermometer project. I’ve wired and programmed the Arduino and LCD as Elegoo said, but it still isn’t working. The LCD is glowing and blue but no characters are getting displayed some pics:
I would also recommend that you use a I2c backpack if you are going to advance beyond the Elegoo starter pack.
I noticed that in your schematic, the middle pin of your potentiometer isn't even connected to your LCD - make sure that issue isn't duplicated in your actual circuit, although the backlight probably wouldn't even work if it wasn't connected to the pot.
This is a lot neater, plus displays degrees symbol:
// Display Temperature in C
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Temp: ");
// Display Temperature in C
lcd.print(tempC);
lcd.print(" ");
lcd.print((char)223);
lcd.print("C");
delay(500);
You'll have to repeat that for farenheit. lcd.clear(); is not the best way of telling the lcd to "reset", but for the sake of simplicity it'll work.
Your code worked beautifully on my I2C LCD, with a couple of changes for the library difference...
You need to set the contrast using the potentiometer. But first, you should correct an unfortunate mistake perpetrated in design after design since virtually the introduction of these displays. Remove the connection between the potentiometer and 5 V (the red wire shown).
If you have a 10k potentiometer as is the "standard" suggestion, connect both ends of the potentiometer to ground. Then adjust it until you see something - either a row of "blocks" on the upper line if your code is not working, or the desired text if it is.
The backlight has nothing whatsoever to do with the potentiometer.
Not a bad idea for testing, but the diagram does show the potentiometer actually connected for the type whose wiper connection is on the opposite side, so turning it to the ground end should work.
Is this a standing up pot? Or is there a pin under the top of the pot:
Yes sorry, I was in a hurry, I meant the contrast/character display area.
Yes, true. I replaced the library files with the I2C ones. That was the only thing I changed.
All I was saying is that it worked with minimal changes.
Maybe the Elegoo LCD is broken? I'm not really sure as I don't really stray from the I2C LCD's very often. I'll leave that up to the experts on non I2C LCD's.
The OP must realize that not following a wiring schematic when making wiring interconnections can lead to time wasted, burning components and the possibility of damaging their PC.
In this example, 5V was connected to the LCD Vss pin.
This applies reverse power to the LCD, lucky the GND was not connected to the LCD; however, the signal wires could back feed to the Arduino.
Not being careful when wiring your circuits can lead to tears .