====== ESP32 ====== Micro-contrôleur: ESP32 ESP Sock: ESP32, ESP32-S2, ESP32-S3, ESP32-S31, ESP32-C3, ESP32-C5, ESP32-C6, ESP32-C61, ESP32-E, ESP32-H2, ESP32-P, ESP32-P4, ... * Xtensa LX6, 2 cœurs @ 240 MHz * Alimentation: 3,3 ou 5 Vcc * Pour ce qui touche un écran/réseau IP -> ESP32 * Pour des nœuds solaires ou trackers -> [[/electronique/nRF52840|nRF52840]] ===== Espressif ===== * Espressif IoT Development Framework [[https://github.com/espressif/esp-idf|esp-idf]] * Espressif [[https://www.espressif.com/en/products/devkits|devkits]] ESP-IDF ADC documentation for specific SoC * [[https://docs.espressif.com/projects/esp-idf/en/v4.4/esp32/api-reference/peripherals/adc.html|ESP32]] * [[https://docs.espressif.com/projects/esp-idf/en/v4.4/esp32s2/api-reference/peripherals/adc.html|ESP32-S2]] * [[https://docs.espressif.com/projects/esp-idf/en/v4.4/esp32s3/api-reference/peripherals/adc.html|ESP32-S3]] * [[https://docs.espressif.com/projects/esp-idf/en/v4.4/esp32c3/api-reference/peripherals/adc.html|ESP32-C3]] ===== Platines ===== ==== CYD Cheap Yellow Display ==== * [[https://www.elektor.fr/products/the-esp32-cheap-yellow-display-bundle|Bundle Elektor]] * pas de module de charge -> ajouter TP4056 ou IP5306 externe * Chip type: ESP32-WROOM-32 .. * [[https://products.espressif.com/en/product-selector]] * TFT driver ST7789V2 compatible ILI9341 * voir ''TFT_eSPI/TFT_Drivers/ST7789_2_Defines.h'' ==== E-Ink ESP32 DFR0676 ==== Afficheur E-Ink de 2,13" associé à un ESP32 proposant une interface WiFi et Bluetooth. * Microcontrôleur: ESP32 * Alimentation: 3,3 ou 5 Vcc * 19 E/S GPIO: bus I2C, SPI et UART, 14 entrées analogiques ADC * Interface WiFi: 802.11 b/g/n/d/e/l/k/r (802.11n jusqu'à 150 Mbps), WPA/WPA2, WEP/TKIP/AES * Interface Bluetooth 4.2 compatible BLE (Bluetooth Low Energy) * Driver E-Ink: GDEH0213B72 * Résolution: 250 x 122 pixels * Couleur d'écriture: noir * Niveaux de gris: 2 * Dimensions de l'écran: 2,13" * Dimensions zone d'affichage: 48,6 x 23,2 mm * Temps de réponse: environ 2 sec * Inverseur marche-arrêt * Bouton programmable * Bouton reset * Dimensions: 36,8 x 66,3 mm Références: * https://wiki.dfrobot.com/dfr0676/ Boutiques: * https://www.gotronic.fr/art-module-e-ink-esp32-dfr0676-32639.htm ==== XIAO ESP32-S3 Meshtastic LoRa ==== * XIAO ESP32-S3 * 1x UART, 1x IIC, 1x IIS, 1x SPI(connect to SX1262),11x GPIO(PWM), 9x ADC, 1x User LED, 1x Charge LED, 1x Reset button, 1x Boot button * Wio-SX1262 avec interfaces sans fil Meshtastic et LoRa (compatible LoRaWAN) * Based on Semtech SX1262, supports 862-930MHz, * antenne WiFi et Bluetooth (connecteur uFL) * antenne LoRa (connecteur uFL) * gestionnaire batterie XIAO/Texas Instruments BQ25101 * Li-ion/LiPo uniquement, input voltage: 4.2V * à souder, pas de connecteur JST * Charging battery current: 50, ESP32-S3 Plus: 100mA * pas de mesure de tension batterie intégrée, pont diviseur nécessaire 2 × 220 kΩ sur un GPIO ADC * Voyant LED de charge * gère l'alimentation et la recharge quand branché en USB, mais reset quand on débranche l'USB * deep sleep 14 µA, light sleep 2 mA, modem-sleep 27 mA, Wi-Fi actif ~100 mA, BLE actif ~85 mA Boutiques: * https://www.gotronic.fr/art-xiao-esp32s3-mash-lora-40055.htm * https://www.seeedstudio.com/Wio-SX1262-with-XIAO-ESP32S3-p-5982.html ===== Librairies ===== | Librairie | Auteur / source | Usage | | --- | --- | --- | | **[[https://github.com/Bodmer/TFT_eSPI|Bodmer/TFT_eSPI]]** | Bodmer | Affichage TFT du CYD (SPI matériel + DMA, sprites `TFT_eSprite`, polices anti-aliasées) | | **[[https://github.com/PaulStoffregen/XPT2046_Touchscreen|PaulStoffregen/XPT2046_Touchscreen]]** | Paul Stoffregen | Tactile du CYD | | **JSON_Decoder** [[https://github.com/Bodmer/JSON_Decoder|Bodmer/json-streaming-parser]] | Bodmer (fork de squix78) | Parsing JSON SAX streaming pour extraire quelques champs d'une API HTTP | | **[[https://github.com/espressif/arduino-esp32/tree/master/libraries/Preferences|espressif/Preferences]]** | Core Arduino-ESP32 (inclus) | Stockage NVS clé/valeur (SSID, mot de passe, URL) | | **[[https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/mbedtls.html|espressif/mbedTLS]]** | Core Arduino-ESP32 (inclus) | Accès aux accélérateurs cryptographiques matériels (AES/SHA/RSA/ECC + RNG) | | **[[https://github.com/espressif/arduino-esp32/tree/master/libraries/WiFi|espressif/WiFi]]** + pile WPS | Core Arduino-ESP32 (inclus) | Connexion WiFi, WPS enrollee (PBC/PIN) |