MoThunderz
MoThunderz
  • 26
  • 870 533
ESP32: How to create a config file with SPIFFS or LittleFS
When you power cycle or switch of the ESP32 all variables are lost. So how do you save your settings? In this video I show how to create a config file so you can store any number of variables. There are two versions of the code on Github, namely one using the SPIFFS library and one using the LittleFS library. If you are using the ESP32 board library v2.0.4 or newer, please use LittleFS, otherwise use SPIFFS. The video explains the SPIFFS version, but the LittleFS code works just the same.
Github:
github.com/mo-thunderz/Esp32ConfigFile
Chapters:
0:00 Introduction
0:28 How to store multiple variables in a string with JSON
1:02 Download from Github - NOTE: link has been updated in Video Description
1:34 Explanation of code: libraries and general stuff
2:50 Explanation of code: setup
4:52 Explanation of code: saving variables to config file
7:02 Explanation of code: saving variables from config file
9:41 Explanation of code: main loop
11:11 Testing code
Corrections:
01:08 I have renamed the Github Repository to "Esp32ConfigFile" as both SPIFFS and LittleFS versions are available now. The .ino file is renamed as well.
01:23 If you are using the ESP32 board library v2.0.4 or newer, please use Esp32ConfigFileLittleFS, otherwise use Esp32ConfigFileSPIFFS. The video explains the SPIFFS version, but the LittleFS code works just the same.
มุมมอง: 15 813

วีดีโอ

IoT - real time temperature chart in Webbrowser with ESP32 and WiFi
มุมมอง 13Kปีที่แล้ว
In my series on ESP32 and Wifi I covered how to show live data in a web browser. As per request I provide a specific example in this video and show real time temperature readings from a DHT22 sensor in a webbrowser using an ESP32. Github: github.com/mo-thunderz Direct link to code: github.com/mo-thunderz/ESP32WifiTempSensor The underlaying code for chart generation is described here: th-cam.com...
Xamarin BLE App for latest Android releases (12 and higher)
มุมมอง 13Kปีที่แล้ว
This video explains a simple BLE Explorer written in Xamarin (using plugin.BLE). In essence the app is a simple version of the nRF app: It allows the user to select a BLE device, then shows all available services. Upon selection of a service it will show the available Characteristics. One can then read/write strings or register to Characteristics with "notify" enabled. Code is available here: g...
BLE with ESP32 tutorial part 3: many characteristics and Server Callback for Client commands
มุมมอง 12Kปีที่แล้ว
In part 3 of this tutorial we will cover two important features for the ESP32 server, namely: 1) How to use many characteristics 2) How to create a callback function so that the client can send commands to the server Starting points for coding along: github.com/mo-thunderz/Esp32BlePart1 github.com/mo-thunderz/Esp32BlePart2 Final code for callback function: github.com/mo-thunderz/Esp32BleServerC...
Create a BLE app for your mobile phone! Control an ESP32 with BLE
มุมมอง 82Kปีที่แล้ว
Summary: In this video I show you how to create your own Bluetooth Low Energy (BLE) App to control an ESP32 (Arduino platform). For creation of the app I use the MIT app inventor in combination with the MIT AI2 Companion. I have tested this on an Android phone. I have heard in the meantime that unfortunately MIT App Inventor does not support BLE for the Iphone yet. Please make sure your ESP32 h...
BLE with ESP32 tutorial part 2: the client
มุมมอง 39Kปีที่แล้ว
In part 2 of this tutorial we will cover the receiver for ESP32 to ESP32 communication and explore how Notify, Read and Write work with Bluetooth Low Energy (BLE). Link for the pre-defined Services, Characteristics and Descriptors: www.bluetooth.com/specifications/assigned-numbers/ Starting point for the server: github.com/mo-thunderz/Esp32BlePart1 Final code: github.com/mo-thunderz/Esp32BlePar...
BLE with ESP32 tutorial part 1: the Server
มุมมอง 106Kปีที่แล้ว
This tutorial explains how to use Bluetooth Low Energy (BLE) with the ESP32. In Part 1 first some BLE basics are discussed and then focuses on the BLE Server. Link for the pre-defined Services, Characteristics and Descriptors: www.bluetooth.com/specifications/assigned-numbers/ Link for UUID generation: www.uuidgenerator.net/ Code: github.com/mo-thunderz/Esp32BlePart1 Correction: 05:13 the "ESP3...
How to use a Rotary Encoder with an Arduino - CODE EXPLAINED!
มุมมอง 44K2 ปีที่แล้ว
In this video we will have a look at rotary encoders and in particular go through a robust and reliable code for the Arduino. The code in the video can be downloaded here: github.com/mo-thunderz/RotaryEncoder Make sure that the pins used to connect the rotary encoder to support interrupts. See: www.arduino.cc/reference/de/language/functions/external-interrupts/attachinterrupt/
ESP32: Plot graphs through a webserver/webportal (WiFi Part 4) - Arduino
มุมมอง 40K2 ปีที่แล้ว
This video shows how to plot graphs / charts in real-time with the ESP32 webserver/webportal. This will allow you for instance to plot sensor values over time when using the ESP32 as IoT gateway. This video expands on the webserver code explained in part 3: th-cam.com/video/ZJnXKD0LqDo/w-d-xo.html Starting point for coding along is: github.com/mo-thunderz/Esp32WifiPart3 Final code can be downlo...
ESP32 Access Point and Router connection explained
มุมมอง 55K3 ปีที่แล้ว
This video will explain how to setup an ESP32 as an Access Point or alternatively how to connect it to a router. The ESP32 used is the ESP32-WROOM-32D. Code for the simple connection available at: github.com/mo-thunderz/ESP32AccessPoint Code for JSON example available at: github.com/mo-thunderz/Esp32WifiPart2 Check out my other ESP32 videos as well: th-cam.com/play/PL94tI_1M51VVnRYDAaI8tfxW6Hgt...
ESP32: Control LEDs through a webserver/webportal (WiFi Part 3) - Arduino
มุมมอง 31K3 ปีที่แล้ว
In part 3 of the ESP32&WiFi series I show how to control LEDs connected to an ESP32 through a webserver/webportal. Programming is done through the Arduino IDE. This video expands on the webserver code explained in part 2: th-cam.com/video/15X0WvGaVg8/w-d-xo.html Starting point for coding along is: github.com/mo-thunderz/Esp32WifiPart2 Final code can be downloaded from: github.com/mo-thunderz/Es...
ESP32: Webserver, Websockets and JSON (WiFi Part 2) - Arduino
มุมมอง 88K3 ปีที่แล้ว
Part 2 focuses on how to use the ESP32 to setup a webserver, configure websockets and use JSON for data exchange between the client and ESP32 server. Programming is done through the Arduino IDE. For the code refer to: github.com/mo-thunderz/Esp32WifiPart2 For part 1 of this series, refer to: th-cam.com/video/0AlATlN95Y0/w-d-xo.html Might you have problems programming the ESP32, pls refer to: th...
ESP32: WIFI Basics and sync to NTP clock (WiFi Part 1) - Arduino
มุมมอง 28K3 ปีที่แล้ว
In this series I will discuss the WiFi capabilities of the ESP32. Part 1 covers the WiFi basics and shows how to sync to an NTP clock. I used the ESP32-WROOM-32D for the demonstration. Note: at 3:55 I just noticed that I forgot to explain the connectToNetwork() function. However, I cover that code basically in the second example at 7:33. For the code refer to: github.com/mo-thunderz/Esp32WifiPa...
Create your own App! Control an ESP32 (Arduino) via Bluetooth - Part 3
มุมมอง 19K3 ปีที่แล้ว
IMPORTANT UPDATE (30.09.2022): MIT App Inventor updated their Bluetooth library without backward compatibility. Might you have downloaded this code from my Github page before 30.09.2022, please download the updated version. Changes only affect the general Bluetooth connection stuff discussed in Part 1. Part 1 and 2 of this series focused on realization of a bi-directional Bluetooth communicatio...
Create your own App! Control an ESP32 (Arduino) via Bluetooth - Part 2
มุมมอง 49K3 ปีที่แล้ว
IMPORTANT UPDATE (30.09.2022): MIT App Inventor updated their Bluetooth library without backward compatibility. Might you have downloaded this code from my Github page before 30.09.2022, please download the updated version. Changes only affect the general Bluetooth connection stuff discussed in Part 1. Part 1 of this series focused on controlling an ESP32 via Bluetooth with your phone (using MI...
Control your DAW with your phone! (Cubase, Cakewalk, etc) - NO APP REQUIRED
มุมมอง 1.9K3 ปีที่แล้ว
Control your DAW with your phone! (Cubase, Cakewalk, etc) - NO APP REQUIRED
MackieControl Explained: How does an external controller communicate with the DAW?
มุมมอง 7K3 ปีที่แล้ว
MackieControl Explained: How does an external controller communicate with the DAW?
Create your own App! Control an ESP32 (Arduino) via Bluetooth - Part 1
มุมมอง 152K3 ปีที่แล้ว
Create your own App! Control an ESP32 (Arduino) via Bluetooth - Part 1
Programming ESP32: how its done and issues that might occur [solved]
มุมมอง 40K3 ปีที่แล้ว
Programming ESP32: how its done and issues that might occur [solved]
Max for Live (Ableton) with Arduino programming Tutorial - Part 1
มุมมอง 6K3 ปีที่แล้ว
Max for Live (Ableton) with Arduino programming Tutorial - Part 1
How to use a vacuum desoldering gun
มุมมอง 6K3 ปีที่แล้ว
How to use a vacuum desoldering gun
Arduino based LFO+ADSR, controlled through Ableton with Max for Live (Part 2: installation and code)
มุมมอง 8234 ปีที่แล้ว
Arduino based LFO ADSR, controlled through Ableton with Max for Live (Part 2: installation and code)
How to send data between Ableton and Arduino/Teensy/ESP32 via USB
มุมมอง 11K4 ปีที่แล้ว
How to send data between Ableton and Arduino/Teensy/ESP32 via USB
How to create a low frequency oscillator (LFO) with an Arduino/ESP32/Teensy/etc (DIY)
มุมมอง 6K4 ปีที่แล้ว
How to create a low frequency oscillator (LFO) with an Arduino/ESP32/Teensy/etc (DIY)
How to create an ADSR envelope with an Arduino/ESP32/Teensy/etc (DIY)
มุมมอง 3.9K4 ปีที่แล้ว
How to create an ADSR envelope with an Arduino/ESP32/Teensy/etc (DIY)
Arduino based LFO+ADSR, controlled through Ableton with Max for Live (Part 1)
มุมมอง 1.4K4 ปีที่แล้ว
Arduino based LFO ADSR, controlled through Ableton with Max for Live (Part 1)