Umhlahlandlela wokugcina we-ESP8266
2024-04-19 3565

I-ESP8266 iyi-chip ye-wifi ene-MCU ehlanganisiwe eyethulwe yi-Esprespressif Systems ngonyaka ka-2015. Yakhiwa yi-Espressif Systems Company futhi ingabona umsebenzi wokuxhumana nenethiwekhi.I-ESP8266 isetshenziswa kabanzi kwi-inthanethi yezinto.Ingaxhunywa ku-microcontroller (njenge-arduino) ngokusebenzisa isikhombimsebenzisi sokuxhumana se-serial, ngaleyo ndlela sibona izimo ezahlukahlukene zohlelo lokusebenza ezifana namalambu smart, izimoto ezihlakaniphile kanye namakhaya ahlakaniphile.Kulesi sihloko, sizokwethula imininingwane ngezimpawu zayo, isakhiwo kanye nezinhlelo zokusebenza.Ngakho-ke ake siqale!

Namabhuku


Yini i-ESP8266?


ESP8266

ESP8266 imodyuli enamandla ye-wifi.Ihlanganisa ukusetshenziswa kwamandla okuphansi kwe-Ultra-low 32I-ESP8266 ingadala imisebenzi ohlelweni oluphambili lwe-Arduino Ide ngokubhala, futhi idlulise idatha yemodyuli yokutholwa exhunywe ebhodini le-Arduino kwiseva nge-ESP8266.Ingahlanganiswa futhi njengebhodi lokuthuthuka nge-Arduino Ide.

Imodyuli esetshenziswa kakhulu ye-ESP8266WiFi yenziwa yinkampani ye-DEXANKE yasekhaya.Imodyuli ye-ESP8266 ye-WiFi eyenziwe nge-Essence ifaka phakathi amamodeli amaningi, ahlukaniswe ngochungechunge oluthathu: ESP-01, i-ESP-07, ne-ESP-12.Uchungechunge ngalunye luhlukaniswe yizijobelelo ezihlukile.Ama-chips amakhulu alawa mamojula ngokuyisisekelo i-ESPPressif's ESP8266 ngokuyisisekelo.Umehluko omkhulu phakathi kwamamodeli ahlukene yinombolo yamachweba we-IO, usayizi wemodyuli, kanye nomthamo we-flash.Umthamo we-Flash unokucaciswa okuhlukahlukene okufana ne-8MBIT ne-32MBIT.

Izici zemodyuli ye-ESP8266


Imodyuli ye-ESP8266 inezici ezilandelayo.

Ukusebenza okuzinzile


Inobubanzi bokushisa obubanzi bokushisa, igcina ukusebenza okuzinzile, futhi ingazivumelanisa nezimo ezahlukahlukene zokusebenza.

Ukusekelwa kwe-Protocol yenethiwekhi


I-ESP8266 isekela i-TCP / IP Protocol Stack futhi ingasebenzisa imigomo evamile yenethiwekhi efana ne-HTTP ne-MQTT.Lokhu kukusiza ukuthi kuxhumane futhi kushintshele idatha ngamapulatifomu wesevisi yamafu, amaseva namanye amadivaysi.

Ukunikezwa kwamandla nosayizi


Imodyuli ye-ESP8266 ngokuvamile isebenzisa ukunikezwa kwamandla we-3.3V futhi inosayizi omncane kanye nephakheji ye-SMT, okwenza kube lula ukuhlanganiswa ezinhlotsheni ezahlukahlukene zamadivayisi we-elekthronikhi.

Ukusetshenziswa kwamandla okuphansi


I-ESP8266 yenzelwe amadivaysi eselula, ama-elekthronikhi agqokekayo kanye nezicelo ze-IOT, ukufeza ukusetshenziswa kwamandla okuphansi kwe-Ultra ngenani lobuchwepheshe obuningana bokuphathelene.Imodi yayo yokonga amandla ilungele izimo zohlelo lokusebenza ezinamandla aphansi.

Izikhonkwane ze-GPIO


Imodyuli imvamisa inezikhonkwane eziningi ze-GPIO zokuxhuma amadivaysi angaphandle nezinzwa.Lezi zikhon zingalungiswa njengokufakwa noma okuphumayo futhi zingasetshenziswa ukulawula amasekethe angaphandle, funda idatha yezinzwa, nokuningi.

Ukwesekwa kwememori yangaphandle


I-module imvamisa isekela imemori ye-flash yangaphandle (i-flash) yokugcina uhlelo lokugcina, i-firmware, nedatha yokucushwa.Lokhu kuvumela imodyuli ukuba ibe namandla amakhulu okugcina ukusekela izinhlelo eziyinkimbinkimbi kanye nokucutshungulwa kwedatha.

I-Software Ecosystem


Ngenxa yohlobo lwayo olubanzi lwezinhlelo zokusebenza kanye nonjiniyela Ukuxhaswa Komphakathi, i-ESP8266 ine-software ecebile yemvelo.Onjiniyela bangathola imitapo yolwazi ehlukahlukene evulekile, izinhlaka, kanye nekhodi yesampula ukuthuthukisa izinhlelo ngokushesha, futhi uthole ukwesekwa kanye nezixazululo ezivela emphakathini.

Kuhlanganiswe kakhulu


I-SP8266 ihlanganisa ukushintshwa kwe-antenna, i-32-bit tensilica processor, i-standard evamile yedijithali ebonakalayo, i-radio frequency amplifier, i-amplifier yomsindo ophansi, imodyuli yokulawulwa kwamandla, ngaleyo ndlela kudinga isikhala se-PCB.

Isikhombimsebenzisi se-hardware se-ESP8266


Hardware interface of ESP8266

Isikhombimsebenzisi esibonakalayo se-PWM


I-GPIO Port ye-ESP8266 isekela umsebenzi we-PWM, ongasetshenziselwa ukulawula ukugqama nejubane lezinto ezilandelwayo ezinjengama-motors namalambu.

Isikhombimsebenzisi esibonakalayo


I-ESP8266 ihlanganisa i-ADC yokuguqula amasiginali we-analog abe yizimpawu zedijithali.Isibonisi se-ADC singaxhunyaniswa kumadivayisi we-analog anjengezinzwa, ukufunda amanani we-analog futhi uziguqulele abe yidatha yedijithali.

Amachweba e-GPIO


I-ESP8266 inamachweba amaningi we-GPIO wokuxhumana namanye amadivayisi ahlukahlukene.I-GPIO Port isekela okokufaka kwedijithali nokukhipha kanye nemisebenzi ye-PWM, futhi ingahlelelwa ukulawula izithonjana ezahlukahlukene, ezinjengelambu le-LED, ukudluliselwa, ukushintshana, njll.

I-I2C interface


Isikhombimsebenzisi se-I2C yisixhumi esibonakalayo se-serial sokuxhumana esingaxhuma amadivaysi amaningi futhi sisebenzise izintambo ezimbili (i-SDA ne-SCL) ukufeza ukuhanjiswa kwedatha.I-ESP8266 ikwazi ukuxhumana namanye amadivayisi we-I2C, njengezinzwa, ukuboniswa, njll., Ngokusebenzisa isikhombimsebenzisi se-I2C.

Sdio interface


Isibonisi se-SDIO yisibonisi sedatha ye-serial ephezulu esetshenziselwa ukufunda nokubhala imisebenzi kumakhadi we-SD namakhadi e-MMC.I-ESP8266 ingaxhunywa ekhadini le-SD noma ekhadini le-MMC ngesibonisi se-SDIO ukugcina nokufunda idatha.

Isikhombimsebenzisi


Isibonisi se-UART yisibonisi esikhulu sokuxhumana nge-serial phakathi kwe-ESP8266 namanye amadivaysi.Ingaxhunywa kwamanye amadivaysi ngokusebenzisa izikhonkwane ze-Rx ne-TX.Ngokusebenzisa isikhombimsebenzisi se-UART, singabona ukuhanjiswa kwedatha, ukwamukela nokulawula ngezinzwa, amakhompyutha, amanye ama-miccocontroller namanye amadivayisi.

Isikhombi se-SPI


I-Interface ye-SPI ibuye ibe yi-serial yokuxhumana interface.Ingaxhuma amadivaysi amaningi futhi isebenzise izintambo ezine (i-Miso, mosi, i-SCK nama-SS) yokudluliswa kwedatha.I-ESP8266 ingakwazi ukuxhumana namanye amadivayisi we-SPI ngokusebenzisa isikhombimsebenzisi se-SPI, njenge-Flash Memory, i-LCD Display, njll.

Indlela yokuthuthuka ye-ESP8266


Uchungechunge lwe-ESP8266 ngokuvamile lunezindlela ezimbili zokuthuthuka, okungukuthi ekuthuthukisweni komyalo kanye nentuthuko ye-SDK.

Ku-Command


Umenzi ushise ngaphambili i-firmware ku-ESP8266 chip ngaphambi kokushiya ifektri, futhi yahlanganisa i-WiFi Protocol Stack ukubona ukuthi kudluliselwe obala umsebenzi ngaphakathi.Abasebenzisi badinga kuphela ukusebenzisa i-USB kwimodyuli ye-TTL noma ethekwini le-serial ye-microcontroller ukufezekisa ukuxhumana nemodyuli ye-WiFi.Ngokuthumela emiyalweni, abasebenzisi bangalawula imodyuli ye-WIFI.

Ukuthuthukiswa kwe-SDK


Njengoba i-ESP8266 ngokwayo iyi-chip ehlelekile, ingabhekwa njenge-microcontroller enemisebenzi yokuxhumana engenantambo.Abasebenzisi badinga ukubhala uhlelo oluhambisanayo nge-ede ekhethekile bese bebhala uhlelo ku-chip nge-firmware evuthayo.Ngakho-ke, ukusebenzisa ukuxhumana kwe-WiFi, kudingeka senze ngokwezifiso isitaki se-WiFi.Lokhu kudinga ukuthi abasebenzisi babe nezinga eliphakeme lolwazi olufanele.

Isakhiwo se-ESP8266


Structure of ESP8266

Njengoba kungabonakala esithombeni, i-ESP8266 chip ihlanganisa i-CPU futhi iyiprosesa engu-32-bit.Isebenza njengeprosesa le-WiFi Protocol neprosesa lesicelo.Imvamisa eyinhloko yale processor isekela imvamisa emibili: 80mhz no-160mhz.Onjiniyela bangabhala izinhlelo zokusebenza bese bezilanda ku-chip.Iprosesa iyakwazi ukusebenzisa lezi zinhlelo ezibhalwe onjiniyela.Lezi zinhlelo zihlelwe ku-SPI Flash yangaphandle ku-chip ngokusebenzisa isikhombimsebenzisi se-UART0 ngethuluzi le-ESP Flash Flash Landa ngokusemthethweni.Kuyaqapheleka ukuthi imemori ye-flash ayihlanganisiwe ngaphakathi kwe-chip, ngakho-ke i-SPI Flash yangaphandle iyadingeka.Njengamanje, isekela amasayizi amane we-Flash Memory: 512kb, 1024KB, 2048kb no-4096kb.

Yiziphi izindlela zokusebenza ze-ESP8266?


Le module inezindlela ezintathu zokusebenza, okungukuthi imodi ye-AP, imodi ye-STA ne-STA + APIT.

Imodi ye-AP


Imodyuli ye-ESP8266 isebenza njenge-hotspot, futhi idivaysi ixhumeke ngqo kwimodyuli ukufezekisa ukulawula okungenantambo phezu kwe-LAN.

Imodi ye-STA


Imodyuli ye-ESP8266 ixhunyiwe kwi-Intanethi nge-router, evumela ifoni ephathekayo noma ikhompyutha ukuyolawula ukude insiza nge-Intanethi.

Imodi ye-STA + AP


Le yimodi yokuhlaziya engafinyelela ukushintshwa komthungo ngokulawulwa kwe-Intanethi, ngaleyo ndlela kunikeze okuhlangenwe nakho okusebenziseka kalula.

Yiziphi izinkambu zohlelo lokusebenza ze-ESP8266?


Ezenzakalelayo zezimboni


Imodyuli ingahle isetshenziselwe ukuqapha nokulawula amadivayisi ahlukahlukene nezinqubo zokubona ukuqapha okukude nokuzenzakalelayo.

Amanethiwekhi we-Sensor angenantambo


Imodyuli ingasetshenziselwa ukusungula amanethiwekhi we-wireless sensor usebenzisa ukusetshenziswa kwamandla okuphansi kanye nesisekelo esincane sekhodi ukuqapha amapharamitha ezemvelo anjengezinga lokushisa, umswakama, ukukhanya, njll. Bese udlulisela idatha efwini ukuze ihlaziywe.

Ukuqapha okukude nokulawula uhlelo


Ngokuhlanganisa i-ESP8266 kudivayisi, singabona ukuqapha okukude nokulawulwa kwensiza.Akunandaba ukuthi sikuphi, singakwazi ukufinyelela futhi silawule lawa madivayisi nganoma yisiphi isikhathi inqobo nje uma sinokuxhumana kwenethiwekhi okufanele kanye nemishini.

Ikhaya elihlakaniphile


I-ESP8266 ingasetshenziselwa ukulawula amadivayisi ahlukahlukene ekhaya, njengezinhlelo zokuphepha, amasistimu wokukhanyisa kanye nezinhlelo zokulawula izinga lokushisa.Iyakwazi ukuxhumana nenethiwekhi yasekhaya nge-Wi-Fi yokuqapha nokulawula okukude.

Amadivayisi we-IOT nezinzwa


I-ESP8266 ingahlanganiswa ibe ngamadivayisi we-IOT ahlukahlukene, ukubenza bakwazi ukuxhuma kwi-Intanethi nge-Wi-Fi.Lokhu kufaka phakathi izindawo ezinjengamakhaya ahlakaniphile, ezenzakalelayo zasekhaya, namadolobha ahlakaniphile.

Imfundo kanye nemfundo yokucwaninga:


Ngenxa yokusebenziseka kalula kokusetshenziswa kanye nezici ezinamandla, i-ESP8266 isetshenziswe kabanzi ku-Education and Academic Research, iba yithuluzi lokufunda elibalulekile kanye neplatifomu yokusebenza emkhakheni we-IOT futhi ithuthukiswe uhlelo lokuthuthukisa.Emanyuvesi amakhulu nasezikhungweni zezemfundo, i-ESP8266 isetshenziswa kabanzi ezinhlelweni zokufundisa nezinhlelo zokucwaninga ukusiza abafundi nabaphenyi bafunde futhi bakwazi ukuthuthukisa amakhono okuthuthukisa uhlelo.






Imibuzo Ebuzwa Njalo [I-FAQ]


1. Yini i-ESP8266 esetshenziselwe yona?


I-ESP8266 uhlelo ku-chip (soci) i-Wi-Fi Microchip ye-inthanethi yezinto (iot) izicelo ezikhiqizwe izinhlelo ze-espressif.Njengoba kunikezwe izindleko zayo eziphansi, usayizi omncane nokuzivumelanisa nezimo ngamadivayisi ashumekiwe, i-ESP8266 manje isetshenziswa kakhulu kuwo wonke amadivayisi we-IOT.

2. Ngabe i-ESP8266 a Arduino?


Amabhodi we-ESP32 nama-ESP8266 angamabhodi wesithathu.I-Arduino Cloud isekela ama-v ariat ion kepha ayikwazi ukuqinisekisa ukuthi amabhodi athile asuselwa kulo msebenzi we-SOCS.Uhlu lwamabhodi okuthuthukisa ahlolwe futhi asekelwa ngokusemthethweni angatholakala lapha.

3. Ngabe i-ESP32 ibeka esikhundleni se-ESP8266?


Amasango amadala ane-esp8266 chip ngaphakathi, noma kunjalo kungenzeka ukubuyekeza isango lakho le-ESP8266 kumanzi e-ES32.Uma ungafuni ukuthuthukisa isango lakho nge-EMS-eS32, i-firmware 'yakudala' isasebenza njengoba kunjalo.

4. Kungani i-ESP8266 ithandwa kangaka?


Yebo, kushibhile.Njengokushiwo yilesi sihloko, i- $ 5 ESP8266 ishibhile kakhulu kunezinzwa - ezethulwe-of-a-canon.Kusho izinzwa ezisetshenziswayo ezisetshenzisiwe zivame ukwenziwa ngezindlela eziphansi zezindleko ngoba kuzobe kungasizi ngalutho ngemuva kokuthulwa kweCannons.Noma kunjalo, i-ESP8266 iseshibhile kakhulu kunenzwa.

MAYELANA NATHI Ukwaneliseka kwamakhasimende ngaso sonke isikhathi.Ukwethembana kanye nezintshisakalo ezivamile. I-ARIAT Tech isungule ubudlelwano besikhathi eside nobuzinzile nabakhiqizi abaningi nabenzeli. "Ukuphatha amakhasimende ngezinto zokwakha zangempela nokuthatha insizakalo njengezinkinga", yonke ikhwalithi izohlolwa ngaphandle kwezinkinga futhi idluliselwe uchwepheshe
Ukuhlolwa komsebenzi.Imikhiqizo ephakeme kakhulu esebenza kabi futhi insizakalo engcono kakhulu ukuzibophezela kwethu kwaphakade.

I-imeyili: I-Info@ariat-tech.comI-HK TEL: +00 852-30501966ENZA: Rm 2703 27F Ho King Comm Center 2-16,
UFa Yuen St MongKok Kowloon, eHong Kong.