Hello! I wanted to ask about retrieving files from the sd card on the ESP32CAM. Is there a way to query for the files stored on the SD card? So I could check what the name of all the files are on the SD card. I understand I can just save the names but I wanted to ask if there was a more direct way. Thanks.
Hello! I wanted to ask about retrieving files from the sd card on the ESP32CAM. Is there a way to query for the files stored on the SD card? So I could check what the name of all the files are on the SD card. I understand I can just save the names but I wanted to ask if there was a more direct way. Thanks.
The "SD.h" library makes functions available to do just that, so the answer is yes. Having said that however, if you're using an ESP32, you don't even need and SD card, as you can store your files directly on the ESP32 SPIFFS file system itself, which is very handy indeed!
If you have some code that you need some help with, feel free to post it here and we can help you to get it working.
Hello! I wanted to ask about retrieving files from the sd card on the ESP32CAM. Is there a way to query for the files stored on the SD card? So I could check what the name of all the files are on the SD card. I understand I can just save the names but I wanted to ask if there was a more direct way. Thanks.
The "SD.h" library makes functions available to do just that, so the answer is yes. Having said that however, if you're using an ESP32, you don't even need and SD card, as you can store your files directly on the ESP32 SPIFFS file system itself, which is very handy indeed!
If you have some code that you need some help with, feel free to post it here and we can help you to get it working.
Cheers
I just plugged in an esp32cam and it says it has 1MB of SPIFFS, am I missing something? with a 2MP camera that won't hold many pictures especially compared to a TF card of 32GB or more.
It is considered poor judgement to traverse a chasm in 2 leaps.
Hello! I wanted to ask about retrieving files from the sd card on the ESP32CAM. Is there a way to query for the files stored on the SD card? So I could check what the name of all the files are on the SD card. I understand I can just save the names but I wanted to ask if there was a more direct way. Thanks.
The "SD.h" library makes functions available to do just that, so the answer is yes. Having said that however, if you're using an ESP32, you don't even need and SD card, as you can store your files directly on the ESP32 SPIFFS file system itself, which is very handy indeed!
If you have some code that you need some help with, feel free to post it here and we can help you to get it working.
Cheers
I just plugged in an esp32cam and it says it has 1MB of SPIFFS, am I missing something? with a 2MP camera that won't hold many pictures especially compared to a TF card of 32GB or more.
Oop's, I forgot that images needed to be stored 🙂
In any case, you can increase the partition size from the Tools Menu Board Setting, but I think it might only go to 3MB max - I don't know if there are any other ways to expand it via API etc.
In summary, it's still quite a good on board resource (file system) for text files such as HTML, CSS, .JS etc...
@frogandtoad YUP, 1MB default, only 3MB if NO OTA and not a huge app which I suspect the old and especially the new esp32-cam web server camera app is.
It is considered poor judgement to traverse a chasm in 2 leaps.
@frogandtoad YUP, 1MB default, only 3MB if NO OTA and not a huge app which I suspect the old and especially the new esp32-cam web server camera app is.
Yes, but it is still better than EEPROM, or an SD card for basic text files at least, which can store quite a lot of information, and it's much easier to use. I'll do some searching to see if the size can be increased further.
@frogandtoad The board is 4MB total. The app in question is using SPIFFS for something. In my case, I want to make game cameras so could easily be taking hundreds of pictures between visits. Looking at the compile stats, it looks like it might be possible to get SPIFFS up to 1.5MB but that is nowhere near enough especially if I want video as well as pic captures. Also retrieving a TF card and inserting a new one is much quicker than any board access alternative.
It is considered poor judgement to traverse a chasm in 2 leaps.
@frogandtoad The board is 4MB total. The app in question is using SPIFFS for something. In my case, I want to make game cameras so could easily be taking hundreds of pictures between visits. Looking at the compile stats, it looks like it might be possible to get SPIFFS up to 1.5MB but that is nowhere near enough especially if I want video as well as pic captures. Also retrieving a TF card and inserting a new one is much quicker than any board access alternative.
I believe it depends on your board too - It looks like I have different options for partition size:
@frogandtoad The board in question is the somewhat 'standard' AI Thinker ESP32-CAM board. The sketch is able to be configured for a few other boards but I have never seen anything other than the AI Thinker board.
It is considered poor judgement to traverse a chasm in 2 leaps.
@zander @frogandtoad | Sweet, thank you guys for all the information, very helpful! I am using an SD card to store the files, I'm new to browsing documentation, would you happen to know what specific command(s) would be used to find what files are stored on the SD card at a point in time. Thanks!
@zander @frogandtoad | Sweet, thank you guys for all the information, very helpful! I am using an SD card to store the files, I'm new to browsing documentation, would you happen to know what specific command(s) would be used to find what files are stored on the SD card at a point in time. Thanks!
@zander I will clarify? I do not see an answer on how to accesses files on an SD card that is mounted to the AI Thinker ESP32CAM. I am not using the SD.h library, but using the SD_MMC.h Im not sure of the differences as I am new to browsing documentation. If you could, direct me on where I should look if I want to list all of the files stored on the SD card that is on the esp32cam.
@chrispal323 Sorry, but you need to learn how to do your own research. I have never done what you want either, and I found the answer very quickly from another members post.
I was assuming you were using the standard esp32-cam webserver example but it sounds like you are using a different example. I can't even find the SD_MMC library.
You keep saying
I am new to browsing documentation.
That is the number one skill, so maybe that is what you should focus on. Without the ability to read documentation you can not begin to code let alone program.
It is considered poor judgement to traverse a chasm in 2 leaps.
We use cookies on the DroneBot Workshop Forums to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.