Cov txheej txheem:

Flashing SONOFF Tasmota Firmware ntawm NodeMCU: 9 Cov Kauj Ruam
Flashing SONOFF Tasmota Firmware ntawm NodeMCU: 9 Cov Kauj Ruam

Video: Flashing SONOFF Tasmota Firmware ntawm NodeMCU: 9 Cov Kauj Ruam

Video: Flashing SONOFF Tasmota Firmware ntawm NodeMCU: 9 Cov Kauj Ruam
Video: Flashing a Sonoff With Tasmota 2024, Hlis ntuj nqeg
Anonim
Flashing SONOFF Tasmota Firmware ntawm NodeMCU
Flashing SONOFF Tasmota Firmware ntawm NodeMCU

Sonoff yog WiFi tswj kev hloov pauv uas tau teeb tsa nrog ESP8266 IC thiab muaj kev xa xov los tswj lub cuab yeej ntawm Is Taws Nem. Qhov IC no tuaj yeem raug teeb tsa thiab rov tsim dua los ntawm Arduino IDE. Cov neeg tsim khoom ntawm Sonoff luam tawm cov tsev qiv ntawv thiab cov ntaub ntawv Arduino ntawm lawv nplooj GitHub. Thaum pib, nws tsuas yog rau Sonoff ua cov laug cam nkaus xwb, tom qab ntawd nws txhawb ntau ESP8266 cov laug cam thiab Kev txhim kho cov laug cam zoo li NodeMCU. Hauv qhov kev qhia no, peb yuav pom yuav ua li cas nyem rau Sonoff Tasmota Firmware rau hauv NodeMCU cov phiaj xwm txhim kho. Hauv qhov hloov kho tshiab tshiab, koj tuaj yeem xaiv qhov sib txawv ESP8266 Boards tau yooj yim.

Kauj Ruam 1: Cov Cheeb Tsam Xav Tau - Yam yuav tsum tau ua ua ntej

  • NodeMCU Development Board
  • microUSB Cable
  • Sonoff Tasmota Firmware - GitHub Txuas
  • Advanced IP Scanner
  • Arduino IDE Cov

Rub tawm Sonoff Tasmota Firmware los ntawm qhov txuas no.

Nco ntsoov tias koj muaj ESP8266 Lub Tsev Qiv Ntawv tau teeb tsa ntawm koj Arduino IDE. Yog tias koj xav paub yuav teeb tsa ESP8266 lub tsev qiv ntawv kom raug mus ntsib qhov blog no tiav ntawm Flashing SONOFF Tasmota Firmware ntawm NodeMCU.

Kauj Ruam 2: Xws li Sonoff Libraries rau Arduino IDE

Suav nrog Sonoff Libraries rau Arduino IDE
Suav nrog Sonoff Libraries rau Arduino IDE

Thaum SONOFF Tasmota Firmware tau rub tawm los ntawm GitHub. Qhib Sonoff Tasmota nplaub tshev. Nkag mus rau 'lib' nplaub tshev thiab luam tag nrho cov ntsiab lus, tom qab ntawv muab nws tso rau hauv Arduino 'cov tsev qiv ntawv' nplaub tshev ntawm koj lub computer.

Tam sim no peb suav nrog cov ntaub ntawv tsev qiv ntawv tsim nyog rau hauv Arduino IDE Library. Cia peb teeb tsa peb cov cai.

Kauj Ruam 3: Sonoff Cov Ntaub Ntawv Tseem Ceeb thiab Tus Neeg Siv Config

Sonoff Cov Ntaub Ntawv Tseem Ceeb thiab Cov Neeg Siv Kho
Sonoff Cov Ntaub Ntawv Tseem Ceeb thiab Cov Neeg Siv Kho

Sab hauv cov ntawv rub tawm, Qhib cov ntawv sonoff.ino. Nws yuav qhib txhua cov ntaub ntawv tsim nyog hauv tab tom ntej hauv Arduino IDE. Tam sim no qhib lub userconfig.h tab kom nkag mus rau peb li Wi-Fi Cov Ntawv Pov Thawj.

Kauj Ruam 4: Kho SSID, Lo lus zais thiab Lub Npe Lub Npe

Kho SSID, Lo lus zais thiab Lub Npe Lub Npe
Kho SSID, Lo lus zais thiab Lub Npe Lub Npe

Tam sim no hloov kho SSID thiab Lo lus zais nrog koj lub network WiFi SSID thiab Password. Tsis tas li, muab lub npe tshwj xeeb los ntawm qhov koj xaiv hauv #define PROJECT "sonoff" kab.

Piv txwv #define PROJECT “nodefactory”

Kauj Ruam 5: Xaiv Pawg Kho Kom Zoo NodeMCU

Xaiv Pawg Kho Kom Zoo NodeMCU
Xaiv Pawg Kho Kom Zoo NodeMCU

Tam sim no txuas koj NodeMCU thiab xaiv qhov raug COM Port thiab Board Version. Nco ntsoov tias cov teeb tsa zoo li no rau NodeMCU 1.0 Board.

Pawg Thawj Coj: NodeMCU 1.0 (ESP12-E Module)

Flash Loj: “4M (1M SPIFFS)

CPU Zaus: 80 MHZ

Upload Ceev: "115200"

Tom qab ntawd nyem lub Firmware los ntawm txhaj Upload.

Kauj Ruam 6: Nrhiav NodeMCU IP Chaw Nyob ntawm Koj Lub Network

Nrhiav NodeMCU IP Chaw Nyob ntawm Koj Lub Network
Nrhiav NodeMCU IP Chaw Nyob ntawm Koj Lub Network
Nrhiav NodeMCU IP Chaw Nyob ntawm Koj Lub Network
Nrhiav NodeMCU IP Chaw Nyob ntawm Koj Lub Network

Thaum Flashing tiav Qhib Advanced IP Scanner. Thiab tshawb nrhiav tus IP chaw nyob sab hauv koj lub network IP. Hauv kuv qhov xwm txheej, Kuv tus IP yuav nyob ntawm 192.168.255.0-255 (Txhais tau tias IP yuav nyob ntawm 0-255). Nyem luam theej duab thiab koj tuaj yeem pom lub npe project uas koj tau muab hauv cov ntaub ntawv userconfig.h ua lub npe khoom ntawm no.

Nco tseg tus IP chaw nyob uas koj pom thiab muab tshuaj txhuam rau hauv koj tus browser URL thiab nyem nkag mus. Nws yuav qhia nplooj Sonoff Tasmota los teeb tsa koj tus qauv.

Kauj Ruam 7: Kev teeb tsa rau ESP8266 Boards

Kev teeb tsa rau ESP8266 Boards
Kev teeb tsa rau ESP8266 Boards

Los ntawm lub neej ntawd, nws yuav nyob hauv Sonoff Basic. Yog li koj yuav tsum hloov nws mus rau 'Generic' hauv 'Configuration' menu. Nyem 'Configuration' thiab sab hauv uas xaiv 'Configure Module'.

Kauj ruam 8: Txuag Configuration

Txuag Tus Txheej Txheem
Txuag Tus Txheej Txheem

Xaiv lub Rooj Tswjhwm Saib ua Generic thiab Txuag. Lub cuab yeej yuav rov pib dua. Qhov kev xaiv no yog rau txhua pawg ESP8266.

Kauj Ruam 9: Kev Xaiv GPIO Tshiab Raws li ESP8266 Pawg Thawj Tswj Hwm

Kev Xaiv GPIO Tshiab Raws Li ESP8266 Pawg Thawj Tswj Hwm
Kev Xaiv GPIO Tshiab Raws Li ESP8266 Pawg Thawj Tswj Hwm

Tam sim no yog tias koj nyem qhov teeb tsa, tom qab ntawd koj tuaj yeem pom ntau qhov kev xaiv GPIO. Siv qhov ntawd koj tuaj yeem xaiv GPIO Kev Ua Haujlwm.

Nyob ntawm GPIO teeb tsa qhov kev xaiv yuav tshwm rau ntawm Homepage zoo li DHT, Relay, Hloov thiab Ntau yam ntxiv.

Yog xav paub ntau ntxiv, mus saib peb qhov blog - Lub Hoobkas Forward Blog

Pom zoo: