LCD does not display

Hi all,

since yesterday I have my first arduino uno and connected a LCD / Keypad Shield "D1 Robot" to it. When I now tried several of the examples I found on the internet. Even if all were compiled and uploaded successfully, none of them showed anything on the display.

Then I tried a minimalist code like

#include <LiquidCrystal.h>

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

void setup () {
   lcd.begin(20, 2);
   lcd.print("Hello World !");  
}
void loop () {
}

But also this didn't work. The display lights blue and a red lamp next to the "D1 Robot" text on the platine is shown.

Do you have any ideas what I'm doing wrong? Of course I can also provide more information, if you tell me, which.

Thanks and kind regards,

Felix

When powered up, does anything show on the display? Rows of black boxes for instance?

Is there a potentiometer for adjusting the display contrast? Does adjusting it have any effect?

groundFungus:
Is there a potentiometer for adjusting the display contrast? Does adjusting it have any effect?

Well, yes there is, it is at the top left hand corner of the shield and it is a ten turn pot so to get the top row of "blocks" to show you have to turn it a number of times in one direction.

When I get the one I have just ordered, or find the one in my old collection, I could tell you which direction it needs to be turned, :grinning:

Good Morning,

thanks to both of you. I just wanted to reply, that there's a potentiometer. I already tried to turn it by my fingers. In the one direction I had the feeling it was at the "end position" (I couldn't turn further). In the other direction I could turn it a little bit, but it's not so easy doing it by fingers because it's too small (at least for my fingers). So I'll try when I'm at home with a screw driver.

Stupid question: Is there a possibility to "destroy" anything or to remove the screw from the potentiometer in case I drive too long?

No, when you get to the ends there should be a slight clicking feel, but it will not unscrew or hurt anything.

Apparently the manufacturers realise just how absolutely certain would be the damage if there was a "hard" end-stop. The clicking is the permitted jumping of the screw spiral over the gear teeth on the rim of the actual potentiometer wheel.

Back in the stone age I remember that we had some trouble with the long skinny 10-turn Bourns Trimpots.

If you ran them to the end where they started clicking they frequently failed and the gear could not be reengaged to run it back the other way.

Don

I don't see an I2C address. how does the Arduino know where to send the data?

lcd.begin(20, 2); I am accustomed to lcd.begin(16, 2); and lcd.begin(20, 4);. you seem to have a unique LCD module

more like this: LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for 16 chars and 2 line display

Hi,

thanks for your responses. Driving the potentiometer made it. The only problem I still had was, that I used lcd.noDisplay(), because yesterday I thought I can at least switch off the display. This shouldn't have been affected who lighted the display is,... But with my first tries adjusting the potentiometer, now, nothing changed, until I removed lcd.noDisplay(). Argh! :wink:

Now, it works quite fine.

@Emeritus: I meant I was sure, that the LCD has 2 rows and 20 cols, but since I didn't see them, I couldn't count. Now, I'll do and probably you are right, it's 2x16.

Thanks a lot! Now I'm even more motivated to extend the arduini + display with my ethernet shield, make the buttons work,... :wink:

By using the 6 arduino pins in 4 bit mode.... :wink: