I-ESP8266: imodyuli yeWIFI yeArduino

ESP8266

I-Arduino yaqala njengebhodi elula yemfundo kunye nabenzi othanda i-DIY. Iqonga lasimahla lesixhobo se-elektroniki sabathandi be-elektroniki elinokuthi licwangciswe ngombulelo kuye I-Arduino IDE kwaye okuninzi okunokwenzeka. Kancinci kancinci yavela, iinguqulelo ezintsha ezivelayo kunye nohlelo lwebhodi, kunye neekiti kunye nezixhobo ezinje ngamakhaka adumileyo kunye neemodyuli ezandise ukusebenza okuyisiseko kwezi bhodi.

Esinye sezongezo esenze ukuba sitsibe sikhulu phambili kubuchule yayiyi Imodyuli ye-WiFi, efana ne-ESP8266Kuba oko kuvumele iiprojekthi ukuza kuthi ga ngoku ukuba zibekelwe bucala zinokudityaniswa kuthungelwano kwaye ke zikwazi ukujonga okanye ukulawula iprojekthi kwi-Intanethi naphina emhlabeni. Kungenxa yoko le nto siza kunikezela esi sikhokelo kwi-ESP8266, ukuze wazi yonke into oyifunayo ngokwenene ...

Umlando omncinci

ESP8285

Inkampani yokuqala eyenzileyo le I-chip ye-ESP8266 yayiyi-Espressif, Inkampani yaseTshayina ebekwe eShanghai, nangona kungoku nje bakho abanye abavelisi abayiphuhlisayo bayivelisa. Umhla ngqo wokusungulwa kwawo kwakusehlotyeni lika-2014, ke ayisiyonto indala. Iqale ukuthengiswa ngexabiso eliphantsi kwaye ngokudibeneyo nobuchule bayo bayenza ukuba ithandwe kungekudala.

La umphuhlisi woluntu ikwanendima ebalulekileyo kwimpumelelo, kuba baqala ukuguqulela kunye nokupapasha isixa esikhulu samaxwebhu, benza iifemu kunye nezinye iikhowudi zokuzisebenzisa kwi-ESP8266. Oko kunike abenzi bazo zonke izixhobo abazidingayo ukuze bakwazi ukusebenzisa isixhobo kumandla abo apheleleyo.

Kodwa kuya kufuneka uyazi, ukuba njengabadlulisi, ukutyunjwa kwamagama okanye amanani Akusoloko i-ESP8266, kodwa kuqala ii-ESP zokuqala zavela kuqala, emva koko kwafika iinguqulelo ezinje nge-ESP8285 ukusuka ngo-2016 ezibandakanya imemori edityanisiweyo ye-1MB flahsd, emva koko i-ESP8266 esiyaziyo namhlanje iya kuvela, ebonakala ngathi ibuyile umva kuba ayinayo le nkumbulo, kodwa ungongeza ezinye iichips zangaphandle ukugcina iinkqubo.

Yintoni na?

ESP8266

El I-ESP8266 inokudityaniswa kwi-WiFi ebonelela nge-chip yexabiso eliphantsi ngesitaki esipheleleyo se-TCP / IP kunye ne-microcontroller. Inikwe amandla yi-3.3v kwaye ine-106 Mhz Tensilica Xtensa LX80 processor, i-64 KB ye-RAM yemiyalelo kunye ne-96 KB yedatha, izikhonkwane ezili-16 ze-GPIO, izikhonkwane ze-UART, kunye ne-SPI kunye ne-I2C.

La ICensensica CPU inokwenziwa ngokukhawuleza ngokugqitha ngaphezulu, kodwa ayizizo zonke, iimodeli ezivumelayo. Ngapha koko, isantya sewotshi sinokuphindaphindwa. Ngendlela, i-32-bit RISC yohlobo lwe-CPU. Kwakhona kubandakanywa kwimodyuli ngumguquleli we-10-bit ADC weempawu.

Njengomphelelisi, ibandakanya i-chip yangaphandle ye-QSPI memory memory chip ukusuka kwi-512 KB ukuya kwi-4 MB ngokuxhomekeke kwimodyuli, ngamanye amaxesha inokufikelela kwi-16 MB. Malunga ne Ukunxibelelana kweWifiIyahambelana nomgangatho we-IEEE 802.11 b / g / n, ukongeza kuncedo lwe-WEP, WPA kunye ne-WPA2.

Usebenzisela ntoni?

App for esizisebenzelayo ekhaya

I-ESP8266, ngokulula, yongeza amandla oxhulumaniso lwe-WiFi kwiiprojekthi zethu. Oko kukuthi, ivumela uqhagamshelo ngaphandle kwamacingo kwinethiwekhi yendawo okanye kwi-Intanethi. Oku kwenza inani elikhulu lezinto ezinokwenzeka, njengokukwazi ukuqhagamshela okanye ukucima izixhobo zombane (usebenzisa i-relay) okanye ezinye iintlobo zeenkqubo zoomatshini zekhaya lethu ukulawula indlu nokuyilawula kwi-Intanethi kwi-smartphone yethu okanye nakweyiphi na ikhompyuter edityaniswe naphi na.

Ingasetyenziselwa ukulawula ukulima kunye neenkqubo zokunkcenkceshela ngenethiwekhi, ukwenza iinkqubo zeshishini, ulawulo lwe Iikhamera zokujonga ividiyo ze-IPUkubeka iliso kwidatha evela kumnatha woluvo osasazwe kwiindawo ezahlukeneyo, kwizinto ezinxitywayo ngomthamo wonxibelelwano, ukuya Iiprojekthi ze-IoT (I-Intanethi yezinto okanye i-Intanethi yezinto) nayo yonke into onokuyicinga ...

Iimpawu zeModyuli ye-ESP8266:

Ukuze uyazi ngakumbi kubunzulu be-ESP8266, Apha sikunika uthotho lwezinto ezinomdla oya kudinga ukuzazi malunga nale modyuli.

Iphepha ledatha le-ESP8266

Kumacandelo angaphambili sichaze ezinye ze ezona mpawu ziphambili ze-ESP8266Ukufumana zonke iinkcukacha zobuchwephesha ngokupheleleyo, sele uyazi ukuba unokuzikhuphelela iidatha zedatha ezaziwayo ezenziwa ngabavelisi kwiphepha labo elisemthethweni. Ezinye zezinto ezongezelelweyo ezichaziweyo kwiphepha ledatha zezi:

  • CPU Tensilica Xtensa L106 32-isuntswana RISC 80Mhz
  • Isiguquli se-10-bit ADC
  • I-RAM engama-64 KB i / 96 KB d
  • I-pin-16 ye-GPIO (ayizizo zonke ezinokusetyenziswa, kwaye i-GPIO16 iqhagamshelwe kwi-RTC okanye kwiXesha leXesha langempela)
  • UART
  • SPI
  • I2C
  • Qaphela i-3v kunye ne-3.6v
  • Ubunzulu be-80mA
  • Iqondo lobushushu elisebenzayo -40 ukuya ku-125ºC
  • I-WiFi IEEE 802.11 b / g / n ngenkxaso ye-IPv4 kunye ne-TCP / UDP / HTTP / HTTPS / FTP
  • Ukusetyenziswa kwe-0.0005 ukuya kwi-170 mA kuxhomekeke kumandla esiginali
  • Iimowudi: Imowudi esebenzayo (esebenzayo), Indlela yokulala (ilele), Ukulala okunzulu (ubuthongo obunzulu) -Uchaphazela ukusetyenziswa

Ngolwazi oluthe kratya, khuphela iphepha ledatha:

Ngelishwa kuphela zikwisiNgesi, kodwa kulula ukuziqonda zonke iinkcukacha ukuba unolwazi lobuchwephesha.

Imodyuli yokukhupha

Olunye ulwazi olunokubonwa kwiphepha ledatha ngu i-pinout, oko kukuthi, i-pantillage. Mangaphi amacala onawo kwaye unantoni nganye? Kuxhomekeke ekubeni yeyiphi kuphela i-chip ye-ESP8266 okanye ukuba iza kwenye ifomathi okanye imodyuli, ii-pinouts zingahluka njengoko ubona kwimifanekiso engentla.

Umdibaniso neArduino kunye ne-wifi

Inkqubo onayo ilayibrari ebizwa ngokuba yi-wifi ekhethekileyo ukuze ukwazi ukusebenzisa imisebenzi ebandakanyiwe kuyo xa usenza iikhowudi zomthombo kunye neArduino IDE ukwenza inkqubo yolawulo oluncinci. Ungabona ulwazi oluthe kratya kula maphepha mabini eGitHub apho kusingathwa khona ezi projekthi: Ithala leencwadi laseArduino Wifi.h / Wifi.h Espressif Ithala leencwadi.

Ewe ukudityaniswa kweArduino, inokwenziwa nokuba yimodyuli okanye i-ESP8266 chip ngokwahlukeneyo. Nangona kunjalo kuyacetyiswa ukuba kusetyenziswe iimodyuli. Kukho iintlobo ezininzi, kodwa ezaziwa kakhulu zezi zinikezelwa ngumenzi owaziwayo I-AI-Ingcinga:

  • I-ESP-01Imodyuli yeyokuqala ukubonakala. Ixabiso laso lihlala liphakathi kwe- € 2 kunye ne- € 4. Umhla omncinci kwaye unee-GPIOs ezimbini kuphela ezinokusetyenziswa ukulawula ii-sensors kunye nee-actuator zayo. Le modyuli ine-eriyali ye-WiFi eyakhelweyo, ii-LEDs, i-chip ye-ESP8266 kunye ne-BG25Q80A memory memory.
  • I-ESP-05: ixabiso layo liyafana nelangaphambili, kwaye lilula. Izikhonkwane zayo zinokusetyenziselwa ngokulula ukusebenza njengesixhobo se-WiFi seArduino okanye ukusisebenzisa kwibhodi yesonka, kodwa ayinayo i-GPIO efikelelekayo.
  • I-ESP-12Nangona isetyenziswa kakhulu, isenokungabi yeyona isebenzayo kuzo zonke, ngakumbi kubaqalayo. Ixabiso limalunga ne- € 4, kwaye ine-11 efikelelekayo yokunxibelelana kwe-GPIO, enye yazo yi-analog ye-10-bit (ama-1024 anokubakho amaxabiso edijithali). Kodwa inesiphene esikhulu, ekuya kufuneka uyithengise, kuba ayinazikhonkwane.
  • I-ESP-201Ixabiso li- € 6 kwaye lelona likhethwayo ngabenzi kwaye kucetyiswa uninzi lwabasebenzisi. Inamazibuko ali-11 e-GPIO, nangona singesithi sonke esinakho ukuwasebenzisa. Kule meko, inezikhonkwane zokuyifaka kwibhodi yezonka okanye ngeArduino ngaphandle kokufaka.

Kuya kufuneka uyazi loo nto zininzi iimodyuliNgapha koko, kwicandelo elilandelayo sithetha ngale nto sele idumile namhlanje kwaye kufanelekile ukuba ikhankanywe.

Indlela yeNodeMCU

ESP8266

Imodyuli idume kakhulu namhlanje ibizwa ngokuba yiNodeMCU, Ngexabiso elifana ne-ESP-201, oko kukuthi, malunga ne- € 6. Yimodyuli onokuyibona kwimifanekiso ephambili yeli nqaku kwaye kulula kakhulu ukuyisebenzisa, nayo yonke into oyifunayo sele idityanisiwe. Oko kukuthi, unokusebenza ngokuzimeleyo kwasekuqaleni, ngaphandle kokufaka ezinye izinto ezongeziweyo kwimeko yeemodyuli zangaphambili.

INodeMCU ikwabandakanya i-chip ye-ESP8266 chip, a serial / iadaptha ye-USB, inikwe amandla yi-microUSB, kwaye isekwe kwiimpawu ze-ESP-12. Iinguqulelo ezininzi zale NodeMCU zivele, ezinje nge-1 okanye ezi-2 ezihlaziyiweyo kwaye ziphuculwe. Kodwa eyona nto inomdla yi-firmware ebandakanya oko u nga khuphela kwaye ivumela inkqubo kwiilwimi ezinje ngePython, BASIC, JavaScript kunye nezinye ezingathandwa kangako njengeLUA. Khumbula ukuba i-firmware yikhowudi, inkqubo ekumgangatho ophantsi kakhulu egcinwe kwimemori ...


Yiba ngowokuqala ukuphawula

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.