ich habe mich an die LC-Displays gewagt, komme jedoch nicht weiter und ich kann mir nicht erklären woran es liegt. Nun ich möchte zunächst einfach nur ein Wort auf einem LCD ausgeben. Habe mir dazu diverse Tutorials und Videos angeschaut und im Prinzip einfach alles kopiert. Nun wird mir aber trotzdem nichts auf dem Display angezeigt. Die Kommunikation scheint aber zu funktionieren da ich zu testzwecken das Display über den Arduino an und aus schalten lasse. Wieso wird mir aber nichts an Text auf dem Display angezeigt??
Zur verwendeten Hardware: HD44780 1602 LCD Modul Display Bundle mit I2C Schnittstelle 2x16 und ein Arduino Uno. Außerdem verwende ich die Wire.h Lib und die LiquidCrystal_I2C.h lib. Mein Code sieht wie folgt aus:
For an I2C LCD display to work, the I2C address and the I2C backpack to LCD pin mapping must be correct. If the library default settings for either or both are not correct the LCD will not work. You can try to figure out the right pin mapping and use an I2C scanner to find the address, but if you install and use the hd44780 library that is done automatically by the library.
To install the hd44780 library. The hd44780 library is the best available for I2C LCDs. The library is available in the Library Manager. Go to Library Manager (in the IDE menus, Sketch, Include Libraries, Manage Libraries) and in the Topics dropdown choose Display and in the Filter your search box enter hd44780. Select and install the hd44780 library by Bill Perry.
The class that you want to use is the hd44780_I2Cexp class. There are examples to show how to use the library. The nice thing about the hd44780 library is that it will autodetect the I2C address and the I2C backpack to LCD pin mapping.
In the examples, there is a diagnostic sketch that will help us to help you if you still have trouble with the display. Run the diagnostic sketch and post the results.
I've ventured to the LC displays, but I can't get any further and I can't explain why. Well, first I just want to output a word on an LCD. I've watched various tutorials and videos and basically just copied everything. However, nothing is shown on the display. However, the communication seems to work because I have the display switched on and off via the Arduino for test purposes. But why isn't any text shown on the display?
The hardware used: HD44780 1602 LCD Module Display Bundle with I2C interface 2x16 and an Arduino Uno. I also use the Wire.h lib and the LiquidCrystal_I2C.h lib.
OK, so all this depends on what "nothing is shown on the display" means.
If nothing at all, you need to get the contrast working. Connect the I²C interface power - 5 V and ground - only and adjust the blue contrast potentiometer until you see a row of "blocks" on the first line (only).
Then connect the I²C interface fully and try your code.
Wenn überhaupt nichts, müssen Sie den Kontrast zum Laufen bringen. Schließen Sie nur die Stromversorgung der I²C-Schnittstelle - 5 V und Masse - an und stellen Sie das blaue Kontrastpotentiometer ein, bis Sie (nur) eine Reihe von "Blöcken" in der ersten Zeile sehen.
Schließen Sie dann die I²C-Schnittstelle vollständig an und probieren Sie Ihren Code aus.
Du schreibst das die backlight Steuerung funktioniert.
Aber hast du auch den Kontrast-Poti richtig eingestellt?
Weiters ist dein Programm falsch aufgebaut. Z.B. init gehört in setup().
Nimm das HelloWorld Beispiel das mit der Library mitgeliefert wird.