Cov txheej txheem:
- Kauj ruam 1: Qhib App Designer
- Kauj ruam 2: Tsim App
- Kauj Ruam 3: Txuas Arduino
- Kauj ruam 4:
- Kauj ruam 5: Nrog koj zoo siab
Video: Siv MATLAB App Designer Nrog Arduino: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
MATLAB App Designer yog lub cuab yeej muaj zog uas tso cai rau koj los tsim Cov Duab Sib Txuas Cov Neeg Siv (GUIs) nrog txhua yam ntawm MATLAB kev ua haujlwm.
Hauv qhov kev qhia no peb yuav ua GUI los tswj lub teeb ci ntawm LED los ntawm kev yooj yim ua raws cov kauj ruam.
Nco tseg: Cov ntawv qhia no siv Arduino khoos phis tawj txhawb nqa pob ntawm MATLAB, yog xav paub ntxiv thov mus saib
Kauj ruam 1: Qhib App Designer
Pib los ntawm kev qhib MATLAB thiab tsim cov ntaub ntawv App Designer tshiab.
Kauj ruam 2: Tsim App
Nias txuag ntawm lub kaum sab laug saum toj kawg nkaus ntawm lub vijtsam thiab npe nws DimmingLED.
Luag ib daim ntawv lo los ntawm cov tsev qiv ntawv tivthaiv mus rau thaj tsam tsim qauv.
Rub lub pob qhov rooj thaum tuav tus yuam sij tswj kom tiv thaiv App Designer los ntawm kev ntxiv daim ntawv lo nrog ib sab nrog lub pob qhov rooj.
Nias ntawm Daim Ntawv Qhia, tom qab ntawd hloov cov ntawv mus rau Duty Cycle thiab qhov loj me rau 36.
Kauj Ruam 3: Txuas Arduino
Txuas Arduino los ntawm USB chaw nres nkoj (hauv kuv qhov xwm txheej kuv siv Arduino nano).
xaim ib qho LED thiab ib tus tiv thaiv raws li hauv qab no schematic.
Kauj ruam 4:
Rov qab mus rau App Designer thiab Nyem rau CodeView saum toj ntawm thaj chaw tsim.
ntxig ib qho khoom ntiag tug los ntawm kaum sab laug saum toj kawg nkaus ntawm qhov screen.
tshem tawm cov khoom ntiag tug thiab npe nws "a".
Los ntawm cov tivthaiv browser txoj cai nyem rau ntawm app. UIfigure thiab xaiv Ntxiv StartUpFcn callback.
Sau: app.a = Arduino ();
Los ntawm Tus Txheej Txheem Browser nyem rau ntawm app.knop thiab xaiv Ntxiv Tus Nqi Hloov pauv Fcn rov qab.
Sau Cov Ntawv hauv qab no rau nws, tom qab ntawd nyem Khiav.
changeValue = event. Value;
app. DutyCycleLabel. Text = char (hlua (hloov pauv tus nqi) + ' %');
writePWMDutyCycle (app.a, 'D3', hloovValue/100.0);
Kauj ruam 5: Nrog koj zoo siab
Tam sim no koj tuaj yeem tswj lub teeb ci LED los ntawm koj li app tsim tshiab
Pom zoo:
Txawb Xov Tooj Siv Yooj Yim Siv STM32F407 Cov Khoom Siv Tshawb Pom thiab GSM A6 Module: 14 Cov Kauj Ruam (nrog Duab)
Kev Siv Xov Tooj Ntawm Lub Xov Tooj Siv STM32F407 Cov Khoom Siv Tshawb Pom thiab GSM A6 Module: Koj puas tau xav tsim qhov kev ua kom txias txias? Yog tias yog, ua li cas txog kev tsim ib qho ntawm cov neeg nyiam tshaj plaws thiab txhua tus nyiam cov khoom siv xws li Lub Xov Tooj Txawb !!!. Hauv Cov Lus Qhia no, Kuv yuav qhia koj yuav tsim lub xov tooj txawb yooj yim siv STM li cas
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
Lub Suab Siv Cov Khoom Siv Media Siv Alexa: 9 Kauj Ruam (nrog Duab)
Lub Suab Siv Cov Khoom Siv Media Siv Alexa: Chav tsim los ntawm no ua rau koj cov cuab yeej siv xws li TV, tshuab raj, CD thiab DVD players tswj nrog lub suab txib siv Alexa thiab Arduino. Qhov zoo ntawm chav tsev no yog tias koj yuav tsum tsuas yog muab lub suab lus txib. Chav tsev no tuaj yeem ua haujlwm nrog txhua yam khoom siv tha
Tswj Cov Khoom Siv Hauv Tsev Siv NodeMCU (ESP8266) thiab Blynk App: 8 Kauj Ruam (nrog Duab)
Tswj Cov Khoom Siv Hauv Tsev Siv NodeMCU (ESP8266) thiab Blynk App: Hauv qhov kev qhia no, peb yuav kawm paub siv Blynk app thiab NodeMCU (ESP8266) txhawm rau tswj teeb (lwm yam khoom siv hauv tsev yuav zoo xwb), kev sib koom ua ke yuav ua hauv internet. Lub hom phiaj ntawm cov lus qhia no yog los qhia qhov yooj yim
Tes Thib Peb ++: Kev Siv Tes Siv Ntau Rau Cov Khoom Siv Hluav Taws Xob thiab Lwm Yam Ua Haujlwm Zoo: 14 Kauj Ruam (nrog Duab)
Tes Thib Peb ++: Kev Siv Tes Siv Ntau Rau Cov Khoom Siv Hluav Taws Xob thiab Lwm Yam Ua Haujlwm Tsis Zoo: Yav dhau los Kuv tau siv tes thib peb/pab txhais tes muaj nyob ntawm cov khw muag khoom hluav taws xob thiab tau poob siab nrog lawv qhov siv tau. Kuv tsis tuaj yeem tau txais cov yeeb yaj kiab raws qhov kuv xav tau lossis nws siv sijhawm ntau dua qhov nws yuav tsum tau teeb tsa