Cov txheej txheem:
- Kauj Ruam 1: Qhov Yuav Tsum Tau
- Kauj ruam 2: Teeb
- Kauj ruam 3: Blynk Teeb
- Kauj Ruam 4: Tsim Kev Sib Tham hauv App
Video: Tswj Buzzer thiab Coj Los Ntawm Android Siv Blynk: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Hauv cov lus qhia no kuv yuav qhia koj li cas txuas rau arduino rau hauv xov tooj ntawd siv bluetooth rau GUI thiab IOT
Hauv qhov kev qhia no, peb yuav siv lub xov tooj hauv xov tooj thiab app blynk (ib qho ntawm qhov kev xaiv GUI zoo tshaj plaws rau arduino) tig rau LED thiab tswj lub suab nrov siv pwm
Ntawm no nws ua haujlwm li cas,
Peb yuav txuas tus arduino rau hauv xov tooj ntawd siv bluetooth
Peb yuav teeb tsa lub interface ntawm blynk app
Nias LED ntawm app yuav tsum qhib LED ON
Thiab kho vtg ntawm buzzer ntawm app yuav tsum muab cov khoom sib npaug ntawm arduino
Kauj Ruam 1: Qhov Yuav Tsum Tau
1. Arduino Uno X 1
2. HC-05 Bluetooth module X1
3. Jumper Hlau X 6-10
4. Buzzer X 1
5. Coj X 1
Kauj ruam 2: Teeb
HC 05 Bluetoot module…
Qhov Module Ardduino
Vc5v wb
GND GND
Tx digital pin 10.
Rx Digital pin 11
Buzzer
module Arduino
+tus lej digital 3
-ib Gnd
LED teeb
module Arduino
+tus lej digital 13
-ib Gnd
Kauj ruam 3: Blynk Teeb
- Mus rau PlayStore los ntawm koj lub xov tooj Android thiab rub tawm thiab nruab blynk app.
- Qhib Blynk app.
- Sau npe/Sau npe.
- Tam sim no Nyem rau Tsim qhov haujlwm tshiab
- Poject lub npe - "Muab koj lub npe lub npe" (Piv txwv li kuv hu nws "BlueBuzz")
- Xaiv lub cuab yeej - "Arduino UNO"
- Hom Kev Sib Txuas - "Bluetooth"
- Tam sim no nyem "Tsim"
- Sai li koj nyem "Tsim", ib lub mail hu ua "dispatcher" tau xa tuaj rau koj los ntawm qhov ntsais.
- qhib mail thiab luam "Auth token".
- Tam sim no mus ntsib blynk lub vev xaib.
- Tam sim no muaj koj yuav pom "Rub lub tsev qiv ntawv blynk". Tam sim no nyem rau nws ua raws cov lus qhia thiab rub tawm blynk lub tsev qiv ntawv.
- Tam sim no rho tawm lub tsev qiv ntawv rub tawm thiab luam nws mus rau C: / Program Files (x86) Arduino / libraries. (Hauv tus tsav uas koj tau teeb tsa software arduino, nyob ntawd koj yuav pom daim nplaub tshev hu ua "tsev qiv ntawv" tsis yog "lib" muab lub tsev qiv ntawv tso rau hauv "Tsev qiv ntawv" nplaub tshev.)
- Tam sim no rov mus xyuas blynk lub vev xaib.
- Hauv qab "Flash" koj yuav pom "Sketch Builder", nyem rau ntawm "Sketch Builder", Ntawm sab laug koj yuav pom …
-Pawg = Arduino
Kev sib txuas = HC05/HC06
-Example = GettingStarted/BlynkBlink
16. Tam sim no luam qhov piv txwv thiab muab tso rau hauv arduino IDE.
17. Tam sim no muab tshuaj txhuam "Auth Token" (xa los ntawm blynk) nyob rau hauv qhov chaw ntawm "Koj Tus Neeg Sau Npe" thiab tshem cov dhia tawm ntawm tus pin 10 thiab 11
los ntawm arduino thiab xa cov cai rau board.
Tam sim no koj cov arduino tau teeb tsa los ua cov lus qhia los ntawm app. Tam sim no cia tsim tus interface hauv app.
Kauj Ruam 4: Tsim Kev Sib Tham hauv App
- Nyem rau ntawm "ntxiv widget" (+) thiab xaiv lub pob.
- tam sim no nyem rau khawm.
- Muab lub npe rau khawm hais "coj".
- hauv qab OUTPUT tab…
- nyem tus pin thiab xaiv tus pin uas coj yog txuas nrog arduino, ntawm no nws yog tus lej digital 13, yog li xaiv cov digital thiab hauv qab tus pin D13. Thiab Nyem txuas ntxiv.
hauv qab MODE tab…
- xaiv seb koj puas xav tau lub pob no ua "khawm thawb" lossis "Hloov". (Lo nrog "hloov" rau lub hom phiaj ntawm qhov kev qhia no)
- nyem rov qab.
- Nyem rau ntawm "ntxiv widget" (+) thiab xaiv "Slider".
- Nyem rau ntawm "Slider".
- Npe lub slider hais "buzzer"
- Hauv qab OUTPUT tab …
Xaiv tus pin tsis muaj tus buzzer txuas nrog arduino, ntawm no nws yog tus lej digital D3. Nyem "txuas ntxiv".
- hauv qab xa ON RELEASE tab …
teeb nws rau OFF
- nyem rov qab.
- Nyem rau ntawm "ntxiv widget" (+) thiab xaiv "Bluetooth".
- Tam sim no kaw lub app.
- Tam sim no fais fab koj Arduino (koj yuav tsum pom lub teeb liab ntsais ntawm bluetooth module thiab xyuas kom tseeb tias koj tau txuas dua cov neeg dhia mus rau tus pin 10 thiab 11)
- Qhib bluetooth ntawm koj lub xov tooj thiab tshawb rau "HC-05", tam sim no khub lub cuab yeej nrog tus yuam sij pib "1234".
- Tom qab ua tiav kev sib tw. Qhib Blynk app, xaiv qhov haujlwm koj tau tsim xaiv bluetooth.
- coj mus rhaub txuas "bluetooth ntaus ntawv" ntawm no koj yuav tsum pom "HC 05" xaiv nws.
- tam sim no koj yuav tsum pom #HC-05 txuas nrog. thiab tam sim no ntaus rov qab.
- Tam sim no hauv rt feem ntau koj yuav tsum pom "ua si" khawm nyob ib sab rau "Ntxiv widget", ntaus "ua si"
- Tam sim no nias coj nws yuav tsum tig rau coj thiab txav tus swb raws li buzzer yuav tsum suab.
Pom zoo:
Kev Tswj Coj Los Ntawm Blynk App Siv Nodemcu Hauv Is Taws Nem: 5 Kauj Ruam
Kev Tswj Coj Los Ntawm Blynk App Siv Nodemcu Hauv Is Taws Nem: Nyob Zoo Txhua Tus Niaj Hnub No Peb Yuav Qhia Koj Li Cas Koj Thiaj Li Tswj Tau Ib Leeg Siv LED Siv Smartphone Hauv Is Taws Nem
Cov Hais Lus Ua Los Ntawm Cov Khoom Siv Rov Los thiab Rov Siv Dua: 6 Cov Kauj Ruam
Cov Hais Lus Ua Los Ntawm Cov Khoom Siv Rov Los thiab Rov Los Siv Rov Los: " Suab paj nruag yog cov lus thoob ntiaj teb ntawm tib neeg. Thiab qhov zoo tshaj plaws-lawv tsis tau them kuv ib dime. Txhua yam nyob rau hauv no pr
Neeg Hlau Lub Taub Hau Coj Mus Rau Lub Teeb. Los ntawm Cov Khoom Siv Rov Los thiab Rov Siv Dua: 11 Kauj Ruam
Neeg Hlau Lub Taub Hau Coj Mus Rau Lub Teeb. Los ntawm Cov Khoom Siv Rov Los thiab Siv Rov Los: Yog tias qee tus xav tsis thoob tias cov neeg hlau tuaj yeem tuaj nrog lub hnab ntim khoob, tej zaum cov lus qhia no tuaj yeem muab lus teb. Recycled stepper motors los ntawm lub tshuab luam ntawv qub, siv ping pong npas, taws tswm ciab, siv balsa, xaim los ntawm tus dai khaub ncaws qub, siv xaim xaim
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Cov Neeg Siv Khoom Hloov: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Kev Siv Hluav Taws Xob: Lub Arduino tuaj yeem siv los tswj cov cuab yeej los ntawm kev siv cov khoom siv yooj yim hloov pauv hloov chaw