ESP32-CAM-Video-Recorder-junior icon indicating copy to clipboard operation
ESP32-CAM-Video-Recorder-junior copied to clipboard

Make it work with ESP32S3 model

Open FrancescoMontedori opened this issue 2 years ago • 5 comments

Hi, and thanks for sharing your project. I was able to make this sketch work on ESP32 CAM and it worked like a charm. However i would like to try to use this sketch on the ESP32S3 CAM. Have you ever tryed to upload the code on the ESP32S3 CAM? I just tryed to upload the same code i uploaded to the ESP32 CAM but, as i expected, i receive this error:

as

My guess is that the SD card PIN on ESP32S3 CAM are different from the pin used in the ESP32 CAM, do you think that this could be the problem? In that case, which are the PIN used for the SD card in your sketch?

Sorry for the dumb question but I am quite new to C programming.

FrancescoMontedori avatar Apr 21 '23 10:04 FrancescoMontedori

Do you have a link to that device? Schematic?

jameszah avatar Apr 22 '23 02:04 jameszah

Hi, thanks. I attach the board schematic:

ESP32S3_Pinout

FrancescoMontedori avatar Apr 22 '23 08:04 FrancescoMontedori

Hi,

I would also like to know if its possible to use the code on ESP32S3 CAM or any other ESP device? Should the code be change and which parts should be changed? Also new to programming.

Thank you for your project so far!

johnmcginn1 avatar Aug 25 '23 13:08 johnmcginn1

The error says that the Pin has not been initialized, at the beginning of the program, add #define SD_MMC_CMD 38 //Please do not modify it. #define SD_MMC_CLK 39 //Please do not modify it. #define SD_MMC_D0 40 //Please do not modify it. To the function static esp_err_t init_sdcard() add a line SD_MMC.setPins(SD_MMC_CLK, SD_MMC_CMD, SD_MMC_D0); before opening the SD card

UserID161 avatar Apr 12 '24 06:04 UserID161

https://github.com/espressif/arduino-esp32/tree/master/libraries/SD_MMC#pin-assignments-for-esp32-s3

That does not happened automatically with the correct arduino board library??? Which board library are you using?

jameszah avatar Apr 12 '24 17:04 jameszah