ESP32 and ESP8266 Arduino wifi template

Overview

ESP wifi template

ESP32 and ESP8266 Arduino wifi template

Features

Popular

  • WiFI AP mode
  • WiFI STA mode
  • ETH mode
  • DNS server for AP mode
  • Async DDNS client
  • mDNS service for WiFI STA mode
  • NBNS service for WiFI STA mode
  • OTA Arduino with PIN option
  • Web update application
  • Web update spiffs/littleFS
  • Web monitor system params
  • Web configure WiFi AP and STA mode
  • SNTP run Async or impl by system
  • SPIFFS/LittleFS web Editor
  • SD Card web Editor
  • System params configure loaded from SPIFFS/LittleFS
  • LED display WiFi/ETH status
  • Button set factory default system params
  • Log File operating system into SPIFFS/LittleFS

Ethernet IC supported

  • ENC28J60 for ESP8266
  • W5100 for ESP8266
  • w5500 for ESP8266
  • LAN8720A for ESP32
  • TLK110 for ESP32

File system handle

  • SPIFFS
  • LittleFS
  • SD card with SPI or SDMMC(only ESP32) interface

Async WebServer

  • Websocket
  • Event Source
  • File system editor
  • Updater application
  • Updater file system

THIoT_ESPConfig.h

Define Description
ETH_ENABLE Enable/disable Ethernet
SD_CARD_ENABLE Enable/disable SD card
SD_SPI_INTERFACE SPI/MMC interface
USE_NAND_FS_SYSTEM SPIFFS/LittleFS/FATFS system
... Some another configures

THIoT_ESPBoard.h

Define Description
LED_STATUS_GPIO LED Pin
FACTORY_INPUT_PIN Factory button (hold 2s)
ETH_GPIO_ENABLE Input select WIFI/ETH mode
... Some another configures

Libraries

HttpServer page

Link Description
/wifi.htm setting wifi access point and station
/index.htm Monitor some information system as Heap memory, temperature
/edit web editor internal file system
/edit_sdfs web editor SD card file system
Authorize default pass: admin, user" admin
Pin default 1234

Http request API

Link Description
/get?param_wifi=restart Restart ESP
/get?param_wifi=fw_version Firmware version

Usage API file system editor

Request to download file from sd card (method GET)

  • /edit_sdfs?download=/file.txt
  • /edit_sdfs?download=/file.txt&filename=newName.txt

Request to edit file from sd card (method GET)

  • /edit_sdfs?edit=/file.txt

Request to delete file from sd card (method DELETE)

  • /edit_sdfs , path=/file.txt

Request to download file from spiffs/LittleFS (method GET)

  • /edit?download=/file.txt
  • /edit?download=/file.txt&filename=newName.txt

Request to edit file from spiffs/LittleFS (method GET)

  • /edit?edit=/file.txt

Request to delete file from spiffs/LittleFS (method DELETE)

  • /edit , path=/file.txt

Usage ESP8266 Sketch Data Upload

1. Download ESP8266LittleFS-2.6.0.zip

Usage ESP32 Sketch Data Upload

1. Download esp32fs.zip

2. Download x86_64-w64-mingw32-mklittlefs-295fe9b.zip

3. Download mkfatfs

4. mkspiffs.exe is already in directory

  • C:\Users\PC-NAME\Documents\Arduino\hardware\espressif\esp32\tools\mkspiffs\mkspiffs.exe

5. Install LITTLEFS

Sketch Data Upload

  • Restart Arduino IDE after any steps above
  • Tools --> ESP32 Sketch Data Upload --> [LITTLEFS, SPIFFS, FATFS, Erase Flash]
  • Tools --> ESP8266 LittleFS Data Upload
  • Tools --> ESP8266 Sketch Data Upload

Update latest BLE Client Library to allow change MTU size (Option)

Tools using convert gzip

Tools usage json

Some update ESPAsyncWebserver library to handle new port

Some update AsyncTCP library to handle new port for ESP32

Owner
Tien Huy Huynh
Embedded System Engineer
Tien Huy Huynh
ESP32, ESP8266 based MIDI Organ using the ML_SynthTools library (little example arduino project)

esp32_esp8266_organ ESP32, ESP8266 based MIDI Organ using the ML_SynthTools library (little example arduino project) link to the video The required li

Marcel 11 Jun 6, 2022
ESP32, ESP8266 based MIDI Organ using the ML_SynthTools library (little example arduino project)

ml_synth_organ_example MIDI Organ using the ML_SynthTools library (little example arduino project) link to the video This project is an example suppor

Marcel 11 Jun 6, 2022
ESP32-Skid-Steer - Bruder Catepillar Skid Steer model converted to RC, controlled by an ESP32 with 2 analog joysticks and a receiver that is an ESP32 on the model.

ESP32-Skid-Steer Bruder Catepillar Skid Steer model converted to RC, controlled by an ESP32 with 2 analog joysticks and a receiver that is an ESP32 on

null 5 Feb 4, 2022
Control Heidelberg Wallbox Energy Control over WiFi using ESP8266 and configure your own local load management

< scroll down for English version and additional information > wbec WLAN-Anbindung der Heidelberg WallBox Energy Control über ESP8266 Die Heidelberg W

null 69 Jun 21, 2022
Web Server based on the Raspberry Pico using an ESP8266 with AT firmware for WiFi

PicoWebServer This program runs on a Raspberry Pico RP2040 to provide a web server when connected to an Espressif ESP8266. This allows the Pico to be

null 44 Jun 10, 2022
JJY timecode emitter using ESP32 and WiFi/NTP

ビルドの方法 README.rstをみてください あと、接続先APの設定は src/main.cpp の中を見てください 使い方 デフォルトではGPIO 22番に40kHzのタイムコードが、GPIO 23番に60kHzのタイムコードが出ます。 以下のように抵抗を介して混合し、電線を電波時計のまわりに

null 12 Dec 21, 2021
Get air quality & CO2 data from SM300D2 & Senseair S8 with ESP32, and export as OpenMetrics (Prometheus exporter) via WiFi.

ESP Air Sensor Get air quality & CO2 data from SM300D2 & Senseair S8 with ESP32, and export as OpenMetrics (Prometheus exporter) via WiFi. I used to h

Shell Chen 4 Feb 6, 2022
The function is based on MQTT. When the original serial of ESP8266/ESP32 cannot be used, it can replace serial print.

MqttPrint and MqttMonitor The function is based on MQTT. When the original serial of ESP8266/ESP32 cannot be used, it can replace serial print. MqttPr

fw-box 3 Jan 10, 2022
This is a C plus plus coding template for Compitative programming. This template is very optimized for the Online Judgment

C-plusplus-compitative-Programming-Template Tech We Used C++ Features Easy to compile Easy debug facility Analysised and optimized base template Steps

Alan Binu 15 Jan 27, 2022
OpenGL Template Engine - a C++ OpenGL graphics engine which aimed to be a simple startup template for 3D OpenGL projects.

OpenGL Template Engine is a C++ OpenGL graphics engine which aimed to be a simple startup template for 3D OpenGL projects. This is the template I personally use for my own projects and provides me with the general OpenGL 3D render setup with model import and UI.

Marcus Nesse Madland 2 May 16, 2022
This project design to mine Duino-Coin using an Esp8266 as a master and Arduino as a slave.

DuinoCoinI2C This project design to mine Duino-Coin using an Esp8266/Esp32 as a master and Arduino as a slave. Using the I2C communication to connect

Luiz Henrique Cassettari 143 Jun 27, 2022
Arduino and Nodemcu(esp8266)

Iot-based-project Using Arduino and Nodemcu(esp8266) We read temperature and humidity from DHT11 sensor with the help of ardunio uno and send that dat

Naman Rajani 4 Sep 25, 2021
Basic template for ST7789 driver and esp32.

LVGL TEMPLATE Basic template for ST7789 driver and esp32. About ESP32 board: ESP32-WROVER flash size: 16MB esp-idf: v4.4 About LCD TFT LCD driver: ST7

Kevincoooool 16 Jun 15, 2022
json file config for ESP8266 arduino framework

Description Every project I have is the same architecture and appconf is one of the components I use every time. This is an attempt at making a public

Garkusnko Nick 1 Nov 9, 2021
ESP8266 core for Arduino

Arduino core for ESP8266 WiFi chip Quick links Latest release documentation Current "git version" documentation Install git version (sources) Arduino

ESP8266 Community Forum 14.1k Jun 24, 2022
Allows for multiple SwitchBot buttons and curtains to be controlled via MQTT sent to ESP32. ESP32 will send BLE commands to switchbots and return MQTT responses to the broker. Also supports Meter/Temp Sensor

SwitchBot-MQTT-BLE-ESP32 Switchbot local control using ESP32. no switchbot hub used/required. works with any smarthub that supports MQTT https://githu

null 244 Jun 29, 2022
AnalogWrite for ESP32 and ESP32-S2 with LEDC PWM. Includes PWM Phase Control, DAC and Smart GPIO resource management.

analogWrite() ESP32 Installation Instructions This library was tested using using the ESP32 Arduino IDE Boards Manager installation method. Stable rel

null 22 Jun 18, 2022
ESP32 + GitHub Actions + Husarnet. A boilerplate project for ESP32 allowing in-field firmware update using GitHub Actions workflow.

esp32-internet-ota ESP32 + GitHub Actions + Husarnet. A boilerplate project for ESP32 allowing in-field firmware update using GitHub Actions workflow.

Husarnet 28 Apr 30, 2022
Library of useful C++ snippets and reusable classes I've created as I build out Arduino Uno and ESP32 projects.

Arduino Snippets Library of useful C++ snippets and reusable classes I've created as I build out Arduino Uno and ESP32 projects. Button A simple butto

Max Lynch 7 Feb 5, 2022