MoThunderz
MoThunderz
  • 26
  • 743 090
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.
Переглядів: 12 733

Відео

IoT - real time temperature chart in Webbrowser with ESP32 and WiFi
Переглядів 10 тис.Рік тому
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: ua-cam.com...
Xamarin BLE App for latest Android releases (12 and higher)
Переглядів 10 тис.Рік тому
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
Переглядів 9 тис.Рік тому
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
Переглядів 63 тис.Рік тому
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
Переглядів 32 тис.Рік тому
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
Переглядів 85 тис.Рік тому
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!
Переглядів 34 тис.Рік тому
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
Переглядів 35 тис.Рік тому
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: ua-cam.com/video/ZJnXKD0LqDo/v-deo.html Starting point for coding along is: github.com/mo-thunderz/Esp32WifiPart3 Final code can be downloa...
ESP32 Access Point and Router connection explained
Переглядів 47 тис.2 роки тому
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: ua-cam.com/play/PL94tI_1M51VVnRYDAaI8tfxW6Hgt...
ESP32: Control LEDs through a webserver/webportal (WiFi Part 3) - Arduino
Переглядів 28 тис.2 роки тому
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: ua-cam.com/video/15X0WvGaVg8/v-deo.html Starting point for coding along is: github.com/mo-thunderz/Esp32WifiPart2 Final code can be downloaded from: github.com/mo-thunderz/Esp...
ESP32: Webserver, Websockets and JSON (WiFi Part 2) - Arduino
Переглядів 80 тис.2 роки тому
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: ua-cam.com/video/0AlATlN95Y0/v-deo.html Might you have problems programming the ESP32, pls refer to: ua-...
ESP32: WIFI Basics and sync to NTP clock (WiFi Part 1) - Arduino
Переглядів 24 тис.2 роки тому
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
Переглядів 18 тис.3 роки тому
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
Переглядів 45 тис.3 роки тому
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,7 тис.3 роки тому
Control your DAW with your phone! (Cubase, Cakewalk, etc) - NO APP REQUIRED
MackieControl Explained: How does an external controller communicate with the DAW?
Переглядів 6 тис.3 роки тому
MackieControl Explained: How does an external controller communicate with the DAW?
Create your own App! Control an ESP32 (Arduino) via Bluetooth - Part 1
Переглядів 134 тис.3 роки тому
Create your own App! Control an ESP32 (Arduino) via Bluetooth - Part 1
Programming ESP32: how its done and issues that might occur [solved]
Переглядів 37 тис.3 роки тому
Programming ESP32: how its done and issues that might occur [solved]
Max for Live (Ableton) with Arduino programming Tutorial - Part 1
Переглядів 5 тис.3 роки тому
Max for Live (Ableton) with Arduino programming Tutorial - Part 1
How to use a vacuum desoldering gun
Переглядів 5 тис.3 роки тому
How to use a vacuum desoldering gun
Arduino based LFO+ADSR, controlled through Ableton with Max for Live (Part 2: installation and code)
Переглядів 7433 роки тому
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
Переглядів 10 тис.3 роки тому
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)
Переглядів 6 тис.3 роки тому
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,6 тис.3 роки тому
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,3 тис.3 роки тому
Arduino based LFO ADSR, controlled through Ableton with Max for Live (Part 1)

КОМЕНТАРІ

  • @colinfinch8716
    @colinfinch8716 4 години тому

    Hi i used part1 it connected to esp32 wroom but if i moved away from esp32 say 5m it does not connect

  • @sahanpanditharathne2765
    @sahanpanditharathne2765 2 дні тому

    can you do a video on how to save data on an external SPI chip like W25QXX

  • @GamerDudeBYT
    @GamerDudeBYT 12 днів тому

    for some reason this line: Output.Text += Encoding.UTF8.GetString(recievedBytes, 0, recievedBytes.Length) + Environment.NewLine; errors on the .Length

  • @benarcher372
    @benarcher372 14 днів тому

    Super clear and, for me, with the perfect level of detail. Thanks!

  • @guestofmiketraveler4813
    @guestofmiketraveler4813 19 днів тому

    Hi Mo, I have been looking for a solution like this very long. It covers everything i wanted to do from the Arduino to the buttons on the website. And the real time updating with the Json system. Wonderful. Thank you so much for your contribute. Very Good. 5 Stars from me.

  • @rajaramanv
    @rajaramanv 20 днів тому

    To install this library, type only 'websockets' in Arduino IDE library manager. There will be the usual 'ArduinoWebSockets' library by Gil Maimon, and a few others like 'Fast web sockets'. Skip them. Scroll till you get 'WebSockets' by Markus Sattler.

  • @aliqureshi2157
    @aliqureshi2157 20 днів тому

    very informative, thank you so much

  • @osmanpasha_diy
    @osmanpasha_diy 20 днів тому

    Apparently these BT permissions only work on Android 12+. For older devices you need android.permission.BLUETOOTH and FineLocation

  • @rajaramanv
    @rajaramanv 20 днів тому

    All the information you need to get started with web sockets - neatly shrink wrapped into a 35 minute video. Excellent!

  • @masdikaaliman6425
    @masdikaaliman6425 21 день тому

    can i send two data type in one characteristic or receive it with a list or something ?

  • @virendrapawar4562
    @virendrapawar4562 21 день тому

    Absolutely Great, Simple and Clear Explanation.

  • @azzattar8422
    @azzattar8422 21 день тому

  • @jumbo999614
    @jumbo999614 22 дні тому

    I don't know why when I use slider I sometimes get float number instead of integer and my serial doesn't print if it's not integer. For example. From phone to ESP32: ID: 1, value: 170.5 Serial monitor: nothing. From phone to ESP32: ID: 1, value 170 Serial monitor: Id: 1 val: 170.

  • @LucianoVeneziano
    @LucianoVeneziano 23 дні тому

    Fantastico job!

  • @TheRoadTaken
    @TheRoadTaken 23 дні тому

    Do you have a video where the Bluetooth app will save the data to the esp32 that is persist after reboot of the esp32?

  • @MassimilianoBellugoogle
    @MassimilianoBellugoogle 24 дні тому

    it works great with char1 but the app doesn't start when char2 blocks are in 😐... Thanks for this very detailed description and step by step creation

  • @dicklambert1503
    @dicklambert1503 27 днів тому

    Do you know any reference about how to interpret the values in the packets?

  • @MrLRankin2
    @MrLRankin2 28 днів тому

    You are one heck of a teacher. I commend you Sir.

  • @brightmoonworld
    @brightmoonworld 28 днів тому

    I have some questions and solutions pls tell ms how can i ask

  • @bektinurwanto
    @bektinurwanto 29 днів тому

    still Waiting you makes can save pdf to reporting 😊

  • @slidersson
    @slidersson Місяць тому

    Brilliant stuff!!

  • @stephanc7192
    @stephanc7192 Місяць тому

    Great explanation

  • @africantech5
    @africantech5 Місяць тому

    Thank you so much Mi o ni WA e ti

  • @Paul60760
    @Paul60760 Місяць тому

    on my ESP32-c6 it crashes at webSocket.begin() (line78) Initializing WebSocket... Guru Meditation Error: Core 0 panic'ed (Load access fault). Exception was unhandled. Is there another way to do it without WebSocket?

  • @MarioPToledo
    @MarioPToledo Місяць тому

    I dunno what to do! Im just using a rotary with the atmega328p chip, and then I make the pull up resistor circuit + filters but the values still bounce any time.

  • @MariaMoita-f5w
    @MariaMoita-f5w Місяць тому

    Hello! Have you tried to connect 2 clients to 2 characteristics of one server?

  • @MariaMoita-f5w
    @MariaMoita-f5w Місяць тому

    Hello! Do you know if it is possible to connect 2 esp32 to 2 different characteristics of one server?

  • @tsalazar3289
    @tsalazar3289 Місяць тому

    Hi would this work with the Arduino giga R1 wifi? I want to display load cell readings in digital format using BLE

  • @beastgamerz3696
    @beastgamerz3696 Місяць тому

    pls be vegan animals also have lifes Radhe Radhe

  • @Arihant-xo5wj
    @Arihant-xo5wj Місяць тому

    pls be vegan animals also have lifes Radhe Radhe

  • @Rob-id3zf
    @Rob-id3zf Місяць тому

    Great video. Thanks!

  • @makimcleary393
    @makimcleary393 Місяць тому

    The extension BluetoothLE is no longer available through the link. It shows "This page is obsolete" and I can't find it anywhere else to download. Can someone please help?

  • @lokergames7058
    @lokergames7058 Місяць тому

    nc work

  • @TheDigitalMermaid
    @TheDigitalMermaid Місяць тому

    Thank you for this guide! I'm struggling to find the 'BluetoothLE.aix' file, as the link to download it returns "this page is obsolete", and the googles doesn't seem to know where to find it yet. Any tips?

  • @NaveedY
    @NaveedY Місяць тому

    Great tutorial! Loved the slow and steady explanation in the beginning! Felt like I didn't have to pause or go back to understand things, however at the end it felt kindda rushed and I needed to pause/go back over multiple occasions. (Still great tutorial!!)

  • @bennguyen1313
    @bennguyen1313 Місяць тому

    Any thoughts what would be involved in writing an ESP32 application, that takes data from the uart, and passes it wirelessly either via bluetooth** (SPP) or via Wifi? One way communication is fine for now (RS232->ESP32->BT/Wifi - - - - > Mobile/PC) For Wifi, I imagine the ESP32 could act as a web server (TCP) and display the RS232 data, but maybe there's also a UDP way of sending the data to a PC on the same network? If the receiving application (mobile or PC) is written with the flutter framework, it could display the RS232 data with style! **I purchase some USB-bluetooth dongles (Feasycom BP102, HC-05/HC-06/CP2102 master modules, etc).. but none can connect to any android phone! For example, when a Samsung S5 tries to connect to one of the bluetooth dongles, it will stop blinking, but after a couple seconds, Android says 'Can't communicate with the FSC_BP102' or HC-05, or HC06, etc.

  • @micronaushnik5Micro
    @micronaushnik5Micro Місяць тому

    Супер все работает

  • @ckvopa
    @ckvopa Місяць тому

    @mothunderz Уважаемый друг! Спасибо большое за подробные и пошаговые объяснения! Могу я попросить тебя объяснить мне еще белее простую вещь - как работать с чистым HTML (то есть без JavaScript) и обработкой на сервере POST и GET запросов? На примере хотя бы одной кнопки и полей 'include'. А то я не могу понять как мне введенное пользователем время отправить и считать на сервере и сравнить с реальным... ПОЖАЛУЙСТА. Спасибо!

  • @ravichandransrinivasan5453
    @ravichandransrinivasan5453 Місяць тому

    Just asking- is it possible to pick the time info only from any network or wifi nearby, without log in?

  • @alexandercincuk271
    @alexandercincuk271 Місяць тому

    hello, thank you very much for your code, I'm just trying to add a function, restart on NoteOn, without success, could you give me a type of how I do this? Thank you very much!

  • @franesabic3903
    @franesabic3903 Місяць тому

    Can u plz explain why 516>=error number, why it is 516, what is happening when is lower or higer than 516. Thank you.

  • @Alvaelectronics
    @Alvaelectronics Місяць тому

    Hi i am creating a device that has esp32 and the other device is Pi5 which runs android os an app can be installed in this os . Now , i need to connect my esp32 with the pi5 only . Can you guide how i could do this ? In my mind .. it is giving characterstic id call from esp32 and the app would have the same the characterstic app . If the app detects the characterstic uuid , then connect directly to esp32 . Please let me know if this is right or show a video/code on how to do this as a refernce

  • @Alvaelectronics
    @Alvaelectronics Місяць тому

    Hi , i am creating a device that has esp32 and the other device is Pi5 which runs android os an app can be installed in this os . Now , i need to connect my esp32 with the pi5 only . Can you guide how i could do this ? In my mind .. it is giving characterstic id call from esp32 and the app would have the same the characterstic app . If the app detects the characterstic app , then connect directly to esp32 . Please let me know if this is right or show avideo on how to do this as a refernce

  • @nickleonhardt847
    @nickleonhardt847 Місяць тому

    I am at the Point 12:22 and the App can't find the ESP32. The list doesn't open. When I search for it over Bluetooth from my phone, I can find the ESP. I did everything exactly like in the video and can't find the issue. Can anyone help me with that please? It's the ESP32-WROOM-32E

    • @hacimwalker
      @hacimwalker Місяць тому

      i am struggling same problem did you find a solution

    • @makimcleary393
      @makimcleary393 Місяць тому

      same here. I also didn't get a permission dialogue

  • @0124akash
    @0124akash Місяць тому

    Sir, how to make LAN to WiFi convert using ESP32 and enc28j60?

  • @butchalline
    @butchalline Місяць тому

    Using IDE 2.3.2, sketch BLE_server, ESP dev module I get error ...Compilation error: 'init' is not a member of 'BLEDevice' Could not find ESP32 BLE Arduino, so I used🤕 these includes: BLEDevice.h BLEServer.h BLEUtils.h BLE2902.h

  • @OutOfNameIdeas2
    @OutOfNameIdeas2 Місяць тому

    Can you make a tutorial on this for Android studio?

  • @RominaZamani-e3o
    @RominaZamani-e3o Місяць тому

    i receive an error in final code at line ''std::string pChar2_value_stdstr = pChar->getValue();'' and the error is ''error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested'' can you fix this?😓

  • @RominaZamani-e3o
    @RominaZamani-e3o Місяць тому

    i receive an error in final code at line ''std::string pChar2_value_stdstr = pChar->getValue();'' and the error is ''error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested'' can you fix this?

  • @xzxzt4
    @xzxzt4 2 місяці тому

    very hard to use on big relay and igbt on a double sided board