ST7567S with ESP32 without PSRAM

ST7567S I2C 128x64 display can not establish connection with esp32 wroom32. The esp32 doesn't have PSRAM. i used U8G2 library. Full code uploaded to board but i got error message saying PSRAM doesn't found. How can I make it work.


Please help

Could be a problem with your code, or the way you have the display connected.

Did you select the wrong board to compile for?
Disable PSRAM in the compile options of the board selected.

I installed U8G2 library and uploaded the code to esp32 wroom32. I used GPIO21 AND 22 respectively for scl and sda pins

I selected esp32 dev board in arduino ide

I was surprised to see no PSRAM option for the selected board ESP32 Dev Module.
I had ESP32 3.0.5 on this notebook.
Now I updated to ESP32 3.0.7 and all the options are back. PSRAM is disabled initially.

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

configsip: 0, SPIWP:0xee

clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00

mode:DIO, clock div:1

load:0x3fff0030,len:4832

load:0x40078000,len:16460

load:0x40080400,len:4

load:0x40080404,len:3504

entry 0x400805cc

E (140) quad_psram: PS�f5 ID read error: 0xffffffff, PSRAM chip not found or not supported

what could be wrong with this


You need to make sure that PSRAM is disabled

yes it is disabled

#include <Wire.h>
#include <st7567sfGK.h>

st7567sfGK display;

void setup() {
Serial.begin(115200);

display.begin(0x3F); // Check the I2C address
display.clear(true);
display.setCursor(0, 0);
display.print("Test!");
}

void loop() {
// Nothing in loop
}
which library do you recommend to use

when i upload this code in the serial monitor it says : panic: writecommand error: 4

I am not an anti-aircraft missile; I can't follow a moving target.

thanks a lot, it worked with #include <st7567sfGK.h> library. problem is resolved

Hi,

I try to use the same display as your's but I always get the following error
I use also an ESP32 board

Panic: writecommand error: 5

How did you resolved your problem ? and please can you confirm the library you have finnaly used ?

Thanks in advance
Patrick

#include <Wire.h>
#include <st7567sfGK.h>
#include <adafruitfonts/FreeSansBold24pt7b.h> // Use the largest font available

const byte PinSDA = 21;
const byte PinSCL = 22;

st7567sfGKAdafruit display;

void setup() {
Serial.begin(115200);
Wire.begin(); // Set up I2C communication
display.begin(0x3F); // Initialize the display at the correct address
display.rotatedisplay(false);
display.setFont(&FreeSansBold24pt7b);
display.clear(st7567sfGK::colorblack);
display.line(64, 0, 64, 63, st7567sfGK::colorwhite);
}

void loop() {

// Adjust cursor to center the text manually
display.setCursor(3, 64);
display.print("87");

delay(8000);
}


Hi Sir, use this code to get it work. #include <Wire.h>, #include <st7567sfGK.h> install these 2 libraries, they are mandatory. Also check wiring. it should work

Here in this code I used GPIO21 as SDA and GPIO22 as SCL. You should follow your microcontroller's manual to find those SDA and SCL pins. Also check if the I2C communication is not conflicting. my display's I2C address is 0x3F. Check your display's I2C address.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.