Cov txheej txheem:

Tswj Arduino Siv Smartphone Via USB Nrog Blynk App: 7 Kauj Ruam (nrog Duab)
Tswj Arduino Siv Smartphone Via USB Nrog Blynk App: 7 Kauj Ruam (nrog Duab)

Video: Tswj Arduino Siv Smartphone Via USB Nrog Blynk App: 7 Kauj Ruam (nrog Duab)

Video: Tswj Arduino Siv Smartphone Via USB Nrog Blynk App: 7 Kauj Ruam (nrog Duab)
Video: $600 NYIAJ PAB CA * $3600 CHILD TAX * BIDEN SPEECH * INDIA KAB MOB HNYAV * TOP NEWS+ 04/29/2021 2024, Kaum ib hlis
Anonim
Tswj Arduino Siv Smartphone Via USB Nrog Blynk App
Tswj Arduino Siv Smartphone Via USB Nrog Blynk App

Hauv qhov kev qhia no, peb yuav kawm paub siv Blynk app thiab Arduino txhawm rau tswj lub teeb, kev sib txuas yuav yog los ntawm USB chaw nres nkoj txuas.

Lub hom phiaj ntawm cov lus qhia no yog los qhia cov kev daws teeb meem yooj yim tshaj plaws tswj koj li Arduino lossis kho vajtse sib xws hauv Is Taws Nem thiab tshawb txog lub ntiaj teb ntawm Internet Ntawm Yam (IoT).

Blynk yog dab tsi?

Blynk yog Platform nrog iOS thiab Android apps los tswj Arduino, Raspberry Pi thiab nyiam hauv Is Taws Nem. Nws yog lub digital dashboard uas koj tuaj yeem tsim cov duab nraaj rau koj txoj haujlwm los ntawm kev yooj yim rub thiab xa cov cuab yeej. (Source: Blynk lub vev xaib).

Kauj Ruam 1: Khoom Kho Vajtse/Software

Cov Khoom Kho Vajtse/Software
Cov Khoom Kho Vajtse/Software
Cov Khoom Kho Vajtse/Software
Cov Khoom Kho Vajtse/Software

Cov khoom siv kho vajtse:

1. Arduino Uno (Lwm lub Arduino board yuav zoo xwb).

2. Relay

3. Teeb

4. Cov xov hlau

Cov software software:

1. Blynk App

2. Arduino IDE

3. Blynk Library rau koj li OS (Windows, Linux, iOS)

Kauj Ruam 2: Saib Yeeb Yaj Kiab kom paub meej ntxiv

Image
Image

Txhua qhov teeb tsa Blynk App tau qhia hauv video.

Vam tias koj yuav nyiam qhov toturial no.

Ua tsaug:)

Kauj Ruam 3: Rub tawm Blynk Library

Ua raws li cov lus qhia:

1. Rub tawm Blynk_Release_vXX.zip (nqes mus rau ntu Downloads)

2. Unzip cov ntawv khaws tseg. Koj yuav pom tias cov ntawv khaws cia muaj ob peb cov ntawv thiab ntau lub tsev qiv ntawv.

3. Luam tag nrho cov tsev qiv ntawv no rau koj_sketchbook_folder ntawm Arduino IDE.

Txhawm rau nrhiav qhov chaw ntawm koj_sketchbook_folder, mus rau saum cov ntawv qhia zaub mov hauv Arduino IDE:

Windows: Cov ntaub ntawv f Nyiam

Mac OS: Arduino → Nyiam

Txhawm rau rub tawm Blynk Library thiab tau txais cov ntaub ntawv ntau ntxiv ua raws qhov txuas no (ntawm no).

Kauj Ruam 4: Blynk Txoj Kev Kho

Blynk Txoj Kev Kho
Blynk Txoj Kev Kho
Blynk Txoj Kev Kho
Blynk Txoj Kev Kho
Blynk Txoj Kev Kho
Blynk Txoj Kev Kho

Txhawm rau teeb tsa Blynk App, koj yuav tsum ua raws cov theem hauv qab no:

1. Rub tawm Blynk app ntawm koj lub smartphone thiab tsim ib tus as khauj.

Ua li no:

Rub tawm Blynk apps: • iOS:

• Hauv:

2. Tsim ib qhov haujlwm tshiab, xaiv los ntawm cov npe koj kho vajtse (Arduino Uno).

3. Xaiv hom kev sib txuas (USB, Wifi, Bluetooth …).

4. Ntxiv tus widget rau koj lub vaj huam sib luag tswj los ntawm txhaj rau lub cim ntxiv rau sab xis saum toj.

5. Xaiv lub khawm widget, thiab ob npaug nias rau nws txhawm rau kho nws cov chaw.

Nco tseg: tus yuam sij kev lees paub tau xa mus rau koj tus email

Kauj ruam 5: Schematic

Schematic
Schematic

Ua siab zoo ua raws cov theem hauv qab no:

1. Txuas Arduino's Vcc mus rau Relay's Vcc.

2. Txuas Arduino's GND mus rau Relay's GND.

3. Txuas Arduino tus pin13 mus rau Relay's IN.

Kauj Ruam 6: Arduino Code

Txog arduino code:

#suav nrog SoftwareSerial DebugSerial (2, 3); // RX, TX

#suav nrog

// Koj yuav tsum tau txais Auth Token hauv Blynk App.

// Mus rau Qhov Chaw Haujlwm (icon txiv ntoo). char auth = "Qhov tseeb pov thawj";

void teeb tsa ()

{// Debug console DebugSerial.begin (9600);

// Blynk yuav ua haujlwm dhau Serial

// Tsis txhob nyeem lossis sau cov lej no tus kheej hauv koj daim duab duab Serial.begin (9600); Blynk.begin (Serial, auth); }

void lub voj ()

{Blynk.run (); }

Kauj Ruam 7: Rau Kev Txhawb Nqa

Kev Txhawb Nqa
Kev Txhawb Nqa

Koj tuaj yeem sau npe yuav rau kuv li YouTube channel rau kev qhia ntau ntxiv thiab phiaj xwm.

Sau npe yuav txhawb nqa. Ua tsaug.

Mus rau kuv tus YouTube Channel -link

Pom zoo: