You are browsing as a guest. Sign up (or log in) to start making projects!

4h 20m 34s logged

DEVLOG (1)

BEHOLD!!!!!

Today I finished one of the core modules of the ESP32 NAS project: SDManager.

The pupose of this module is simple: make the SD card completely independent from the rest of the project. From now on, no other class will communicate directly with SD.h; everything goes through SDManager.

Implemented features

  • SD card initialization
  • Card mounting status
  • Total storage capacity
  • Used storage
  • Free storage
  • Card type detection (SDSC / SDHC / SDXC)
  • File existence check
  • Open files
  • Create folders
  • Rename files and folders
  • Delete files
  • Debug information through the Serial Monitor

I also spent a good amount of time debugging the module. Most of the issues were caused by mismatched function declarations, missing braces, incorrect return types, and a few IntelliSense false positives. After fixing them one by one, the project finally compiled successfully.

Finally, I connected the SD card to the ESP32 and verified that everything works correctly. The board successfully detects the SD card and prints its information, including storage capacity and available space.

With the storage layer now complete, the foundation of the project is becoming much stronger.

Next step: build the WiFiManager module and add mDNS support so the NAS can be accessed using a hostname

0
7

Comments 0

No comments yet. Be the first!