Cov txheej txheem:

Blynk Nrog ESP8266: 4 Cov Kauj Ruam
Blynk Nrog ESP8266: 4 Cov Kauj Ruam

Video: Blynk Nrog ESP8266: 4 Cov Kauj Ruam

Video: Blynk Nrog ESP8266: 4 Cov Kauj Ruam
Video: ? Что такое многополосный 6 атомный хронометраж ? То 2024, Kaum ib hlis
Anonim
Blynk Nrog ESP8266
Blynk Nrog ESP8266

Blynk yog Internet of Things platform, uas ua rau tswj cov cuab yeej nyob deb thiab pom nws cov ntaub ntawv yooj yim heev. Koj tuaj yeem tsim koj tus kheej cuam tshuam nrog siv Blynk App dawb. Txhua lub WiFi, Bluetooth/BLE, Ethernet thiab Serial ntaus ntawv tuaj yeem txuas rau Blynk huab lossis cov neeg ua haujlwm hauv zos. Cov cuab yeej txhawb nqa tuaj yeem nrhiav tau ntawm blynk.cc

Cov lus qhia no tsuas yog npog yuav ua li cas rau nruab thiab pib nrog ESP8266 pawg thawj coj txhim kho (NodeMCU), siv cov kev pabcuam huab uas muab.

Kauj Ruam 1: Yam yuavtsum tau kawm uantej thiab Xeem

Yam yuavtsum tau kawm uantej thiab Xeem
Yam yuavtsum tau kawm uantej thiab Xeem

Qhov

  1. ESP8266 (NodeMCU)
  2. LED

Yam yuavtsum tau kawm uantej

  1. Arduino IDE (1.8.5 lossis tshiab dua)
  2. WiFi (daim ntawv pov thawj)

Lub app tsuas tuaj yeem teeb tsa ntawm lub xov tooj ntawm tes lossis emulators!

Kauj ruam 2: Kev teeb tsa

Kev teeb tsa
Kev teeb tsa
Kev teeb tsa
Kev teeb tsa

Suav nrog ESP8266 Core rau Arduino IDE

1) Mus rau 'Nyiam' thiab nkag mus rau URL hauv qab no mus rau Tus Thawj Saib Xyuas Haujlwm Ntxiv URLs

arduino.esp8266.com/stable/package_esp8266com_index.json

2) Qhib Tus Thawj Saib Xyuas Haujlwm (Cov Cuab Yeej> Pawg Thawj Coj)

3) Tshawb nrhiav "esp8266" thiab nruab qhov hloov tshiab kawg

4) Xaiv koj lub rooj tsavxwm hauv Cov Cuab Yeej> Pawg Thawj Coj thiab txheeb xyuas Baud Rate thiab lwm yam.

Nruab Blynk cov tsev qiv ntawv

1) Nruab qhov kev tshaj tawm tshiab tshaj plaws ntawm Blynk cov tsev qiv ntawv ntawm GitHub

2) Unpack nws

3) Tsiv lub tsev qiv ntawv mus rau C:/Tus neeg siv//Cov ntaub ntawv/Arduino/tsev qiv ntawv

Nruab Blynk App

1) Rub tawm App rau iOS lossis Android

Kauj Ruam 3: Tsim Txoj Haujlwm

Tsim Txoj Haujlwm
Tsim Txoj Haujlwm
Tsim Txoj Haujlwm
Tsim Txoj Haujlwm
Tsim Txoj Haujlwm
Tsim Txoj Haujlwm

Ua ntej tsim koj qhov project koj yuav tsum tsim tus as khauj lossis kos npe rau hauv.

  1. Nyem 'Tsim Txoj Haujlwm Tshiab'
  2. Xaiv koj lub cuab yeej thiab hom txuas (NodeMCU, WiFi)
  3. Tau txais thiab sau cia koj 'Auth Token'
  4. Qhib lub 'Widget Box' ('+')
  5. Ntxiv ib lub pob
  6. Npe nws thiab xaiv hloov hom
  7. Txheeb xyuas qhov tso tawm tus pin LED txuas nrog (anode Dx, cathode GND)

Qhov piv txwv piv txwv no yog qhov yooj yim heev, tab sis koj tuaj yeem tsim qhov cuam tshuam ntau dua yog tias koj ntxiv cov duab thiab lwm yam.

Kauj ruam 4: Txoj Cai

Txoj Cai
Txoj Cai
Txoj Cai
Txoj Cai

Tus neeg siv-sab txoj cai rau kev tswj chaw taws teeb LED yooj yim heev.

  1. Qhib Arduino IDE
  2. Mus Piv Txwv> Blynk> Boards_WiFi thiab xaiv koj lub dev dev
  3. Nkag mus rau koj 'Auth Token' (char auth )
  4. Nkag mus rau koj li ntaub ntawv pov thawj WiFi (char ssid , char pass )
  5. Compile thiab Upload
  6. Qhib Serial Monitor thiab tshawb xyuas seb kev txuas tau ua tiav

Yog tias txhua yam ua haujlwm tau zoo, tam sim no koj tuaj yeem qhib thiab ntawm LED nyob deb deb siv Blynk App.

Xav paub ntau ntxiv txog Blynk thiab ESP8266 tuaj yeem nrhiav tau ntawm blynk.io thiab esp8266doc.

Pom zoo: