arduino:uc:esp01

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

arduino:uc:esp01 [2021/08/11 09:19] – modification externe 127.0.0.1arduino:uc:esp01 [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1
Ligne 1: Ligne 1:
-{{ :suivant.png?nolink&30|}} {{ :retour.png?nolink&30|}} [[arduino:accueilarduino|{{ :iconemaison.jpg?nolink&30|Sommaire Arduino}}]] 
  
-===== Les cartes ES01(S) ===== 
-[Mise à jour le 23/7/2021] 
-{{ :arduino:arduino.png?80&nolink|}}{{ :arduino:uc:260px-esp-01.jpg?nolink&150|}} 
- 
-  * **Sources**  
-    * Site <html><a href="https://www.espressif.com/" target="_blank">Espressif</a></html> 
-    * <html><a href = "https://docs.espressif.com/projects/esp-at/en/latest/Get_Started/index.html" target="_blank">ESP-AT User Guide</a></html> 
-    * JOY-IT : <html><a href = "https://www.gotronic.fr/pj2-sbc-esp8266-fr-1477.pdf" target="_blank">Manuel d'utilisation de l’ESP8266</a></html> 
-    * <html><a href = "https://www.gotronic.fr/pj-1542.pdf" target="_blank">Mise en marche du programmateur USB pour ESP8266</a></html> 
- 
-  * **Articles** 
-    * <html><a href="https://sebastien.warin.fr/2016/07/12/4138-decouverte-des-esp8266-le-microcontroleur-connecte-par-wifi-pour-2-au-potentiel-phenomenal-avec-constellation/" target="_blank">Découverte des ESP8266 : le microcontrôleur connecté par Wifi pour 2€ au potentiel phénoménal</a></html> 
-    * <html><a href="https://projetsdiy.fr/esp01-esp01s-debuter-ide-arduino-platformio-quel-module-choisir-reperage-broches/" target="_blank">ESP01. Débuter avec l’IDE Arduino ou PlatformIO. Quel module choisir ?</a></html> 
-    * <html><a href="https://www.electro-info.ovh/index.php?id=199" target="_blank">Premiers pas avec l'ESP8266 (ESP-01)</a></html> 
-    * <html><a href="https://www.electro-info.ovh/esp8266-presentation-du-module-ESP-01#:~:text=Il%20est%20principalement%20compos%C3%A9%20d,(Attention%20PAS%20DE%205V)." target="_blank">ESP8266 - Présentation du module ESP-01</a></html> 
- 
-  * **Lectures connexes** 
-    * Wiki [[materiels:accueilmateriels|" Matériels - Capteurs, afficheurs, préactionneurs, etc."]] 
-    * <html><a href="https://www.arduinolibraries.info/" target="_blank">Arduino Library List</a></html> 
- 
-  * **Distributeur** 
-    * <html><a href="https://www.gotronic.fr/art-module-esp8266-25664.htm" target="_blank">Gotronic</a></html> 
- 
- 
-==== 1. Généralités ==== 
-L'**ESP-01** est une **version réduite de l'ESP8266** (ESPRESSIF) produite par <html><a href="http://www.ai-thinker.com/" target="_blank">AI-Thinker</a></html>. De taille réduite, il permet de connecter un microcontrôleur à un réseau Wi-Fi et d’établir des connexions TCP/IP avec des commandes <html><a href="https://fr.wikipedia.org/wiki/Commandes_Hayes" target="_blank">Hayes</a></html>. 
- 
-==== 2. Principales caractéristiques ==== 
-  * **Ressources** : <html><a href="https://docs.ai-thinker.com/_media/esp8266/docs/esp-01_product_specification_en.pdf" target="_blank">ESP-01 802.11 b/g/n Wi-Fi Module</a></html> 
- 
-  * **Modèle** : ESP01(S) (<html><a href="https://www.mouser.fr/datasheet/2/891/0a_esp8266ex_datasheet_en-1223899.pdf" target="_blank">ESP8266EX</a></html>) 
-  * **Processeur** : 32-bit CPU @ 160MHz 
-  * **Wifi** 802.11 b/g/n (WEP/WPA-PSK/WPA2-PSK) 
-  * **SPI Flash** : 512kB ou 1MB(S) 
-  * **UART** : 300 à 4608000 Défaut : 115200 
-  * **IO** : 2 (logique 3,3V) 
- 
-==== 3. Brochage ==== 
-{{ :arduino:uc:esp01-esp-01s-pinout-esp8266ex-fr.jpg?nolink&400 |}} 
- 
-==== 4. Accessoires ==== 
-{{ :arduino:uc:esp01etprog.jpg?nolink&130|Adaptateur USB <--> Série et programmeur}} 
-=== 4.1 Adaptateur USB <--> Série et programmeur === 
-Ce module permet la programmation du module WiFi ESP8266 via le port USB d'un PC. 
- 
-  * **Ressources** 
-    * Distributeur : <html><a href="https://www.gotronic.fr/art-module-de-programmation-pour-esp8266-26573.htm" target="_blank">GoTronic</a></html> 
-    * Documentation : <html><a href="https://projetsdiy.fr/installer-le-drivers-ch340x-sur-macos-pour-wemos-d1-mini/" target="_blank">Installation du driver CH340/CH341</a></html> 
- 
-{{ :arduino:uc:132931107-40.png?nolink&150|USB <--> Série TTL-232R-3V3}} 
-=== 4.2 Câble adaptateur USB <--> Série TTL-232R-3V3 === 
-Les câbles TTL-232R-3V3 sont une famille de câbles convertisseurs USB vers UART série TTL intégrant le CI FT232RQ à interface USB vers UART série qui gère toute la signalisation et les protocoles USB. Les câbles offrent un moyen simple et rapide pour connecter des périphériques avec une interface série en niveau TTL vers USB.  
- 
-  * **Ressources** 
-    * Distributeur : <html><a href="https://fr.farnell.com/ftdi/ttl-232r-3v3/cable-usb-vers-ttl-level-seri/dp/1329311" target="blank">Farnell</a></html> 
-    * Documentation : <html><a href="https://www.farnell.com/datasheets/814049.pdf" target="_blank">TTL-232R-3V3   Datasheet</a></html> 
- 
-{{ :arduino:uc:mb102.jpg?nolink&150|MB102 Module 3.3V / 5V}} 
-=== 4.3 MB102 Module 3.3V / 5V === 
-  * **Ressources** 
-    * Distributeur : <html><a href="https://www.az-delivery.de/fr/products/mb102-breadboard?_pos=3&_sid=66ae38bdb&_ss=r" target="blank">AZ-Delivery</a></html> 
-    * Documentation : <html><a href="https://www.az-delivery.de/fr/products/mb102-netzteil-adapter-kostenfreies-e-book?variant=19430334627936" target="_blank">e-book</a></html> 
- 
-  * **Caractéristiques** 
-    * Tension d'entrée: 6,5 - 12V DC ou via USB. 
-    * Tension de sortie: 3,3V / 5V sélectionnable. 
-    * Alimentation par port USB ou bloc d'alimentation externe 
-==== 5. Commandes AT - Firmware d'origine ==== 
-  * **Ressources** 
-    * <html><a href="https://projetsdiy.fr/esp-01-esp8266-flasher-firmware-origine/" target="_blank">ESP-01. Comment réinstaller le firmware d’origine NodeMCU (ESP8266)</a></html> 
-    * <html><a href = "https://docs.espressif.com/projects/esp-at/en/latest/Get_Started/index.html" target="_blank">ESP-AT User Guide</a></html> 
- 
-  * ** Tests dans la console du logiciel Arduino** 
-    - <html><a href="https://webge.fr/doc/wikis/outils/ESP8266/ESP8266_flasher.zip" target="_blank"><strong>Télécharger</strong></a></html> le répertoire contenant les fichiers //esp8266_flasher.exe// et //DOIT_AT_DOUT_8Mbit.bin// 
-    - Placer l'ESP01 sur le programmeur USB <--> UART et le commuter en mode **prog**. 
-    - Transférer le fichier .bin sur l'ESP01 avec //esp8266_flasher.exe//. Débrancher le programmeur et le placer en mode **UART**. 
-    - Tester le programme en transmettant les **commandes AT** suivantes avec le moniteur série du logiciel Arduino réglé sur : {{:arduino:uc:reglageduino.png?nolink|}}. 
- 
-<code> 
-// 1a. Connexion au module 
-AT 
-réponse : OK 
- 
-// 1b. Reset 
-AT+RST 
-Exemple de réponse partielle: OK 
-ets Jan  8 2013,rst cause:2, boot mode:(3,7) 
-load 0x40100000, len 2592, room 16  
-tail 0 
-chksum 0xf3 
- 
-// 2. Version du firmware 
-AT+GMR 
-Exemple de réponse:  
-AT version:1.2.0.0(Jul  1 2016 20:04:45) 
-SDK version:1.5.4.1(39cb9a32) 
-www.doit.am 
-0.0.0.6 
-Build:1.5.4.1 Apr 17 2018 11:39:14 
-OK 
- 
-// 3. Aresse IP du module (par défaut en mode point d'accès) 
-AT+CIFSR 
-réponse : 
-+CIFSR:APIP,"192.168.4.1" 
-+CIFSR:APMAC,"c6:5b:be:61:61:3d" 
- 
-// 4. Réglage en mode STA(STATION) (2:AP (Point d'accès), 3:STA+AP) 
-AT+CWMODE=1 
-réponse : OK 
- 
-// 5. Connexion à un réseau WIFI 
-AT+CWJAP="ssid","mot2passe" 
-Exemple de réponse:  
-connect to ssid SynBoxLAN, channel 5 
-OK 
- 
-// 6. IP attribué par le routeur 
-AT+CIFSR 
-Exemple de réponse:  
-+CIFSR:STAIP,"192.168.200.189" 
-+CIFSR:STAMAC,"c4:5b:be:61:61:3d" 
-OK 
-</code> 
- 
-==== 6. Téléverser un programme avec Arduino ou PlatformIO ==== 
-  * **Ressources** 
-    * <html><a href="https://projetsdiy.fr/esp01-esp01s-debuter-ide-arduino-platformio-quel-module-choisir-reperage-broches/" target="_blank">ESP01. Débuter avec l’IDE Arduino ou PlatformIO. Quel module choisir ?</a></html> 
-    * Préparation de l'IDE Arduino ur le wiki [[arduino:uc:esp8266|"La carte ESP8266 Feather Huzzah"]] 
- 
-=== 6.1 Premier programme === 
-  * **Ressources**  
-    * <html><a href="https://www.electro-info.ovh/index.php?id=199" target="_blank">Premiers pas avec l'ESP8266 (ESP-01)</a></html> 
- 
-  * ** Dans le logiciel Arduino** 
-    - Placer l'ESP01 sur l'adaptateur USB <--> UART et le commuter en mode **prog**. 
-    - Sélectionner l'onglet Outils -> Type de carte -> Generic ESP8266 Module. Sélectionner le port COM. 
-    - Sélectionner l'onglet Fichier -> exemple -> ESP8266 -> Blink et transférer. 
-    - Débrancher l'adaptateur et le placer en mode **UART**. Rebrancher. 
-    - La LED bleue clignote ! 
- 
-{{ :arduino:uc:azdeliveryesp01.jpg?nolink&180|ESP8266-01S mit Relais}} 
-=== 6.2 Wifi Web Serveur === 
-  * **Ressource** 
-    * Distributeur : <html><a href="https://www.az-delivery.de/fr/products/esp8266-01s-mit-relais" target="_blank">AZ-Delivery</a></html> 
-    * Documentation : <html><a href="https://webge.fr/doc/wikis/code/Arduino/ARD_ESP01_ESP01WebServer_Docs.zip" target="_blank">ESP8266-01S mit Relais</a></html> 
- 
-  * ** Dans le logiciel Arduino** 
-    - Placer l'ESP01 sur l'adaptateur USB <--> UART et le commuter en mode **prog**. 
-    - Sélectionner l'onglet Outils -> Type de carte -> Generic ESP8266 Module. Sélectionner le port COM. 
-    - <html><a href="https://webge.fr/doc/wikis/code/Arduino/ARD_ESP01_ESP01WebServer.zip" target="_blank">Télécharger</a></html> le fichier **//ESP01WebServer//** et régler le SSID et le mot2passe du réseau puis transférer dans l'ESP01. <code> 
-const char* ssid = "your SSID"; 
-const char* password = "your password"; 
-</code> 
-    - Tests 
-      - Sur la **carte à relais** 
-        - Placer l'ESP01 sur la carte à relais. 
-        - Connecter un câble adaptateur USB <--> Série à la carte <html><a href="https://fr.farnell.com/ftdi/ttl-232r-3v3/cable-usb-vers-ttl-level-seri/dp/1329311" target="blank">TTL-232R-3V3</a></html> : **GND <--> GND, TX <--> RX, RX <-->TX** 
-        - Ouvrir la console Arduino  
-        - Alimenter la carte sous 5V. Une fois la connexion au wifi effectuée l'ESP01 donne son IP comme dans l'exemple ci-dessous. {{ :arduino:uc:testesprelais.png?nolink |}} 
-        - Ouvrir un navigateur et entrer l'IP de l'ESP01 suivi de **/**. Changer l'état du relais en cliquant sur ON et OFF. {{ :arduino:uc:testgpio0.png?nolink |}} 
-      - Sur une **breadboard** 
-        - Alimenter l'ESP01 avec un module MB102 : **GND <--> GND, 3V3 <--> 3V3, RST <--> 3V3, EN <--> 3V3**  
-        - Connecter **TX <--> RX, RX <--> TX** à un câble adaptateur USB <--> Série tel que <html><a href="https://fr.farnell.com/ftdi/ttl-232r-3v3/cable-usb-vers-ttl-level-seri/dp/1329311" target="blank">TTL-232R-3V3</a></html> : (relier le GND de l'adaptateur au GND du MB102) 
-        - Relier la sortie IO0 à l'élément à commander (Led, etc.). Une Led et sa résistance sur le photo ci-dessous. 
-        - Vérifier le fonctionnement en reprenant la démarche ci-dessus à partir du a. III.{{ :arduino:uc:breadboard.jpg?nolink |}} 
- 
-==== Pour aller plus loin ==== 
-  * **ESP8266 SDK** - <html><a href="https://www.espressif.com/sites/default/files/documentation/2a-esp8266-sdk_getting_started_guide_en.pdf" target="_blank">Getting Started Guide</a></html> 
  • arduino/uc/esp01.1628666353.txt.gz
  • Dernière modification : 2021/08/11 09:19
  • de 127.0.0.1