Tabla de Contenidos
url configuracion IDE arduino: http://arduino.esp8266.com/stable/package_esp8266com_index.json
Voltaje de trabajo entre 3V y 3,6V. Según noticias del propio CEO de Espressif, admite tensiones de entrada de 5V e los puertos GPIO. https://programarfacil.com/podcast/esp8266-wifi-coste-arduino/
https://github.com/esp8266/esp8266-wiki/wiki/Boot-Process#esp-boot-modes
https://xenoworld.de/knowledge/2015-02-06-esp8266-03-flashing.html alimentacion 5 voltios ,entre el EN y el vcc, con el buspirate puesto en W despues de activar el bridge y antes del reset ((1)y )
log del proceso: C:\esptool-master>esptool.py -p COM7 -b 115200 read_mac esptool.py v1.2-dev Connecting… MAC: 5c:cf:7f:88:c1:ba
C:\esptool-master>esptool.py -p COM7 -b 115200 write_flash 0x00000 d:\software\esp8266\nodemcu_latest.bin esptool.py v1.2-dev Connecting… Running Cesanta flasher stub… Flash params set to 0x0000 Writing 405504 @ 0x0… 101376 (25 %) Writing 405504 @ 0x0… 402432 (99 %) A fatal error occurred: Timed out waiting for packet header
https://vilimpoc.org/blog/2016/05/03/esptool-ck-esp8266-and-ftdi-bug-hunting/
http://www.guillier.org/blog/tag/esp8266.html
firmware de http://www.electrodragon.com/w/ESP8266_Firmware donde puedes encontrar la versión mas reciente AT
tipos de firmware para esp8266
LUA
esp-link
arduino
https://github.com/esp8266/Arduino https://github.com/esp8266/Arduino/releases/download/2.4.0/esp8266-2.4.0.zip Basicamente, con poner a punto el interfaz, ya esta; se sube completo el sketch y el, digamos, bootloader de arduino. Basicamente, se programa el esp con el codigo para ejecutar el sketch de arduino directamente. (no hay un bootloader en esp que ejecute scripts de arduino, es codigo compilado previamente cada vez)
AT
http://espressif.com/en/support/download/at desde electrodragon.com: esptool.py –port com3 write_flash 0x00000 AiThinker_ESP8266_DIO_8M_8M_20160615_V1.5.4.bin
actualización de firmware por pasos
https://www.espressif.com/en/products/hardware/esp8266ex/resources fuente: http://remotexy.com/en/help/esp8266-firmware-update/
The tool for firmware update
To update the firmware you must download the special tool application and the firmware itself. Application for firmware update ESP8266 will use Flash Download Tools v2.4 from official site Espressif Systems. Link to the download page: http://espressif.com/en/products/hardware/esp8266ex/resources. You must go to “Tools” section.
Link to the program in our file storage: FLASH_DOWNLOAD_TOOLS_v2.4_150924.rar Firmware
The firmware can also be downloaded from the official site. A link to the download page on the official website: http://espressif.com/en/products/hardware/esp8266ex/resources. You must go to “SDKs & Demos” section and download firmware ESP8266 NONOS SDK version at least v1.3.0. This firmware version began to support AT commands v0.40.
Link to the program in our file storage: esp8266_nonos_sdk_v1.4.0_15_09_18_0.rar
All downloaded files must be unpacked and placed in the directory where the full path to the file contains only Latin characters, ie characters without the language localization. Settings
Run the application Flash Download Tools v2.4 (the .exe file of the same name). In the opening window must correctly chose the downloaded files and setup the connection mode.
Downloadable files are located in the “bin” directory with the firmware files. For each file you must specify a valid address download. Use the following table to select files and destination addresses: Файл в каталоге bin Флеш 8Mbit (512KB+512KB) Флеш 16Mbit (1024KB+1024KB) esp_init_data_default.bin 0xFC000 0x1FC000 blank.bin 0xFE000 0x1FE000 boot_v1.4(b1).bin or later 0x00000 0x00000 user1.1024.new.2.bin (in subdirectory “at”) 0x01000 0x01000 user2.1024.new.2.bin (in subdirectory “at”) 0x81000 0x81000
Set the following settings:
SPIAutoSet — set; CrystalFreq - 26M; FLASH SIZE – 8Mbit or 16Mbit depending on the size of the flash memory; COM PORT – select the port that is connected to ESP; BAUDRATE – 115200
To start the firmware update process must press the button “START”. The sequence of steps for ESP8266 firmware update
1. Connect the ESP module to the computer according to the wiring diagram in this article.
2. Start the serial port monitor. Send the AT-command AT+RST and AT+GMR for determine the current firmware version and memory size of the module. This step also allows to check the correct connection of the module.
3. Run the application for update firmware Flash Download Tools, correctly configure the uploaded files and addresses, correctly set settings.
4. Turn off power the ESP8266 module.
5. Connect CPIO0 pin to the ground.
6. Turn on power the ESP8266 module.
7. Click button “START” in the application for update firmware.
8. Wait until the end of the update firmware. At the end of the process appears inscription FINISH green.
9. Turn off power the ESP8266 module and disconnect the ground from pin CPIO0.
10. Turn on the module and run the serial port monitor. Make sure the module and new firmware version is works by send the AT-command AT+GMR.
Otros medios de flashear firmware que parece funcionan mejor: https://www.prometec.net/firmware-esp8266/
para usar el esptool.py como se menciona aqui: https://gist.github.com/stonehippo/3d9eb100d4f545015515
hay que tener el puente de PD a 3.3 (module select) y sobre todo el de GPIO0 a GND. basicamente, si el firmware es at, con el gpio0 al aire se pueden mandar comandos at, y con el a GND no. Y viceversa, con el gpio0 a gnd se puede usar el esptool.py, pero con el gpio0 al aire no. para conectar con el IDE de arduino, el esp tiene que tener GPIO0 a GND
modelos de placas
esptool.py flash_id:
hw-360 SBX arroja: (varias unidades probadas) manufacturer: e0 device: 4016 VID: 1A86 PID: 7523
ai-cloudinside (rele esp8266) arroja: manufacturer: 85 Device: 6014
MULTIPLE DOCUMENTACION OFICIAL DISPONIBLE EN: https://bbs.espressif.com/viewtopic.php?f=67&t=225
Whereas on an AVR, ISP is the default method to flash new firmware, on the ESP8266, it is UART flashing. The ESP8266 already has a system built-in for UART flashing (just like an AVR has a system for ISP flashing), so you don't need to flash a software UART bootloader. https://tttapa.github.io/ESP8266/Chap01%20-%20ESP8266.html
CUANDO YA FUNCIONA Y QUEREMOS QUE SEA ESTABLE ...
If you're using a bare-bone ESP-## board by AI Thinker, you have to add some resistors to turn on the ESP8266, and to select the right boot mode.
Enable the chip by connecting the CH_PD (Chip Power Down, sometimes labeled CH_EN or chip enable) pin to VCC through a 10KΩ resistor. Disable SD-card boot by connecting GPIO15 to ground through a 10KΩ resistor. Select normal boot mode by connecting GPIO0 to VCC through a 10KΩ resistor. Prevent random resets by connecting the RST (reset) pin to VCC through a 10KΩ resistor. Make sure you don't have anything connected to GPIO2 (more information in the next chapter).
ahorro de energia
Existe un modo de ahorro de energía en los ESP8266 llamado Deep Sleep que se basa en apagar completamente el dispositivo durante un tiempo determinado.
Trascurrido dicho tiempo se produce una señal en el GPIO16 que, uniéndolo al puerto RST, reinicia el ESP8266.
Así, este modo NO continúa donde estaba sino que reinicia el dispositivo.
La sintaxis es muy sencilla; cuando deseemos enviar el dispositivo a 'dormir' sencillamente hemos de teclear:
Código: Seleccionar todo
ESP.deepSleep(<microsegundos>);
Recordad: Hay que conectar el GPIO16 al conector RST. En la plac NodeMCU es el conector D0, en otros corresponde con el mismo pin que “0” en el IDE Arduino.
baterias lipo
Sabes que la lipo se carga a 4,2 cada celda, y que baja rápido hasta 3,8. Luego baja de forma lineal hasta unos 3,2-3,1 y luego de forma rápida a 0,0 4,1-4,2–>100% 4,0–>95% 3,9–>90% 3,8–>80% 3,7–>70% 3,6–>60% 3,5–>50% 3,4–>40% 3,3–>30% 3,2–>15% 3,1-3,0–>5% <3>0% https://www.arde.cc/foro/viewtopic.php?t=1038
documentando error
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x4010f000, len 1392, room 16 tail 0 chksum 0xd0 csum 0xd0 v3d128e5c ~ld
reset causes:
0: 1: normal boot 2: reset pin 3: software reset 4: watchdog reset
boot device:
0: 1: ram 3: flash - See more at: http://www.esp8266.com/viewtopic.php?p=2096#p2112


