Skip to content

UnagiDojyou/ArduinoIDE_SD_FAT32_Fileserver

Repository files navigation

ArduinoIDE SD FAT32 Fileserver

Connect an SD card via SPI and browse, edit (delete, rename), and upload the contents of the SD card via HTTP.

sample

Feature

  • View SD card contetnts on browser.
  • Download contents.
  • File upload.
  • Wide compatibility.
    Easy using to other boards.
  • No additional libraries required.
    Use only SD.h (& FS.h) & WiFi.h (or Ethernet.h)

About each version

  • ESP32_FAT32_Fileserver_readwrite
    Files can be viewed, uploaded, deleted, and renamed.
    Enter your WiFi SSID and password into the sketch.
    This is the most basic version for boards with WiFi.
  • ESP32_FAT32_Fileserver_readonly
    Files can be only viewed.
    Enter your WiFi SSID and password into the sketch.
  • RaspberryPiPicoW_FAT32_Fileserver_readwrite
    Files can be viewed, uploaded, deleted, and renamed.
    Enter your WiFi SSID and password into the sketch.
  • RaspberryPiPicoW_FAT32_Fileserver_readonly
    Files can be only viewed.
    Enter your WiFi SSID and password into the sketch.
  • ArduinoUNO_FAT32_Fileserver_readonly
    For ArduinoUNO with Ethernet shield.
    Files can be only viewed. Limited functionality to work with less RAM and Flash.
    Enter the MAC address and IP address in the sketch.
  • ArduinoMEGA_FAT32_Fileserver_readwrite
    For ArduinoMEGA with Ethernet shield.
    Files can be viewed, uploaded, and deleted.
    SD.h for Arduino does not support rename, so there is no renaming function.
    Enter the MAC address and IP address in the sketch.
  • ArduinoMEGA_FAT32_Fileserver_readonly
    For ArduinoMEGA with Ethernet shield.
    Files can be only viewed.
    Enter the MAC address and IP address in the sketch.

Use with other boards

Include CheckAndResponse.h.
SD.bigin() and server.begin() have to done in the setup, and CheckAndResponse() have to be written in the loop.
Select readwrite/readonly in CheckAndResponse.h.
Select UseWiFi/UseEthernet in CheckAndResponse.h.
Select enable/disable Rename function in CheckAndResponse.h. (Some boards' SD.h do not support rename.)

About

Set up an HTML server for a FAT32 SD card using Arduino IDE.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published