Cov txheej txheem:

Program Ib Yam ESP8266 Board/module Nrog AT Commands Firmware: 5 Kauj Ruam
Program Ib Yam ESP8266 Board/module Nrog AT Commands Firmware: 5 Kauj Ruam

Video: Program Ib Yam ESP8266 Board/module Nrog AT Commands Firmware: 5 Kauj Ruam

Video: Program Ib Yam ESP8266 Board/module Nrog AT Commands Firmware: 5 Kauj Ruam
Video: Controlling 8 Channel Relay Board with Home Assistant / WIFI esp8266 Module Installing YAML File 2024, Hlis ntuj nqeg
Anonim
Program Ib Yam ESP8266 Board/module Nrog AT Commands Firmware
Program Ib Yam ESP8266 Board/module Nrog AT Commands Firmware

Txhua tus qauv ESP8266 thiab pawg thawj coj tuaj yeem ua haujlwm tau ntau txoj hauv kev:

  • Arduino,
  • nab hab sej,
  • Lua,
  • AT lus txib,
  • ntau ntau tej zaum…

Thawj peb ntawm lawv yog qhov zoo tshaj plaws rau kev ua haujlwm ib leeg, AT firmware yog siv ESP8266 ua cov qauv lossis ntsuas nrawm nrog TTL RS232 kev sib txuas lus.

BTW programming ESP (piv txwv li nrog Arduino, nab hab sej lossis Lua) yuav tshem tawm txhua qhov cim xeeb. Yog li yog tias koj xav rov qab mus rau AT cov lus txib koj yuav tsum rov ua dua firmware.

Kuv yuav qhia koj yuav ua li cas kom raug nrog Espriff cov cuab yeej thiab cov ntaub ntawv.

Kauj ruam 1: Yuav tsum tau Software thiab Cov Ntaub Ntawv

ESP8266 NON-OS SDK-muaj AT commands firmware hauv.. / ESP8266_NONOS_SDK-2.2.0 / bin / at

  • Flash Rub Cov Cuab Yeej (ESP8266 & ESP32 & ESP32 -S2) - qhov kev pab cuam rau nyem qhov tshiab firmware
  • ESP8266 SDK Pib Phau Ntawv Qhia - muaj daim duab qhia chaw uas koj yuav tsum tau ua raws cov program chip
  • ESP8266 AT Cov Lus Qhia Teeb - xaiv tau AT cov lus qhia qhia

Kauj ruam 2: Kho vajtse thiab kev sib txuas

Kho vajtse thiab kev sib txuas
Kho vajtse thiab kev sib txuas

Koj yuav tsum tau:

ib qho ESP8266 module lossis board,

ib qho USBSerial 3.3V hloov pauv (ESP tsis yog 5V zam) (qee cov laug cam muaj ib qho piv txwv NodeMCU),

xaiv tau 3.3V PSU (tsis yog txhua lub tshuab hloov pauv muaj lub zog txaus los ua kom lub zog ESP8266 nce)

Rau programming koj yuav tsum:

  • rub GPIO15 nqis (lub xeev tsis raug rau feem ntau cov qauv),
  • rub GPIO2 nce (lub xeev tsis raug rau feem ntau cov qauv),
  • rub GPIO0 nqis (ib txwm yuav tsum tau ua, tso nws ib leeg lossis rub tawm rau kev ua haujlwm ib txwm muaj),

rub CH_PD nce

Qee zaum tsis yog txhua tus GPIO pins nkag tau (piv txwv li ESP-01 module), nyob rau hauv txoj kev ntawd lawv tau txuas nrog raws li lawv yuav tsum yog, qee zaum muaj cov nyees khawm nyem, uas yuav tsum tau nias thaum rov pib dua/txhawb kom nkag mus rau hom nyem (piv txwv li NodeMCU) thiab tsis muaj kev sib txuas ntxiv yuav tsum tau ua.

Kauj Ruam 3: Txheeb Xyuas Flash Loj

Kuaj Nws!
Kuaj Nws!
Kuaj Nws!
Kuaj Nws!
Kuaj Nws!
Kuaj Nws!

Koj tuaj yeem siv txhua daim ntawv thov davhlau ya nyob twg. "AT" hais kom ua yog kev sim yooj yim rau kev ua haujlwm, "AT+GMR" yuav qhia koj cov firmware version. Txhua qhov kev hais kom ua yuav tsum tau xaus nrog CR+LF. Koj yuav pom ntau ntxiv hauv ESP8266 AT Cov Lus Qhia Teeb.

"AT+CWAP" teev txhua qhov chaw nyob ze, tab sis module yuav tsum nyob hauv hom chaw nres tsheb: "AT+CWMODE_CUR = 1"

Kuv txuas cov screenshots los ntawm kuv lub davhlau ya nyob twg nyiam Tera Term thiab nws cov teeb tsa (CR+LF rau kab tshiab thiab tus nqi tsim nyog).

Pom zoo: