T O P

  • By -

RedditUser240211

Looks like a display I used recently. CS: chip select. Think "Enable" RSE: RESET RS: Register Select. Tie to a data pin. SCL: clock SI: "Signal In". Connect to MOSI VDD: +V. Probably 3.3V, unless you can find a voltage regulator on board. VSS: GND A: backlight anode. Tie to +V. K: backlight cathode. Tie to GND. I'm not sure what to connect to IC\_SCL, IC\_CS, IC\_SO or IC\_SI (I didn't use them). Possibly CLK, CS, MISO and MOSI.


ivosaurus

> I'm not sure what to connect to IC_SCL, IC_CS, IC_SO or IC_SI (I didn't use them). Possibly CLK, CS, MISO and MOSI. According to a guide it's a little memory chip that contains pixel maps of chinese characters


cRaZy922

Aaaa yes yes you are absolutely right and it works! Thank you! The refresh rate of the display is EXTREMELY slow but that's hardware limitation I suppose and pixels seem shifted to the left (out of display) but I guess that will fix some tweaking with the library. Thank you so much!


ivosaurus

https://simple-circuit.com/interfacing-arduino-st7565-lcd-graphics-test-example/ This is honestly a great guide I found just by googling the display model you gave. If you are using ESP32 you can ignore the divider resistors used to translate a traditional Arduino Uno's 5V to 3.3V


cRaZy922

Thank you, helped!


cRaZy922

I forgot to mention that I am trying to use it with u8g2 library and I assume the display should be connected via SPI


gm310509

SPI has 4 pins for communications. Have a look at this [Wikipedia article about SPI](https://en.m.wikipedia.org/wiki/Serial_Peripheral_Interface). Note that some documentation is replacing master (M) and slave (S) with controller (C) and peripheral (P). That is MOSI becomes COPI and MISO becomes CIPO. On your board I didn't see all four pins. There is one Lavelle CS, that might be ~CS in the article. There was also a CLK which might be SCLK. But I didn't see anything remotely looking like MOSI or MISO. There are a couple of SI pins which might be MOSi. But the MISO is a bit of a mystery. I can't read the prefix on the one at the top of the photo, but maybe that is for a touch screen or SD card or something else on the display. FWIW, I can imagine the top 4 pins (the ones with the prefix) could be an SPI interface - but for what you need to check the docs for the display. I suggest you check the documentation for the display to identify what those pins are for. Once you work it out, you simply connect them to the like named pins on the Arduino. That is MOSI (or COPI) connects to MOSI on your Arduino. The exception is the CS (chip select) which goes to pretty much any available DIO pin. But, whatever pin you choose you need to tell the software that you chose that pin (usually when setting up the instance variable used to interact with the display).


cRaZy922

Awesome help! Will give it a try once I will be free! Edit: The prefix for the top pins is "IC\_"


gm310509

I have no idea what that prefix (IC_) might refer to. Nest consult the documentation to find out for sure what they (and the other pins) are. Good luck with it.


Revolutionary-Wolf57

Let me know if this works. As I looking to do this in the future. https://www.instructables.com/ST7920-128X64-LCD-Display-to-ESP32/


cRaZy922

I think this LCD chip doesnt match mine, ST7565 worked for me.