TONI ShareHub

ESP32 Wireless MicroSD NAS & Local File-Sharing Server

Project Overview

TONI ShareHub is a low-cost, portable wireless Network Attached Storage (NAS) system built using an ESP32 microcontroller and a MicroSD card. It provides centralized file storage that allows multiple users connected to the same Wi-Fi network to securely access, upload, download and manage shared files through a browser-based web interface. The system operates independently of cloud storage and internet connectivity, providing a private local file-sharing environment accessible from smartphones, laptops and desktop computers.

Key Features

  • Multi-User Access: Allows multiple devices to access centralized storage simultaneously
  • User Authentication: Login system with individual user credentials
  • Role-Based Access Control: Separate administrator and standard user permissions
  • Shared File Storage: Centralized storage using a MicroSD card
  • File Upload: Upload files directly from mobile devices and computers
  • File Download: Download stored files through the web interface
  • File Management: Create folders, rename, delete and organize files
  • File Browser: Browse directories and view available files
  • Storage Monitoring: Display total, used and available storage capacity
  • Responsive Web Dashboard: Mobile-friendly and desktop-compatible interface
  • Wi-Fi Connectivity: Access files through a shared local wireless network
  • Offline Operation: File sharing without requiring internet or cloud services
  • Session Management: Maintain authenticated user sessions with expiration
  • Concurrent Access Management: Coordinate simultaneous file operations
  • Administrator Dashboard: Manage users, permissions and shared storage
  • Access Point Mode: Option to create a dedicated Wi-Fi hotspot
  • File Search: Locate stored files by filename

Core Functionality

  • Storage Initialization: Detects and mounts the MicroSD card using a FAT32 filesystem
  • Network Connectivity: Connects to an existing Wi-Fi router or operates as a wireless access point
  • Authentication System: Verifies user credentials and manages authenticated sessions
  • HTTP Server: Handles browser requests and provides file-management API endpoints
  • File Operations: Processes file uploads, downloads, directory listings, renaming and deletion
  • Access Control: Restricts file operations according to user permissions
  • Storage Management: Tracks filesystem usage and coordinates file access
  • Concurrent Processing: Uses FreeRTOS task management and synchronization mechanisms to handle multiple requests safely

Technical Highlights

  • Embedded wireless networking using ESP32
  • SPI-based MicroSD storage integration
  • FAT32 filesystem management
  • HTTP server and REST API development
  • Session-based user authentication
  • Role-based authorization
  • Multitasking and synchronization using FreeRTOS
  • Efficient file streaming with limited RAM usage
  • Centralized filesystem access and file-operation locking
  • Responsive frontend development
  • Local network communication without cloud dependencies

Technology Stack

ESP32 C/C++ ESP-IDF Arduino Framework FreeRTOS SPI MicroSD Card FAT32 Wi-Fi 2.4 GHz HTTP Server REST API HTML5 CSS3 JavaScript Session-Based Auth FreeRTOS Tasks Mutexes

Architecture

Client Layer

  • Android smartphones
  • Windows computers
  • Linux computers
  • Web browsers

Network Layer

  • Wi-Fi connectivity
  • Local IP communication
  • HTTP request handling

Application Layer

  • Web dashboard
  • Authentication manager
  • User permission manager
  • File management API
  • Session management

Embedded Controller Layer

  • ESP32 microcontroller
  • FreeRTOS task management
  • HTTP server
  • Storage controller
  • Filesystem synchronization

Storage Layer

  • MicroSD card
  • SPI communication
  • FAT32 filesystem
  • Shared file and directory storage

Use Cases

  • Home File Sharing: Share documents, photos and videos between family devices
  • Educational Institutions: Provide centralized access to study materials and assignments
  • Office Environments: Enable local document sharing between employees
  • Offline File Transfer: Transfer files between devices without internet connectivity
  • Portable Storage Server: Convert a MicroSD card into a portable wireless storage system
  • Local Backup Solution: Store and retrieve backups from multiple connected devices

Project Objective

To develop an affordable embedded wireless storage solution that combines microcontroller-based networking, centralized filesystem management and multi-user access into a compact, portable NAS alternative without depending on external cloud services.