Cov txheej txheem:

Esp8266 Firmware Update: 7 Kauj Ruam
Esp8266 Firmware Update: 7 Kauj Ruam

Video: Esp8266 Firmware Update: 7 Kauj Ruam

Video: Esp8266 Firmware Update: 7 Kauj Ruam
Video: #258 ESP32 Web Pages AND OTA updates - just3️⃣libraries! ESP8266 also! 2024, Kaum ib hlis
Anonim
Esp8266 Firmware Update
Esp8266 Firmware Update
Esp8266 Firmware Update
Esp8266 Firmware Update

ESP8266 tus qauv yog tus qauv siv wireless uas pheej yig Nws muaj SOC (txheej txheem ntawm nti) uas muaj peev xwm muab wifi rau ib qho micro tswj/microprocessor. Nws muaj ob txoj hauv kev esp8266 tuaj yeem siv tau.

  1. Tsis siv neeg esp8266
  2. Esp8266 nrog raspberry pi lossis arduino lossis stm32

Esp8266 xav tau sab nraud 3.3 v rau kev ua haujlwm kom raug. Yog koj siv esp8266 nrog arduino, sim tsis txhob muab lub zog los ntawm arduino. Raws li arduino qhov siab tshaj tam sim no muab peev xwm yog 40mA thaum esp8266 thim 250mA. Qhov no feem ntau yuav muaj teeb meem nyob txhua lub sijhawm rub tawm lub firmware tshiab lossis thaum koj siv esp8266

Rau cov pib nws qhia kom mus nrog node mcu board muaj nyob hauv kev ua lag luam. Txhua ob hom pawg thawj coj ib qho nrog RGB coj & Ldr sensor thiab lwm yam nrog tsuas yog cov pins tawg. Txawm lub rooj tsavxwm tau tsim hauv kev tswj hluav taws xob uas ua haujlwm lub zog tsim nyog

  1. esp8266 witty pawg thawj coj saib
  2. Nco Mcu

Kauj Ruam 1: Nrhiav Esp8266 Flash Software

Nrhiav Esp8266 Flash Software
Nrhiav Esp8266 Flash Software

Rub tawm lub software los ntawm tus tsav

espFlasher

Kauj ruam 2: Nrhiav ESP8266 Firmware Cov Ntaub Ntawv

Nrhiav ESP8266 Firmware Cov Ntaub Ntawv
Nrhiav ESP8266 Firmware Cov Ntaub Ntawv

Mus rau qhov txuas hauv qab no kom pom cov ntaub ntawv firmware.

  1. AT firmware hloov tshiab kawg 2017 sep
  2. https://github.com/espressif/ESP8266_AT
  3. https://drive.google.com/file/d/0B3dUKfqzZnlwdUJUc2hkZDUyVjA/view
  4. https://drive.google.com/open?id=1c0zO8dbw5pIAc0lDYAg0cBx-PXFS_iTg

Kauj Ruam 3: Txuas ESP rau Flash hom

Txuas ESP rau Flash hom
Txuas ESP rau Flash hom
Txuas ESP rau Flash hom
Txuas ESP rau Flash hom
Txuas ESP rau Flash hom
Txuas ESP rau Flash hom
Txuas ESP rau Flash hom
Txuas ESP rau Flash hom

ESP 8266-01 tus qauv

Siv Esp01 programmer adapter

Nov yog txoj hauv kev zoo tshaj plaws rau kev ua kom pom tseeb esp01 yuav cov qauv no thiab tau txais dawb los ntawm cov xov tsis zoo nyob rau yav tom ntej.

Nws yooj yim heev thiab nrawm heev.

Esp01-programmer adapter

Nco tseg: Tus qauv tsis nkag mus rau lub rooj tsav xwm txheej txheem ncaj qha. Rau qhov no koj yuav tsum tau siv lub tshuab jumper rau ntawm nws. Thov xa daim duab rau qhov no. Qhov jumper tau sib txuas ntawm gpio 0 thiab gnd tus pin.when tsis siv nyob rau hauv lub cajmeem hom hloov lub jumper rau tus pin khoob.

Siv BreadBoard Power module

Breadboard fais fab mov

Nrog tus qauv no koj tuaj yeem cais muab 5v rau arduino thiab 3.3 v rau esp8266 tib lub sijhawm. Qhov no yog qhov zoo nkauj ntawm cov qauv no.

Esp rx tus pin kuj xav tau 3.3v. Yog koj sim muab tso rau arduino tx rau esp rx. Qhov esp module tuaj yeem tau txais kev puas tsuaj. Txhawm rau tiv thaiv qhov no los ntawm qhov koj tuaj yeem ua ob yam.

  1. Siv Voltage divider
  2. Siv Qib Shifter

1. Voltage divider

siv 20k thiab 10k resistor kom ua tiav qhov no. Thov txheeb xyuas qhov txuas hauv daim duab

vcc & chpd ntawm esp txuas nrog 3.3v

Gpio 0 & gnd ntawm esp tau txuas rau gnd

Rx ntawm esp txuas nrog TX arduino ncaj qha

Tx ntawm esp txuas nrog arduino rx ntawm qhov faib hluav taws xob

2. Qib shifter

Thov txheeb xyuas qhov txuas hauv daim duab

  • txuas 5v ntawm breadboard fais fab mov rau hv pin ntawm qib kev xav
  • txuas 3.3v ntawm breadboard fais fab mov rau Lv tus pin ntawm qib kev xav
  • txuas tx ntawm arduino mus rau lwm qhov hv pins tawm ntawm 4 tus pin, sib thooj rau tus pin koj tau txuas nrog tx, txuas rx ntawm esp rau qhov uas yuav yog Lv tus pin

2. Esp 8266-12 module

Kuv pom daflabs cov ntawv qhia tau zoo tshaj plaws rau cov qauv no kom deb li deb

www.instructables.com/id/Getting-Started-with-the-ESP8266-ESP-12/

Kuv siv Arduino hloov ntawm cp2102 module, thiab kuv tsis muaj teeb meem hauv kev sib txuas lus.

Kev sib txuas yuav nyob zoo ib yam rau esp8266-12 kom nws khiav hauv hom nyem.

GPIO0 -> QIB

GPIO2 -> HIGH

GPIO15 -> QIB

Kauj ruam 4: Upload Firmware

Rub tawm Firmware
Rub tawm Firmware
Rub tawm Firmware
Rub tawm Firmware
  • Rub tawm qhov kev pab cuam dawb ntawm arduino yog tias siv. Thiab tom qab ntawv txuas esp tx thiab rx pins rau nws
  • Qhib cov software thiab ib qho los ntawm ib qho ntxiv cov ntaub ntawv rau hauv nws..
  • Tam sim no ntxiv cov chaw nyob raws li hauv qab no.

boot_v1.2.bin -0x00000

user1.1024.new2.bin --0x01000

blank.bin -0x7e000

blank.bin -0x3fe000

esp_init_data_default.bin --0x3fc000

  • Tom qab ntawd tsuas yog nyem lub pob nyem, yog tias txhua yam zoo lub teeb yuav pom koj li xwm txheej ntawm kev rub tawm thiab koj li esp 8266 module coj yuav ntsais sai heev.
  • Nrog koj zoo siab !!!.you tau tshaj tawm firmware tshiab rau esp8266.
  • Yog tias koj tsis pom qhov chaw nyob mac no. Siv tus pin rov pib dua thiab muab tso rau gnd li 2 vib nas this thiab tom qab ntawd tshem nws los ntawm gnd thiab rov nyem nws. Nws tseem ceeb heev kom tau txais mac chaw nyob.
  • Nws yog lub sijhawm los ntsuas koj li Esp module. Tam sim no tshem tawm GPIO 0 hlau uas txuas nrog GND, koj tuaj yeem txuas nws mus rau VCC lossis tso nws zoo li no.
  • Tam sim no ntsaws koj Arduino rov qab rau pc thiab qhib qhov chaw nres nkoj txuas.
  • Txheeb xyuas cov lus txib ntawm tus nqi sib txawv, feem ntau ntawm esp ua haujlwm zoo ntawm qhov no 115200 baud tus nqi.
  • Tam sim no nws yog lub sijhawm los sim AT cov lus txib. Nkag mus "AT" hauv qhov chaw nres nkoj thiab koj yuav tau txais "OK". Tam sim no nkag mus "AT+GMR" thiab tshawb xyuas cov firmware version.
  • Txhawm rau hloov tus nqi baud koj tuaj yeem ua qhov no "AT+UART_DEF = 9600, 8, 1, 0, 0"

Kauj Ruam 5: Siv Esp Flash Download Toll V0.9.3.1

Siv Esp Flash Rub Tus Xov Tooj V0.9.3.1
Siv Esp Flash Rub Tus Xov Tooj V0.9.3.1
Siv Esp Flash Rub Tus Xov Tooj V0.9.3.1
Siv Esp Flash Rub Tus Xov Tooj V0.9.3.1
Siv Esp Flash Rub Tus Xov Tooj V0.9.3.1
Siv Esp Flash Rub Tus Xov Tooj V0.9.3.1

Muaj ob lub software txhawm rau txhim kho cov ntawv hauv bin ntawm soc ntawm esp8266, Txoj kev thib ob yog los ntawm kev siv esp nyem rub tawm.

1.) Rub tawm software los ntawm qhov txuas hauv qab no

bbs.espressif.com/viewtopic.php?t=25

2.) Tam sim no tsuas yog xauj hauv cov ntawv uas koj xav upload rau esp thiab tsis hloov ib qho ntawm cov kev teeb tsa tshwj tsis yog lub chaw nres nkoj com thiab hloov tus nqi baud mus rau 115200 thiab nyem rau ntawm pib.you yuav pom cov xwm txheej uploading. Have qee qhov ua siab ntev txog thaum nws hais tiav.

Kauj Ruam 6: Program Esp Siv Esplorer

Program Esp Siv Esplorer
Program Esp Siv Esplorer

esplorer yog software tshwj xeeb ua rau esp8266 wifi module.you tuaj yeem xa cov lej lua lossis AT lus txib ntawm esp8266 los ntawm kev siv software no

download qhov no los ntawm qhov txuas muab

esp8266.ru/esplorer/

Kauj ruam 7: Troubleshooting

Teeb meem
Teeb meem

1.) Lub zog esp 8266 los ntawm lub zog hluav taws xob sab nraud. Thov tsis txhob siv arduino lossis khoos phis tawj rau vcc.

2.) txheeb xyuas qhov xwm txheej thib peb thiab ib txwm thaum tso cov firmware sim rov pib dua esp8266 los ntawm kev ua chpd gnd rau qee lub sijhawm thiab muab rov qab rau vcc

3.) xyuas kom tseeb tias koj siv ib tus phaw lossis tus tswj hwm 3.3. esp8266 xav tau qhov tam sim no ib yam nkaus

4.) Nco tseg: https://www.allaboutcircuits.com/projects/update-the-firmware-in-your-esp8266-wi-fi-module/ lwm qhov txuas uas yuav pab koj daws cov teeb meem nrog esp module.if tsis yog cov saum toj no

txoj kev ua haujlwm…

Pom zoo: