Cov txheej txheem:

LED Tswj Siv ESP8266 WiFi Module- Internet ntawm Yam: 6 Kauj Ruam
LED Tswj Siv ESP8266 WiFi Module- Internet ntawm Yam: 6 Kauj Ruam

Video: LED Tswj Siv ESP8266 WiFi Module- Internet ntawm Yam: 6 Kauj Ruam

Video: LED Tswj Siv ESP8266 WiFi Module- Internet ntawm Yam: 6 Kauj Ruam
Video: Прожектор на базе миски из ашана 2024, Hlis ntuj nqeg
Anonim
LED Tswj Siv ESP8266 WiFi Module- Internet ntawm Yam
LED Tswj Siv ESP8266 WiFi Module- Internet ntawm Yam

ESP8266 yog tus nqi qis Wi-nkaus nti nrog tag nrho TCP/IP pawg thiab MCU (microcontroller unit) muaj peev xwm tsim los ntawm Shanghai-based Suav chaw tsim khoom, Espressif Systems.

Cov nti ua ntej los rau cov neeg tsim khoom sab hnub poob thaum lub Yim Hli 2014 nrog ESP-01 tus qauv, ua los ntawm tus tsim khoom thib peb, Ai-Thinker. Qhov ntsuas me me no tso cai rau microcontrollers txuas rau Wi-nkaus network thiab ua kom yooj yim TCP/IP sib txuas siv Hayes-style txib. Txawm li cas los xij, thaum lub sijhawm yuav luag tsis muaj cov ntaub ntawv hais lus Askiv ntawm lub nti thiab cov lus txib nws lees txais. Qhov tus nqi qis heev thiab qhov tseeb tias muaj ob peb yam sab nraud sab nraud ntawm tus qauv uas tau hais tias nws tuaj yeem thaum kawg tsis kim heev hauv ntim, nyiam ntau tus neeg nyiag nkas los tshawb nrhiav tus qauv, nti, thiab software ntawm nws, nrog rau txhais cov ntaub ntawv Suav. Wi-nkaus.

Kauj Ruam 1: Qhov Yuav Tsum Xav Tau rau Txoj Haujlwm no Tau Teev Npe Raws Li Hauv Qab no:-

Qhov Yuav Tsum Muaj Tseeb rau Txoj Haujlwm no tau teev tseg raws li hauv qab no
Qhov Yuav Tsum Muaj Tseeb rau Txoj Haujlwm no tau teev tseg raws li hauv qab no
Qhov Yuav Tsum Muaj Tseeb rau txoj haujlwm no suav nrog hauv qab no
Qhov Yuav Tsum Muaj Tseeb rau txoj haujlwm no suav nrog hauv qab no
Qhov Yuav Tsum Muaj Tseeb rau txoj haujlwm no suav nrog ua hauv qab no
Qhov Yuav Tsum Muaj Tseeb rau txoj haujlwm no suav nrog ua hauv qab no

(1) ESP8266 WiFi Module

(2) Arduino IDE

(3) Lub khob cij

(4) Jumper Xov

(5) USB-TTL Hloov

(6) Lub Hwj Chim (3.3v DC)

(7) Kev Sib Txuas Internet Wireless (WiFi)

(8) Web Server (koj tuaj yeem siv peb li)

(9) LED

Kauj ruam 2: ESP8266 yog dab tsi?

ESP8266 yog dab tsi?
ESP8266 yog dab tsi?
ESP8266 yog dab tsi?
ESP8266 yog dab tsi?
ESP8266 yog dab tsi?
ESP8266 yog dab tsi?

ESP8266 yog tus nqi qis Wi-nkaus nti nrog tag nrho TCP/IP pawg thiab MCU (microcontroller unit) muaj peev xwm tsim los ntawm Shanghai-based Suav chaw tsim khoom, Espressif Systems.

Lub nti ua ntej los rau cov neeg tsim khoom sab hnub poob thaum lub Yim Hli 2014 nrog ESP-01 tus qauv, ua los ntawm tus tsim khoom thib peb, Ai-Thinker. Qhov ntsuas me me no tso cai rau microcontrollers txuas rau Wi-nkaus network thiab ua kom yooj yim TCP/IP sib txuas siv Hayes-style txib. Txawm li cas los xij, thaum lub sijhawm yuav luag tsis muaj cov ntaub ntawv hais lus Askiv ntawm lub nti thiab cov lus txib nws tau lees txais. Qhov tus nqi qis heev thiab qhov tseeb tias muaj ob peb yam sab nraud sab nraud ntawm tus qauv uas tau hais tias nws tuaj yeem thaum kawg tsis kim heev hauv ntim, nyiam ntau tus neeg nyiag nkas los tshawb nrhiav tus qauv, nti, thiab software ntawm nws, nrog rau txhais cov ntaub ntawv Suav. Wi-nkaus.

Kauj Ruam 3: Arduino thiab IDE yog dab tsi?

Arduino thiab IDE yog dab tsi?
Arduino thiab IDE yog dab tsi?

Arduino yog lub platform siv hluav taws xob qhib raws qhov yooj yim-rau-siv-kho vajtse thiab software. Cov laug cam Arduino tuaj yeem nyeem cov tswv yim - teeb ntawm lub ntsuas pa, ntiv tes ntawm lub pob, lossis Twitter lus - thiab tig nws mus rau hauv cov zis - qhib lub tshuab, qhib lub LED, tshaj tawm qee yam online. Koj tuaj yeem qhia koj pawg thawj coj ua dab tsi los ntawm kev xa cov txheej txheem qhia rau microcontroller ntawm lub rooj tsavxwm. Txhawm rau ua li ntawd koj siv Arduino cov lus programming (raws li thaiv), thiab Arduino Software (IDE), raws li Kev Ua Haujlwm.

Vim li cas Arduino? Ua tsaug rau nws cov kev siv yooj yim thiab siv tau yooj yim, Arduino tau siv ntau txhiab txoj haujlwm sib txawv thiab cov ntawv thov. Arduino software yog ib qho yooj yim-rau-siv rau cov pib, tseem hloov pauv tau txaus rau cov neeg siv qib siab. Nws khiav ntawm Mac, Windows, thiab Linux. Cov kws qhia ntawv thiab cov tub ntxhais kawm siv nws los tsim cov cuab yeej tshawb fawb uas tsis muaj nqi, los ua pov thawj txog kev siv tshuaj lom neeg thiab kev siv lub cev, lossis pib nrog lub cajmeem thiab neeg hlau. Cov neeg tsim qauv thiab cov kws tsim vaj tsev tsim cov qauv sib tham sib, cov kws ntaus nkauj thiab cov kws ua yeeb yam siv nws rau kev teeb tsa thiab sim nrog cov twj paj nruas tshiab. Cov neeg tsim khoom, tau kawg, siv nws los tsim ntau txoj haujlwm nthuav tawm ntawm Maker Faire, piv txwv. Arduino yog lub cuab yeej tseem ceeb los kawm yam tshiab. Ib tus neeg twg - menyuam yaus, nyiam ua haujlwm, ua yeeb yaj kiab, tsim qauv - tuaj yeem pib tinkering tsuas yog ua raws cov lus qhia ib qib zuj zus ntawm cov khoom siv, lossis sib qhia tswv yim online nrog lwm tus tswv cuab ntawm Arduino zej zog.

Kauj Ruam 4: Rub tawm Arduino IDE thiab teeb tsa txheej txheem

Rub tawm Arduino IDE thiab teeb tsa txheej txheem
Rub tawm Arduino IDE thiab teeb tsa txheej txheem
Rub tawm Arduino IDE thiab Txheej Txheem Txheej Txheem
Rub tawm Arduino IDE thiab Txheej Txheem Txheej Txheem
  • Nyem rau qhov txuas thiab https://goo.gl/Cxa9rX download Arduino IDE
  • Nruab Arduino IDE ntawm koj lub system
  • Qhib Arduino IDE & Nyem rau tab File> Preferences
  • Tam sim no ntxiv cov URL hauv qab no hauv Tus Thawj Saib Xyuas Haujlwm Ntxiv URLs teb & nyem OK.
  • URL:-
  • Qhib tab Cov Cuab Yeej> Boards> Tus Thawj Saib Xyuas Haujlwm
  • Tshawb nrhiav esp8266 & teeb tsa esp8266 zej zog pob
  • Tam sim no mus rau Cov Cuab Yeej> Boards & xaiv Generic ESP8266 Module
  • Qhib Sketch> Tsev qiv ntawv> Tswj cov tsev qiv ntawv
  • Tshawb nrhiav arduino json & nruab arduino json tsev qiv ntawv los ntawm Benoît Blanchon

Kauj Ruam 5: Tus Pin Conncetion rau ESP8266 rau USB-TTL Converter

Pin Conncetion rau ESP8266 rau USB-TTL Converter
Pin Conncetion rau ESP8266 rau USB-TTL Converter
Pin Conncetion rau ESP8266 rau USB-TTL Converter
Pin Conncetion rau ESP8266 rau USB-TTL Converter
Pin Conncetion rau ESP8266 rau USB-TTL Converter
Pin Conncetion rau ESP8266 rau USB-TTL Converter

Nov yog cov ntsiab lus txuas rau ESP8266 rau USB-TTL Converter

  1. Txuas USB-TTL 3.3V rau ESP8266 VCC & CH_PD
  2. Txuas ESP8266 RX rau USB-TTL TX & ESP8266 TX to USB-TTL RX
  3. Txuas ESP8266 GND rau USB-TTL GND
  4. Txuas LED mus rau GPIO 2 & GND
  5. Txuas GPIO 0 rau GND (XWB DURING SKETCH UPLOADING)

Kauj Ruam 6: Kev Tshaj Tawm Txoj Cai thiab Txoj Haujlwm

Txuas USB-TTL rau koj Qhov System & xaiv qhov chaw nres nkoj ntawm Cov Cuab Yeej> Ports> COMn (Ex-COM4)

Tam sim no, kho cov ntsiab lus xws li- WiFi Lub Npe, WiFi Tus Kheej, Npe lub npe, txoj hauv kev thiab suav sau cov duab kos & xa mus rau ESP8266.

Yog tias koj muaj server, koj tuaj yeem siv koj tus kheej los ntawm php thiab json code koj tuaj yeem rub tawm cov ntaub ntawv los ntawm qhov txuas hauv qab no, lwm qhov koj tuaj yeem siv kuv tus lej tso cai

Rau txhua qhov teeb meem koj tuaj yeem tiv tauj kuv-

Bipul Kumar Gupta

(https://goo.gl/b6TggT)

bipulgupta.com/

www.facebook.com/bipulkg

Pom zoo: