How can i use lcd display 12864 with IIC interface?

Hello,

I have a litle problem, i want to make my project use lcd display 128x64 and IIC interface, but i can't print somethink on this display, i was trying <LiquidCrystal_I2C.h> library, but it didn't work.
How i can print somethink to this display use IIC interface?

What is the controller on the LCD?

If it is full graphics, it's unlikely to be a 44780, so, perhaps, unsurprising that LiquidCrystal_I2C.h will not work

I don't know which controller on lcd i have, but what i need to do or which library i need to use?

TheMemberFormerlyKnownAsAWOL:
What is the controller on the LCD?

If it is full graphics, it's unlikely to be a 44780, so, perhaps, unsurprising that LiquidCrystal_I2C.h will not work

TheMemberFormerlyKnownAsAWOL:
What is the controller on the LCD?

If it is full graphics, it's unlikely to be a 44780, so, perhaps, unsurprising that LiquidCrystal_I2C.h will not work

It "looks" like a KS0108 display.
It "looks" like a DIYMORE KS0108 I2C Adapter.

Your photos are very useful but it is always better to post a link to the actual item(s) that you have bought. e.g. Ebay sale page(s)

If my guess is correct, you can try GitHub - prenticedavid/Adafruit_KS0108_kbv: KS0108 library for DIYMORE 16-bit backpack
It is not an "official" library. So you can't install via the Library Manager. You must install from ZIP.

Please post your item links
Please tell us how you get on.

David.

Thank you for answer, i bought it here
https://star.aliexpress.com/share/share.htm?image=U3c0063d76d284bbdb8829c3d84197f4aK.jpg&businessType=ProductDetail&title=€%200%2C67%20%20-10%%20|%20Модуль%20LCD1602%20LCD%201602%202004%2012864%20Синий%20Зеленый%20экран%2016&platform=AE&redirectUrl=https%3A%2F%2Fwww.aliexpress.com%2Fitem%2F32517589987.html%3F%26srcSns%3Dsns_Copy%26tid%3Dwhite_backgroup_101%26mb%3DZRnGKA1qoYMJoKx

Thank you for answer, i bought it here
https://star.aliexpress.com/share/share.htm?image=U3c0063d76d284bbdb8829c3d84197f4aK.jpg&businessType=ProductDetail&title=€%200%2C67%20%20-10%%20|%20Модуль%20LCD1602%20LCD%201602%202004%2012864%20Синий%20Зеленый%20экран%2016&platform=AE&redirectUrl=https%3A%2F%2Fwww.aliexpress.com%2Fitem%2F32517589987.html%3F%26srcSns%3Dsns_Copy%26tid%3Dwhite_backgroup_101%26mb%3DZRnGKA1qoYMJoKx

david_prentice:
It "looks" like a KS0108 display.
It "looks" like a DIYMORE KS0108 I2C Adapter.

Your photos are very useful but it is always better to post a link to the actual item(s) that you have bought. e.g. Ebay sale page(s)

If my guess is correct, you can try GitHub - prenticedavid/Adafruit_KS0108_kbv: KS0108 library for DIYMORE 16-bit backpack
It is not an "official" library. So you can't install via the Library Manager. You must install from ZIP.

Please post your item links
Please tell us how you get on.

David.

Thanks for the link. None of the 12864 pictures show an I2C adapter.

Both12864 screens show ST7920 controller displays. i.e. you can use SPI without an Adapter.
You can identify ST7920 modules by pin#15 saying PSB.

If your module has no marking on pin#15 it probably is KS0108
If your module does not look exactly like the photos in the link, it is probably KS0108

David.

Edit. On further inspection the module looks like ST7920. The I2C backpack is an embarassment. The device works much better (and faster) by SPI.

If the backpack is soldered on to the pcb it is VERY difficult to remove.
I can probably get the ST7920 working via the I2C backpack.

I’m sorry, I forgot to add link to IIC interface

https://star.aliexpress.com/share/share.htm?image=Ub6f296ed7e9449739a8c3b140ebda6a48.jpg&businessType=ProductDetail&title=€%201%2C35%20%20-15%%20|%20MCP23017%2012864%20128*64%20LCD%20I2C%20IIC%20TWI%20последовательный%20интерфей&platform=AE&redirectUrl=https%3A%2F%2Fwww.aliexpress.com%2Fitem%2F32990139687.html%3F%26srcSns%3Dsns_Copy%26tid%3Dwhite_backgroup_101%26mb%3DZRnGKA1qoYMJoKx

david_prentice:
Thanks for the link. None of the 12864 pictures show an I2C adapter.

Both12864 screens show ST7920 controller displays. i.e. you can use SPI without an Adapter.
You can identify ST7920 modules by pin#15 saying PSB.

If your module has no marking on pin#15 it probably is KS0108
If your module does not look exactly like the photos in the link, it is probably KS0108

David.

Edit. On further inspection the module looks like ST7920. The I2C backpack is an embarassment. The device works much better (and faster) by SPI.

If the backpack is soldered on to the pcb it is VERY difficult to remove.
I can probably get the ST7920 working via the I2C backpack.

Yes, it is the DIYMORE adapter.
Diid you buy it separately from the display?

Have you soldered it to the ST7920 display?

David.

Yes I bought it separately and I soldered it.

david_prentice:
Yes, it is the DIYMORE adapter.
Diid you buy it separately from the display?

Have you soldered it to the ST7920 display?

David.

Ok. That is bad news.

Since the soldering has already been done, you can try GitHub - prenticedavid/Adafruit_ST7920_kbv: Adafruit GFX style library for ST7920 SPI display

Another "non-public" library. But it just happens to be configured in the "USE_PAR + USE_DIYMORE" state on GitHub. I have just tried it from GitHub myself.

So you should be able to install from ZIP. Run the examples. Report back.

When you have verified that the display is working via the I2C interface, I strongly advise you to remove the backpack. Involves a Dremel to cut through the soldered header strip.

Run the ST7920 display on SPI as God intended e.g. with cbm80amiga's ST7920_SPI library.

If you ever buy a KS0108 display the I2C backpack can be used (with fresh header strip). Makes KS0108 practical when you have very few GPIO pins.

David.

It works, i tried example in this library and it works, but now i need write some text. How i can do that?

david_prentice:
Ok. That is bad news.

Since the soldering has already been done, you can try GitHub - prenticedavid/Adafruit_ST7920_kbv: Adafruit GFX style library for ST7920 SPI display

Another "non-public" library. But it just happens to be configured in the "USE_PAR + USE_DIYMORE" state on GitHub. I have just tried it from GitHub myself.

So you should be able to install from ZIP. Run the examples. Report back.

When you have verified that the display is working via the I2C interface, I strongly advise you to remove the backpack. Involves a Dremel to cut through the soldered header strip.

Run the ST7920 display on SPI as God intended e.g. with cbm80amiga's ST7920_SPI library.

If you ever buy a KS0108 display the I2C backpack can be used (with fresh header strip). Makes KS0108 practical when you have very few GPIO pins.

David.

Look at the examples. Similar to Adafruit_SSD1306 programs.

You just make regular Adafruit_GFX calls e.g. drawCircle(), drawLine(), ...
And regular Print calls e.g. setFont(), setCursor(), print(), println(), ...

Remember that stuff is written to the buffer.
You don't see the result until you call display()

David.

THANK YOU VERY MUCH!!!

It works very good, you saved my nerves :slight_smile:

david_prentice:
Look at the examples. Similar to Adafruit_SSD1306 programs.

You just make regular Adafruit_GFX calls e.g. drawCircle(), drawLine(), ...
And regular Print calls e.g. setFont(), setCursor(), print(), println(), ...

Remember that stuff is written to the buffer.
You don't see the result until you call display()

David.

Also, can it works on nodemcu board?

david_prentice:
Look at the examples. Similar to Adafruit_SSD1306 programs.

You just make regular Adafruit_GFX calls e.g. drawCircle(), drawLine(), ...
And regular Print calls e.g. setFont(), setCursor(), print(), println(), ...

Remember that stuff is written to the buffer.
You don't see the result until you call display()

David.

Yes, it should work. VCC=3.3V for the ESP8266.

However the contrast will probably be wrong.

If your ST7920 pcb has a potentiometer mounted at VR1 you can adjust it to get a picture.
My ST7920 has fixed resistors. So it only works with VCC=5V

The blue potentiometer on the backpack adjusts contrast on a KS0108.
It does not do anything on the ST7920.

David.

This topic was automatically closed after 50 days. New replies are no longer allowed.