Cov txheej txheem:

Teeb Blynk: 5 Kauj Ruam
Teeb Blynk: 5 Kauj Ruam

Video: Teeb Blynk: 5 Kauj Ruam

Video: Teeb Blynk: 5 Kauj Ruam
Video: 5 Seconds of Summer - Teeth (Official Video) 2024, Hlis ntuj nqeg
Anonim
Teeb tsa Blynk
Teeb tsa Blynk

Hauv qhov kev qhia no, koj yuav kawm paub teeb tsa koj li Arduino board nrog Blynk thiab ua kom zoo li ntawd thaum koj nias lub pob hauv Blynk lub teeb ci LED (Kuv tus kheej qhia qhov no raws li esp32 muaj Wifi thiab Bluetooth built-in, uas ua rau nws zoo rau IOT cov haujlwm).

Khoom siv

  • Arduino board uas tau txhawb los ntawm blynk (Kuv yuav siv tus esp32)
  • USB cable
  • Xov tooj (iPhone lossis Android)
  • Wifi

Kauj Ruam 1: Ntxiv Esp32 Core

Ntxiv rau Esp32 Core
Ntxiv rau Esp32 Core

Yog tias koj tsis siv esp32 ces koj tuaj yeem hla cov kauj ruam no!

  1. Nco ntsoov tias koj li Arduino IDE yog version 1.8 lossis siab dua, yog tias nws qis dua qhov no tuaj yeem ua teeb meem. Yog tias nws qis dua koj yuav tsum hloov kho nws.
  2. Ua ntej tshaj plaws, peb yuav tsum rub tus CP210x Tsav Tsheb los ntawm
  3. Tom qab kev teeb tsa thiab teeb tsa cov tsav tsheb peb tam sim no xav tau ntxiv hauv esp32 core rau hauv Arduino IDE, koj tuaj yeem ua qhov no los ntawm xaiv Cov Ntawv> Nyiam. Ib zaug hauv cov ntawv qhia zaub mov pom pom 'Tus Thawj Saib Xyuas Haujlwm Ntxiv URLs:' tom qab nrhiav qhov muab tshuaj txhuam no hauv 'https://dl.espressif.com/dl/package_esp32_index.json'.
  4. Tam sim no mus rau hauv Cov Cuab Yeej> Pawg Thawj Coj thiab xaiv pawg esp32 uas koj siv.
  5. Thaum kawg, mus rau Cov Cuab Yeej> Chaw Nres Nkoj thiab xaiv qhov chaw nres nkoj koj esp32 nyob.

Tam sim no koj esp32 tau npaj los siv!

Kauj ruam 2: Teeb Xov Tooj App

Teeb Xov Tooj App
Teeb Xov Tooj App
Teeb Xov Tooj App
Teeb Xov Tooj App

Tam sim no thawj kauj ruam kom tau txais peb pawg thawj coj los txuas rau blynk yog rub tawm lub app. Koj tuaj yeem rub tawm lub app los ntawm App Store lossis Google Play Store. Koj tuaj yeem rub tawm lub app los ntawm kev tshuaj xyuas ib qho ntawm QR cov lej saum toj no.

Tom qab rub tawm App lawm koj yuav tsum tsim tus lej tshiab.

Kauj Ruam 3: Tsim Daim Ntawv Thov Blynk

Tsim daim ntawv thov Blynk
Tsim daim ntawv thov Blynk
Tsim daim ntawv thov Blynk
Tsim daim ntawv thov Blynk
Tsim daim ntawv thov Blynk
Tsim daim ntawv thov Blynk

Thaum koj tau teeb tsa lub app koj tam sim no tuaj yeem tsim daim ntawv thov, hauv qhov kev qhia no peb yuav tsim txoj haujlwm yooj yim uas tso cai rau koj qhib thiab tua lub LED. Tam sim no koj yuav tsum nyem lub pob 'Tsim Txoj Haujlwm Tshiab', tam sim no koj tuaj yeem tsim daim ntawv thov. Ua ntej tshaj plaws, muab lub npe ua 'Test'. Tom qab qhov no xaiv lub rooj tsavxwm koj tab tom siv thiab nws yuav txuas mus li cas. Tam sim no xaiv 'Tsim Project'. Tom qab daim ntawv thov tau rub tawm xaiv lub txiv ntoo icon, qhov no yuav coj koj mus rau 'Project Settings'. Tam sim no nqes mus thiab nrhiav ntu 'Auth Token' thiab sau cov cim (koj yuav xav tau nws tom qab!). Tam sim no luag thiab poob lub pob rau hauv nruab nrab ntawm daim ntawv thov thiab coj mus rhaub nws kom nkag mus rau cov ntawv qhia zaub mov rau nws thiab coj mus rhaub cov uas hais tias 'Pin' thiab scroll nws mus rau Digital thiab D8.

Kauj Ruam 4: Rub tawm Blynk Arduino Library

Mus rau https://github.com/blynkkk/blynk-library/releases/ thiab rub tawm cov ntaub ntawv tshiab.zip, piv txwv li, 'Blynk_Release_v0.6.1.zip' tom qab ua qhov no qhib Arduino IDE thiab mus rau hauv Sketch> suav nrog Lub Tsev Qiv Ntawv > Ntxiv. ZIP Library thiab mus rau qhov chaw uas koj tau khaws cov ntaub ntawv.zip koj rub tawm thiab xaiv nws. Lub Tsev Kawm Ntawv Blynk tam sim no tau teeb tsa! Thaum kawg, xaim ib qho LED rau tus lej digital 8.

Kauj ruam 5: Teeb Txoj Cai

Txhawm rau ua kom paub tus lej twg koj xav tau rau koj pawg thawj coj mus rau https://examples.blynk.cc thiab xaiv koj pawg thawj coj thiab kev txuas nrog rau teeb tsa tus piv txwv rau 'Blynk Blink', tam sim no theej cov cai thiab muab tso rau hauv Arduino IDE thiab nrhiav kab kab char auth = "YourAuthToken"; thiab hloov YourAuthTokenwith Auth Token koj tau sau ua ntej thiab yog tias koj siv wifi nrhiav kab char ssid = "YourNetworkName"; thiab hloov YourNetworkName nrog koj lub npe network thiab nrhiav kab kab hla = "YourPassword"; thiab hloov YourPassword nrog koj tus password Wifi. Tam sim no koj tuaj yeem khiav cov cai thiab qhib lub app thiab nyem lub pob ua si nyob rau sab saum toj sab xis. Tam sim no koj tuaj yeem nyem lub pob hauv app thiab LED yuav ci!

Pom zoo: