Dear Rui,
I have some trouble with the TTGO Camera. The pin used by this camera is different from the ESP32-CAM, I have successfully modified the camera pinout. But for the SD-card the pins should also be modified.
Can you advise me where and how I can change these pins?
Jo
Hi.
With the TTGO T-Plus, these are the microSD card pins:
- MISO GPIO: 22
- MOSI GPIO: 19
- SCLK GPIO: 21
- CS GPIO: 0
I don’t know how to change the default pins using the SDMMC library. I think those can’t be changed. See it here: https://nodemcu.readthedocs.io/en/dev-esp32/modules/sdmmc/#sdmmc-mode
So, you need to use the SD.h library. It allows you to easily change the pins. Here’s the library: https://github.com/espressif/arduino-esp32/tree/master/libraries/SD
Here’s an example using the library: https://randomnerdtutorials.com/esp32-data-logging-temperature-to-microsd-card/
Also, take a look at this discussion: https://github.com/espressif/arduino-esp32/issues/1190#issuecomment-371777387
You also need to change your code to use the SD.h library functions instead.
Let me know if you need further help.
Regards,
Sara