www.ticmania.net
Nota1: Se não funcionar desligar a alimentação do ESP8266 e voltar a ligar
Nota2: Se não funcionar retirar o chip do arduino + repetir Nota1
Nota3: Verificar se a porta com está correta
Nota4: é normal aparecer a mensagem "Leaving... Failed to leave Flash mode"
-- Depois de atualizar
Retirar o GPIO0 de Gnd > desligar alimentação do ESP8266 e voltar a ligar (neste processo o chip do ESP8266 fica novamente protegido de flash)
Note1: Don't work, turn off the power to the ESP8266 and switch it on again
Note2: If it does not work remove the arduino chip + repeat Note1
Note3: Verify that the com port is correct
Note4: It is normal to see the message "Leaving ... Failed to leave Flash mode"
-- After updating
Remove the GPIO0 from Gnd> turn off power to the ESP8266 and reconnect (in this process the chip of the ESP8266 is protected again from flash)
ESP8266-01 (blue version )
Download a aplicação para atualizar o firmware + firmware
Download the application to update firmware + firmware
Flash esp8266 preto ESP-01E (black version)
http://www.circuitsgallery.com/2016/01/getting-started-with-esp8266-esp-01.html
Actualização do firmware do módulo esp8266-01E com recurso a TTL. O esquema apresentado para o módulo esp8266 (blue version), também funciona com este módulo, ou seja, pode usar arduino para update do firmware em vez de TTL.
Ardu_Esp_InternetLED.txt - Exemplo de teste (é necessário configurar o router - ver abaixo) depois de compilar consultar o IP que deverá surgir no serial monitor
AT for check Communication »»» Response "OK"
AT+RST for Software Reset Module »»» Response "OK"
AT+GMR for check Firmware Version »»» Response "Firmware Version xxxxxxx" »»» Response "OK"
AT+CWMODE=1 for Set Mode 1 ( Station ) »»» Response "OK"
AT+CWLAP for check WiFi Network Available »»» Response "Network Detail" »»» Response "OK"
AT+CWJAP="ssid","password" to Connect WiFi Network »»» Response "OK"
No Arduino -- sendData("AT+CWJAP=\"ssid\",\"password\"\r\n", 2000, DEBUG);
AT+CIPMUX=1 set to Multi point Mode »»» Response "OK"
AT+CIPSERVER=1,port to Start Server (Normalmente 80 ou 8080) »»» Response "OK"
AT+CIFSR to check your IP Address »»» Response "IP Address" »»» Response "OK"
AT+CIPCLOSE=0 to close all socket
Partindo do principio que sabe aceder ao router, normalmente através do Default IP - 192.168.1.1 // Default user admin // Default password admin
Manual para configurar portas Necessário para que a comunicação (Internet » ESP8266) funcione
Base de dados SQL como um local central para enviar e receber informações. Código PHP permite a comunicação como o ESP que por sua vez comunica com a base de dados, através de uma interface web simples.
https://www.youtube.com/watch?v=qU76yWHeQuw&t=1633s
https://www.youtube.com/watch?v=zGgUfAB4m24&t=286s
Nota: Testar comunicação com a página web
Arduino sketch--- BareMinimum
Conexões Arduino para esp8266 ---- (TX-TX); (Rx-Rx); (GND - gnd),(VCC - vcc 3.3v),(CHPO - vcc 3.3v)
Nota: Atenção ao SSID e PASS
(TX -9), (RX - 8) , (GND - gnd),(VCC - vcc 3.3v),(CHPO - vcc 3.3v)
Ligar http://192.168.1.xx/?comando=10 --- desligar http://192.168.1.xx/?comando=11
Nota1: Atenção ao SSID e PASS + IP do ESP8266
Nota2: Este exemplo pode ser colocado no servidor online, (Via FTP ou outro processo - basta colocar no alojamento web a pasta "htlm_e_java")
Nota3: Testar em vários browsers
Download da pasta com os ficheiros de suporte ao exercício
RX to RX and TX to TX
AT+CWLAP for check WiFi Network Available
AT+CWJAP="ssid","password"
Caminho provável --C:\Users\x1\Documents\Arduino\libraries\Cayenne\extras\scripts
1- Abrir CMD (cmd.exe)
1.1- cd Users\x1\Documents\Arduino\libraries\Cayenne\extras\scripts\
1.2- cayenne-ser.bat -c COM4
Nota1: Aquando do upload para o arduino desligar o TX e RX - voltar a ligar assim que o carregamento esteja completo
Nota2: Config porta do router
REM === Edit these lines to match your need ===
set COMM_PORT=COM4
set COMM_BAUD=115200
set SERV_ADDR=arduino.mydevices.com
set SERV_PORT=80
http://br-arduino.org/2015/07/arduino-servidor-web-wifi-esp8266.html
https://www.youtube.com/playlist?list=PL-VRW4ibM-f0Mjs5tILNftnI2HqRB9jx
Link to the ESPHelper Library: https://github.com/ItKindaWorks/ESPHe... Support the It Kinda Works Patreon (And help keep IKW going!!!): https://www.patreon.com/itkindaworks
Links
http://www.instructables.com/id/Using-the-ESP8266-module/?ALLSTEPS
https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/installing-the-esp8266-arduino-addon
http://arduino.esp8266.com/stable/package_esp8266com_index.json
https://pplware.sapo.pt/gadgets/hardware/tutorial-modulo-wifi-esp8266-no-arduino/
https://learn.sparkfun.com/tutorials/alternative-arduino-interfaces
http://playground.arduino.cc/Main/InterfacingWithSoftware
https://www.youtube.com/channel/UCMOgTxgkrWUZ4HUtc-4JwkA
https://www.youtube.com/watch?v=XdGFzLANsd4