Custom PWA to control LEDs via ESP32 and FastLED library.
Based on a tutorial from randomnerdtutorials.com
-
ESP 32 Microcontroller (f.e. Lolin S2 Mini, which fits well into the battery compartment.)
-
5V RGB LED Ring (WS2812B)
-
USB Cable + Power Supply
-
Arduino IDE v1.8.x (See why v1.8.x is needed in About SPIFFS FileSystem Uploader Plugin in Arduino IDE section)
**As of this writing, plugins like "SPIFFS FileSystem Uploader Plugin in Arduino IDE" are only supported by Arduino IDE v1.8.x. So as long as V2 of Arduino IDE does not support the installation of plugins, we will have to stick to the older version of Arduino IDE instead.
-
Go to the releases page and download the latest
.zip
file. -
Go to the sketchbook location.
Usually
C:\Users\YourUsername\Documents\Arduino
on a Windows PC andDocuments/Arduino
on a Mac -
Create a new folder named
tools
, if it does not already exists. -
Copy the
ESP32FS
folder in the downloaded .zip file to the tools folder you created in the previous step. -
Restart Arduino IDE.
-
Make sure you can find the following menu item
Tools > ESP32 Sketch Data Upload
.
-
You will need to save an arduino sketch (can be empty).
-
Open the folder of your sketch.
Sketch > Show Sketch Folder
in Arduino IDE -
Create a folder named
data
, if it does not already exist. -
Put all files you want to transfer to the ESP32 in the folder you created in the previous step.
-
Upload the files by selecting
Tools > ESP32 Sketch Data Upload
in the Arduino IDEThe uploader will overwrite anything you had already saved in the filesystem.
Some ESP32 development require you to press the on-board BOOT button when you see the "Connecting …….____……" message in the Arduino IDE Console.
-
The fileupload was successful, when you see the message "SPIFFS Image Uploaded".