Cov txheej txheem:

Arduino Tsev Automation (Bluetooth): 3 Cov Kauj Ruam (nrog Duab)
Arduino Tsev Automation (Bluetooth): 3 Cov Kauj Ruam (nrog Duab)

Video: Arduino Tsev Automation (Bluetooth): 3 Cov Kauj Ruam (nrog Duab)

Video: Arduino Tsev Automation (Bluetooth): 3 Cov Kauj Ruam (nrog Duab)
Video: Объяснение прошивки Marlin 2.0.x 2024, Kaum ib hlis
Anonim
Arduino Tsev Automation (Bluetooth)
Arduino Tsev Automation (Bluetooth)

Nyob zoo, Menyuam! Txais tos rau kuv lwm qhov kev qhia! Hauv qhov no, kuv yuav qhia koj li cas koj tuaj yeem tswj hwm koj cov cuab yeej siv hauv tsev los ntawm koj lub xov tooj ntawm tes (Android-Smartphone). Yog li tsis tas nkim sijhawm, peb yuav tsum pib qhov no- (Hmoov Zoo!)

Kauj Ruam 1: Cov Khoom Uas Koj Yuav Xav Tau

Cov Khoom Koj Yuav Tsum Tau
Cov Khoom Koj Yuav Tsum Tau
Cov Khoom Koj Yuav Tsum Tau
Cov Khoom Koj Yuav Tsum Tau
Cov Khoom Koj Yuav Tsum Tau
Cov Khoom Koj Yuav Tsum Tau

Cov neeg, ntawm no yog cov npe khoom siv uas koj xav tau rau kev ua txoj haujlwm yooj yim no. Yog tias koj tsis muaj ib qho ntawm lawv, koj tseem tuaj yeem yuav los ntawm cov kab ntawv uas kuv tau muab! (Txawm hais tias, Kuv tsis tau txais ib qho haujlwm)-

  1. Arduino Board (nyiam dua Uno) (Ib tus clone tseem yuav zoo) - Yuav
  2. 2 -Channel Relay Module - Yuav
  3. Bluetooth Module (HC -05) - Yuav
  4. Qee Cov Hluav Taws Xob Jumper - Yuav
  5. Breadboard - Yuav

Qhov tseem ceeb tshaj plaws, "A BRAIN"

Yog li hais mav, tau txais tag nrho cov khoom no kom peb tuaj yeem mus rau theem tom ntej los pib tsim nws.

Kauj Ruam 2: Txuas Cov Kev Sib Txuas Yuav Tsum-

Txuas Cov Kev Sib Txuas Yuav Tsum
Txuas Cov Kev Sib Txuas Yuav Tsum

Kuv tau muab daim duab los pab koj. Ntxiv mus, ua raws cov theem hauv qab no teev tseg-

Teeb tsa kev sib txuas yooj yim. Nov yog daim duab los pab koj, nco ntsoov txuas nrog nws nkaus xwb. Kuv tau txuas nrog RXD tus pin ntawm Arduino tus pin 0, thiab RXD tus pin ntawm Bluetooth module txuas nrog TXD tus pin ntawm Arduino tus pin 1.

Thaum koj xa cov cai rau koj Arduino, xyuas kom tseeb tias koj tshem tus pin 0 thiab 1. Tom qab rub tawm cov cai, rov txuas tus pin. Tam sim no ntawm koj lub xov tooj Android rub tawm qhov app-App kom rub tawm

Thaum koj tau txuas nrog hais cov lus txib uas koj tau xaiv hauv txoj cai thiab kev xa tawm yuav qhib thiab tawm!

Thiab ntawm no yog txoj cai los pab koj, nco ntsoov tias koj tuaj yeem hloov kho nws raws li koj xav tau!

Kauj Ruam 3: Txuas Cov Khoom Siv rau Relay Module

Txuas Cov Khoom Siv rau Relay Module
Txuas Cov Khoom Siv rau Relay Module
Txuas Cov Khoom Siv rau Relay Module
Txuas Cov Khoom Siv rau Relay Module
Txuas Cov Khoom Siv rau Relay Module
Txuas Cov Khoom Siv rau Relay Module

Nrhiav qee yam khoom qub, tsis siv. Tshem cov roj hmab sab nrauv tiv thaiv, tab sis tsis txhob txiav cov xov hlau sab hauv. CEEV FAJ;

Tam sim no koj yuav tsum txiav +ve hlau, piv txwv li, liab. Ntxig cov xaim xaim raws li tau hais los saum no. Txog kev ntsuas kev nyab xeeb, kaw nws kom puv, yog li tsis pom cov xov nyob. Qhov no tuaj yeem txaus ntshai. Tuaj nrog CAUTION.

Thaum ua tiav, Tsuas yog txuas tus qauv rau txawb. Tus password yuav yog 0000 lossis 1234.

Tom qab ntawd qhib lub app, thiab hais hauv cov lus txib.

Txhawm rau qhib, Tsuas yog hais "SWITCH ON" lossis "TURN ON THE LIGHTS"

Txhawm rau tua, hais

"SWITCH OFF" lossis "TURN OFF THE LIGHTS"

Raws li kuv tau hais rau koj yav dhau los, koj tuaj yeem hloov kho cov lus txib kom cov no yooj yim rau koj.

Kuv muab qhov kev sib txuas ua tiav rau hauv ib lub thawv thiab tom qab ntawd nws nrog rab yaj phom kub. Koj tuaj yeem siv ib qho ntawm koj lub tswv yim zoo, raws li koj paub tias tsis muaj ib thaj tsam rau kev muaj tswv yim.

Ua tsaug rau koj lub sijhawm zoo siab rau kev nyeem phau ntawv qhia no.

Pom zoo: