Cov txheej txheem:

IoT ESP8266 Series: 1- Txuas rau WIFI Router: 4 Kauj Ruam
IoT ESP8266 Series: 1- Txuas rau WIFI Router: 4 Kauj Ruam

Video: IoT ESP8266 Series: 1- Txuas rau WIFI Router: 4 Kauj Ruam

Video: IoT ESP8266 Series: 1- Txuas rau WIFI Router: 4 Kauj Ruam
Video: Управление цифровым потенциометром с помощью Arduino — X9C103 2024, Hlis ntuj nqeg
Anonim
IoT ESP8266 Series: 1- Txuas rau WIFI Router
IoT ESP8266 Series: 1- Txuas rau WIFI Router

Qhov no yog ntu 1 ntawm "Cov Ntawv Qhia" ua ntu zus los piav qhia yuav ua li cas thiaj li ua tau Internet ntawm Yam phiaj xwm siv ESP8266 NodeMCU uas lub hom phiaj nyeem ntawv thiab xa cov ntaub ntawv mus rau lub vev xaib thiab txiav txim siab siv tib lub vev xaib.

ESP8266 ESP-12E Pawg Neeg Saib Xyuas Kev Txhim Kho yuav raug siv. Pawg thawj coj no yog ua raws ESP8266, suav nrog lub peev xwm tswj hwm microcontroller thiab WIFI hauv ib lub rooj tsavxwm. Nws tuaj yeem raug cim zoo li arduino.

Cov lus qhia no yuav qhia koj yuav teeb tsa nws li cas thiab ua haujlwm nws siv arduino IDE. Koj yuav ua ob txoj haujlwm:

  1. Teeb nyem LED
  2. WIFI txuas thiab IP-chaw nyob luam tawm

Kauj Ruam 1: Kho ESP8266 NodeMCU Raws li Arduino

Kho ESP8266 NodeMCU Raws li Arduino
Kho ESP8266 NodeMCU Raws li Arduino
Kho ESP8266 NodeMCU Raws li Arduino
Kho ESP8266 NodeMCU Raws li Arduino
Kho ESP8266 NodeMCU Raws li Arduino
Kho ESP8266 NodeMCU Raws li Arduino
  1. Rub nws tus tsav tsheb los ntawm qhov txuas CH341SER.zip lossis los ntawm cov ntawv txuas.
  2. Rub tawm Arduino IDE.
  3. -Start Arduino thiab qhib qhov Preferences window.
  4. Nkag mus https://arduino.esp8266.com/stable/package_esp8266com_index.json rau hauv Tus Thawj Saib Xyuas Haujlwm Ntxiv URLs teb.
  5. - Qhib Tus Thawj Saib Xyuas Haujlwm ntawm Cov Cuab Yeej.
  6. Nkag mus rau esp8266 qhia qhov chaw tshawb nrhiav txhawm rau txhim kho ESP8266 platform
  7. Mus rau Cov Cuab Yeej> Cov ntawv qhia zaub mov, tom qab ntawd xaiv koj li ESP8266 pawg thawj coj.
  8. Mus rau Cov Cuab Yeej> Chaw Nkag. Txuas koj li ESP.

Kauj Ruam 2: Khiav Qhov Teeb Meem LED

Txoj haujlwm no tsis xav tau kev sib tw. Nws yuav siv cov teeb tsa LED uas txuas nrog: Tus pin npe D4 lossis GPIO 2

Yog xav paub ntxiv txog kho vajtse saib qhov txuas no

Rub tawm qhov program txuas nrog Txaus siab rau!

Kauj Ruam 3: Txuas rau WIFI Network

Txuas mus rau WIFI Network
Txuas mus rau WIFI Network

Qhov kev pabcuam no yuav txuas koj li ESP mus rau WIFI network thiab luam nws tus IP chaw nyob ntawm koj tus saib xyuas arduino. Koj yuav tsum hloov kho koj li ssid thiab password

const char* ssid = "Koj li WIFI NETWORK Npe"; kos char* password = "Koj WIFI PASSWARD";

xyuas kom tseeb tias Baud tus nqi hauv qhov kev zov me nyuam thiab koj lub qhov rooj saib xyuas lub ntsej muag zoo ib yam

Kauj Ruam 4: Ntu 2

Saib ntu 2 txhawm rau kawm paub yuav xa koj li ntaub ntawv sensor mus rau ib qho ntawm IoT dawb kev pabcuam huab

IoT ESP8266 Series: 2- Saib Xyuas Cov Ntaub Ntawv Los Ntawm ThingSpeak.com

Pom zoo: