Cov txheej txheem:

ESP32 CAM Lub ntsej muag paub nrog MQTT Txhawb - AI-Thinker: 4 Kauj Ruam
ESP32 CAM Lub ntsej muag paub nrog MQTT Txhawb - AI-Thinker: 4 Kauj Ruam

Video: ESP32 CAM Lub ntsej muag paub nrog MQTT Txhawb - AI-Thinker: 4 Kauj Ruam

Video: ESP32 CAM Lub ntsej muag paub nrog MQTT Txhawb - AI-Thinker: 4 Kauj Ruam
Video: ESP32-CAM - Быстрый старт 2024, Kaum ib hlis
Anonim
ESP32 CAM Lub ntsej muag paub nrog MQTT Txhawb | AI-Xav
ESP32 CAM Lub ntsej muag paub nrog MQTT Txhawb | AI-Xav

Nyob zoo!

Kuv xav qhia kuv cov cai rau txoj haujlwm yog kuv xav tau kom muaj ESP CAM nrog Lub ntsej muag lees paub, uas tuaj yeem xa Cov Ntaub Ntawv mus rau MQTT. Yog li zoo.. tom qab tej zaum 7 Teev ntawm saib hla ntau tus lej piv txwv thiab saib seb yog dab tsi, Kuv tau ua tiav MQTT kev koom ua ke!

Khoom siv

Koj xav tau dab tsi:

  • ESP32 Lub Koob Yees Duab (~ 5 $)
  • TTL programmer (~ 2 $)
  • 5 Jumper Cables

Kauj Ruam 1: Teeb Tus Txheej Txheem TTL (Xaiv tau)

Yog tias koj siv Khoos phis tawj, uas muaj qhov hloov tshiab dua li Windows 7, koj yuav xav tau cov tsav tsheb txhawb nqa rau tus programmer.

Yog tias lub cuab yeej tsis tuaj yeem pib, tom qab ntawd kuv qhia koj qhov kev qhia yooj yim no rau nruab cov tsav tsheb manually

Kauj Ruam 2: Teeb Kev Sib Txuas thiab teeb tsa hauv IDE

Teeb Kev Sib Txuas thiab teeb tsa hauv IDE
Teeb Kev Sib Txuas thiab teeb tsa hauv IDE

Koj yuav tsum xaim nws zoo li hauv daim duab (Nws yog qhov zoo dua los siv 5v siv 3v!)

Cov grey cable tsuas yog xav tau txuas nrog yog tias koj xav ua haujlwm rau nws!

Kuv xav tias koj twb tau teeb tsa ESP32 pob, yog li koj yuav tsum tau rub cov ntawv rov qab, los ntawm qhov koj tab tom siv tam sim no rau version 1.01 cov kauj ruam no yog qhov tsim nyog rau Lub ntsej muag paub, txwv tsis pub nws yuav tsis ua haujlwm!

Cov kauj ruam tom ntej yog nkag mus rau TOOLS hauv koj li IDE thiab teeb tsa Txoj Haujlwm Muab faib rau Loj APP, thiab xaiv ESP32 Wrover Module ua Pawg!

Kauj Ruam 3: Cov Cai thiab Cov Tsev Qiv Ntawv

Koj tsuas yog xav tau PubSubClient Library, txhua lub tsev qiv ntawv tau txais kev teeb tsa.

(Tsis txhob hnov qab hloov pauv koj daim ntawv pov thawj ua ntej rub tawm)

Rub tawm daim ntawv txuas thiab nyem upload tsis txhob hnov qab cov kab hlau grey hais los saum no!

Tom qab Upload qhib Serial Monitor thiab xaiv 115200 raws li tus nqi baud.

Koj yuav tsum pom tus IP chaw nyob txuas nrog. NCO TSEG: Lub ntsej muag lees paub twb tau qhib thaum pib, yog li nws yuav tshuaj xyuas koj lub ntsej muag! EDIT: Nws yuav tsis cia li ua qhov ntawd ntxiv lawm!

Ntawm MQTT ib feem koj yuav tsum pom cov ntaub ntawv tab thiab ib lub ntsej muag tab. EDIT: Thiab id tab

Kauj Ruam 4: Nov Yog Nws | Kho

Nov yog nws rau tam sim no, Kuv xav tias kuv yuav hloov kho nws qee lub sijhawm yog tias kuv pom kab lossis lwm yam.

Kuv vam tias koj nyiam!

Kho:

Kuv tau hloov qee qhov kev cai!

Tam sim no nws txuag koj Lub Ntsej Muag hauv lub cim xeeb sab hauv, yog li thaum koj pib nws, nws yuav thauj tag nrho cov ntsej muag uas tau khaws tseg yav dhau los los ntawm Flash!

Nws cia li txuag lub ntsej muag rau npe rau Flash.

Kuv kuj tshem tawm qhov pib Sau npe lub ntsej muag thaum pib.

Kuv tau ua MQTT Topic tshiab hu ua "id", qhov no yog qhov uas nws qhia tus lej kawg uas tau lees paub!

Pom zoo: