ST7920 128X64 LCD Display to ESP32

Introduction: ST7920 128X64 LCD Display to ESP32

This Instructables is clearly not going to win prizes for it's quality or whatever!

Before starting this project, I glazed at the internet and found nothing about connecting this LCD to a ESP32 so I thought that upon success, it should be documented and shared.

Supplies

All you will need is a ST7920 128X64 LCD display, a ESP32 and a 10K pot.

Step 1: The Connections

Connect all three components following the above connections.

It may be possible to use different pins on the ESP32 but I don't know for sure.

Step 2: The Code.

I used the Arduino IDE to upload the code on the ESP32.

If you don't know how to connect and program the ESP32 with the Arduino IDE, look for instructions on the Internet, it's quite easy to find.

The library I used is the U8g2 library V2.27.6 By Oliver.

Once you have installed the U8g2 library, go into examples and open "Examples/U8g2/full_buffer/GraphicsTest".

Now, in the code, Find the line that looks like this:

//U8G2_ST7920_128X64_F_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* CS=*/ 10, /* reset=*/ 8);

And replace it with:

U8G2_ST7920_128X64_F_SW_SPI u8g2(U8G2_R0, /* clock=*/ 18, /* data=*/ 23, /* CS=*/ 5, /* reset=*/ 22); // ESP32

Upload the code to your ESP32 and, fingers crossed, it works!

Step 3: Conclusion

This is my first Instructables.

I know it's not super fancy or anything but at least it's there and it may help someone.

Please comment your experience following these instructions and I'll try update it and make it better!

- Blaise

3 People Made This Project!

Recommendations

  • Meatless Challenge

    Meatless Challenge
  • First Time Author Contest

    First Time Author Contest
  • Fabric Challenge

    Fabric Challenge

6 Comments

0
ingeltro
ingeltro

5 months ago

Hola estaba buscando informacion de como reutilizar esta pantalla muchas gracias.

0
blaisebarrette
blaisebarrette

Reply 5 months ago

Encantado de poder ayudar!

0
castillo_miguel1052
castillo_miguel1052

10 months ago

Amigo muchas gracias! me ha servido bastante tu informacion, saludos desde Colombia, muchos exitos!

0
blaisebarrette
blaisebarrette

Reply 5 months ago

Fico feliz que tenha funcionado para você!

0
Elaina M
Elaina M

2 years ago

Thanks for sharing - and congratulations on taking the leap and posting your first instructable - welcome to the author community :)

0
blaisebarrette
blaisebarrette

Reply 2 years ago

Hey Thanks! Here I am a few days later! LCD is working great!

Photo le 2020-04-23 à 20.06.jpg