ESP8266: Difference between revisions

From air
Jump to navigation Jump to search
Line 29: Line 29:
=ESP8266 @ AIR=
=ESP8266 @ AIR=
* [[Python sur ESP8266]]
* [[Python sur ESP8266]]


=Outils=
==ESPTool==

<pre>
git clone https://github.com/themadinventor/esptool.git
cd esptool/
./esptool.py -h
sudo ln -s /dev/tty.wch\ ch341\ USB\=\>RS232\ 1450 /dev/tty.USB0
./esptool.py -b 115200 -p /dev/tty.USB0 flash_id
./esptool.py -b 115200 -p /dev/tty.USB0 chip_id
</pre>




=Liens=
=Liens=
Line 35: Line 50:
* http://forum.arduino.cc/index.php?topic=267564.0
* http://forum.arduino.cc/index.php?topic=267564.0
* http://www.instructables.com/id/ESP8266-Wifi-Temperature-Logger/
* http://www.instructables.com/id/ESP8266-Wifi-Temperature-Logger/
* http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family


=Exemple de code pour [[Arduino]]=
=Exemple de code pour [[Arduino]]=

Revision as of 20:08, 25 February 2016

Carte ESP8266
Carte ESP8266 Mod

L' ESP8266 est un module Wifi très peu cher (5 USD) accessible par ligne série (https://espressif.com/en/products/esp8266/). Parmi les caractéristiques

  • 802.11 b/g/n
  • Wi-Fi Direct (P2P), soft-AP
  • Integrated TCP/IP protocol stack
  • Integrated low power 32-bit CPU could be used as application processor (80Mhz)
  • SDIO 1.1/2.0, SPI, UART

Dans une utilisation simple, d'apporter une connectivité wifi par ligne série à tout équipement notamment les cartes à base de microcontrolleur comme: Arduino, Nucleo...

Le support récent dans un gcc modifié (http://hackaday.com/2014/10/02/gcc-for-the-esp8266-wifi-module/) permettra d'utiliser ce module de facon autonome.

  • Firmware permettant la programmation en langage Lua: nodemcu
  • Tutorial utilisant le firmware nodemcu pour réaliser capteur avec une interface web: ici.

Programmation

C

Lua

Python

ESP8266 @ AIR


Outils

ESPTool

git clone https://github.com/themadinventor/esptool.git
cd esptool/
./esptool.py -h
sudo ln -s /dev/tty.wch\ ch341\ USB\=\>RS232\ 1450 /dev/tty.USB0
./esptool.py -b 115200 -p /dev/tty.USB0 flash_id
./esptool.py -b 115200 -p /dev/tty.USB0 chip_id


Liens

Exemple de code pour Arduino

Réécrit à partir de http://www.seeedstudio.com/wiki/WiFi_Serial_Transceiver_Module



Exemple de code pour STM32 Nucleo

TODO