• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 Cam PSRAM Usage

Q&A Forum › ESP32 Cam PSRAM Usage
0 Vote Up Vote Down
Jose Rivera asked 3 years ago
5 Answers
1 Vote Up Vote Down
Best Answer
Sara Santos Staff answered 3 years ago

Hi Jose.
I’m sorry for taking so long to get back to you.
It seems I missed your question,
 
Answering your question; I’m not sure. But I think it uses it when you need to stream video and take pictures in higher resolutions as well as performing tasks like face detection and recognition. For example, ESP32-CAM boards without PSRAM can’t do face detection and recognition using the ESPCameraWebServer default example.
 
Regards,
Sara

0 Vote Up Vote Down
Jose Rivera answered 3 years ago

I check the size of the PSRAM after doing a esp_camera_fb_get() and this what I get:
PSRAM found: Yes
22:36:08.356 -> Total PSRAM: 4194252
22:36:08.514 -> Free PSRAM : 4194252
22:36:08.514 -> Used PSRAM : 0
When the ESP32-CAM start using the PSRAM instead of the local RAM ?
Thanks

0 Vote Up Vote Down
Barry answered 3 years ago

Jose
I’m not doing the cam, but would like to know how you checked the PSRAM size. I’ve a custom made pcb with ESP32-WROOM-32U-4
Thanks
Barry

0 Vote Up Vote Down
Jose Rivera answered 3 years ago

For Barry:
void printRamUsage(const String message)
{
Serial.print(“\n– RAM USAGE “); Serial.print(message); Serial.println(” –“);
Serial.printf(“Total heap : %d\n”, ESP.getHeapSize());
Serial.printf(“Free heap : %d\n”, ESP.getFreeHeap());
Serial.printf(“PSRAM found: %s\n”, psramFound()?”Yes”:”No”);
Serial.printf(“Total PSRAM: %d\n”, ESP.getPsramSize());
Serial.printf(“Free PSRAM : %d\n”, ESP.getFreePsram());
Serial.printf(“Used PSRAM : %d\n”, ESP.getPsramSize() – ESP.getFreePsram());
Serial.printf(“Free Memory: %d\n\n”, GET_FREE_MEMORY());
}// end printRamUsage()
 

0 Vote Up Vote Down
Barry answered 3 years ago

Jose
Thank you! Muchas Gracias!
I suspect this needs the ESP.h lib installed (looking at the commands). I’ll try to find that.
Barry
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.