Smart Home Automation Forum
how to replace ESP32 large memory module for KinCony ESP32 Controller - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-A series and Uair Smart Controller (https://www.kincony.com/forum/forumdisplay.php?fid=6)
+--- Thread: how to replace ESP32 large memory module for KinCony ESP32 Controller (/showthread.php?tid=5926)



how to replace ESP32 large memory module for KinCony ESP32 Controller - admin - 06-18-2024

this video replace ESP32-WROOM-32 by ESP32-WROOM-32E N16R2 for KinCony KC868-A8S board. it have PSRAM with ESP32. just make sure not need GPIO16 when you need to use PSRAM. So we have removed U17 chip, so that cut the ESP32 GPIO16 circuit.

   
   
here is arduino code for testing PSRAM and all hardware information for ESP32:
   
arduino source code download:

.zip   test-psram.zip (Size: 596 bytes / Downloads: 41)
Code:
#include <Arduino.h>

void setup() {

//Use this code to init the pSARM
  Serial.begin(115200);

// 打印 Arduino 库的版本信息

Serial.println("Arduino 库版本");
Serial.println(ESP_ARDUINO_VERSION);

   // 获取 Flash 大小(以字节为单位)
  uint32_t flashSize = ESP.getFlashChipSize();
  Serial.printf("Flash Size: %u bytes\n", flashSize);

  // 获取 PSRAM 的大小(以字节为单位)
  uint32_t psramSize = ESP.getPsramSize();
  Serial.printf("PSRAM Size: %u bytes\n", psramSize);

  // 获取剩余内存
  uint32_t freeMemory = ESP.getFreeHeap();
  Serial.printf("Free Memory: %u bytes\n", freeMemory);

   // 获取总内存
  uint32_t Totalheap = ESP.getHeapSize();
  Serial.printf("Total heap: %u bytes\n", Totalheap);

   // 获取 PSRAM 剩余内存
  uint32_t FreePSRAM = ESP.getFreePsram();
  Serial.printf("Free PSRAM: %u bytes\n", FreePSRAM);
 

}

void loop() {}